Skip to content

Instantly share code, notes, and snippets.

@Cerwyn
Created June 5, 2021 12:04
Show Gist options
  • Save Cerwyn/1284727ed8d132a14f82f8f3f196e8df to your computer and use it in GitHub Desktop.
Save Cerwyn/1284727ed8d132a14f82f8f3f196e8df to your computer and use it in GitHub Desktop.
.php-cs-fixer.php
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude(['bootstrap', 'storage', 'vendor'])
->name('*.php')
->name('_ide_helper')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
$config = new PhpCsFixer\Config();
return $config->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'no_unused_imports' => true,
])
->setFinder($finder);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment