Barney Laurance

Results 27 comments of Barney Laurance

We're running php-cs-fixer, psalm etc in AWS CodeBuild, which runs for every commit to a github repository. It would be useful to be able to see the output from these...

I think it would make sense to try and find a coding standard that aligns well with how @BenMorel writes PHP or wants to write it, and then merge in...

You can also ban yoda-style if you want, using ` 'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false],`

@vladyslavstartsev Ah nice. I actually heard Dave Liddamen give a talk about static analysis and Sarb at PHP London before it was released. Didn't realize it supported PHP CodeSniffer. That...

> Any reason why you use php-cs-fixer vs phpcs I've used both, although recently only php-cs-fixer. I think either one is probably fine. I think the big differentiator is that...

Also with PHP CodeSniffer you can use comments to [turn it off](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#ignoring-parts-of-a-file) if there are sections of code where you think the usual rules shouldn't apply. PHP-CS-Fixer [does not allow...

Thanks @johnkary - sorry for radio silence. I'll try and give that a go this weekend.

As with the other issue, if there's interest in this I'd consider submitting a PR.

I agree it makes sense to to put code modification functions into SpeedTrap, and they'd fit better in Rector. I don't know if Rector currently has a rule to add...