Coder Social home page Coder Social logo

cs's People

Contributors

dominikto avatar evert avatar hywan avatar odolbeau avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cs's Issues

ternary_spaces fixer?

Should we also use the ternary_spaces fixer?

Would e.g. enforce spaces for $a ? $b : $c.

[Poll] Rely on pure upstream php-cs-fixer ?

sabre/cs is based on php-cs-fixer 1.1 which is by now deprecated and not compatible with latest php versions (warnings are poping up on php7.3)

Porting sabre/cs to php-cs-fixer 2.0 is quite some effort since interfaces changed. From the first look it seems all custom fixer rules need to be reimplemented.

I hereby question the necessity of these custom rules and propose to deprecate sabre/CS and use pure php-cs-fixer.

@staabm @evert

Remove `tests/`

If there is no test, then we should remove the tests/ directory :-).

CS Change: One use keyword per import

I've done this so incredibly inconsistently, that it makes sense to finally make a decision here.

I don't know what looks nicer anymore, I've been going back and forward. Because of this, it's better to pick one: lets go for the PSR-2 approach.

PSR-2 dictates that every import must have 1 use statement.

CS change: don't align multiple variables.

Currently the CS fixer will change this:

$foo = 1;
$longvariable = 2;

to

$foo          = 1;
$longvariable = 2;

While I think this is totally more legible in some blocks of code, especially blocks where there's many similar things being defined, I don't think it should be applied everywhere. So I'd want to remove this rule.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.