Skip to content

Instantly share code, notes, and snippets.

@alimranahmed
Created February 13, 2020 06:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alimranahmed/ed54dd570316921eaeed4e0a7152c55b to your computer and use it in GitHub Desktop.
Save alimranahmed/ed54dd570316921eaeed4e0a7152c55b to your computer and use it in GitHub Desktop.
<?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('bootstrap/cache')
->notPath('storage')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->name('_ide_helper')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
//'ordered_imports' => ['sortAlgorithm' => 'alpha'],
//'no_unused_imports' => true,
])
->setFinder($finder);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment