Larasniffer detect violations of a defined coding standard. It helps your code remains clean and consistent.
Detect violations of a defined coding standard. It helps your code remains clean and consistent. Available options are: PSR2, PSR1, Zend, PEAR, Squiz, PHPCS and MySource.
require key of
composer.json file add the following
Run the Composer update comand
$ composer update
'LeroyMerlin\LaraSniffer\ServiceProvider' to the end of the
'providers' => array( 'Illuminate\Foundation\Providers\ArtisanServiceProvider', 'Illuminate\Auth\AuthServiceProvider', ... 'LeroyMerlin\LaraSniffer\ServiceProvider', ),
Publish the configuration file:
php artisan config:publish leroy-merlin-br/larasniffer
Edit the configuration file
app/config/packages/leroy-merlin-br/larasniffer/config.php to tweak the sniffer behavior.
php artisan sniff
New contributions are always welcomed. Just open a pull request making sure that it contains tests and doc updates. Please check if the Travis-CI build is alright too.
LaraSniffer is free software distributed under the terms of the MIT license
Any issues, please report here