Closed localheinz closed 4 years ago
I would be interested to see a style guide included in this repo instead of dotfiles for editor configuration. I know that my editor (vim) would not respect this config. At fastly we avoid checking dotfiles into our repos for this reason.
@thommahoney
How about using friendsofphp/php-cs-fixer
or squizlabs/php_codesniffer
?
@thommahoney
Not sure if you've received GitHub notifications, but I have updated this PR to use friendsofphp/php-cs-fixer
to enforce coding standards. This is probably also the better choice as with phpspec/phpspec
, squizlabs/php_codesniffer
will complain a lot about using snake_case
for method names, and requires custom configuration.
This PR
friendsofphp/php-cs-fixer
php-cs-fixer
, requiring code to comply with PSR-2php-cs-fixer
on Traviscs
script tocomposer.json
composer cs
CONTRIBUTING.md
with instructions💁 For reference, see https://github.com/FriendsOfPHP/PHP-CS-Fixer.