Skip to content

Instantly share code, notes, and snippets.

@nickclasener
Forked from davidhemphill/.php_cs.laravel.php
Last active October 2, 2019 00:46
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 nickclasener/8406bc197e78857745cc3c05e89fb263 to your computer and use it in GitHub Desktop.
Save nickclasener/8406bc197e78857745cc3c05e89fb263 to your computer and use it in GitHub Desktop.
PHP CS Fixer - Laravel Ruleset
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('somedir')
->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php')
->in(__DIR__);
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
])
->setFinder($finder)
->setUsingCache(true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment