Skip to content

Instantly share code, notes, and snippets.

@daison12006013
Created February 8, 2018 08:33
Show Gist options
  • Save daison12006013/b0ab677c7fc3b7914542d42a89239890 to your computer and use it in GitHub Desktop.
Save daison12006013/b0ab677c7fc3b7914542d42a89239890 to your computer and use it in GitHub Desktop.
PHP CS Fixer Config
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\FixerInterface;
$finder = Finder::create()->in([
__DIR__.'/app',
__DIR__.'/Plus65',
]);
return Config::create()
->setRules([
'@PSR2' => true,
'no_empty_phpdoc' => true,
'no_empty_comment' => true,
'no_closing_tag' => true,
'no_trailing_whitespace' => true,
])
->setFinder($finder)
->setUsingCache(false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment