in('app') // ->except(['vendor', 'storage', 'bootstrap']) ->name('*.php') ->notName('*.blade.php') ->ignoreDotFiles(true) ->ignoreVCS(true); return PhpCsFixer\Config::create() ->setRules([ '@PSR2' => true, // '@Symfony' => true, '@PHP70Migration' => true, '@PHP71Migration' => true, 'array_indentation' => true, 'array_syntax' => ['syntax' => 'short'], 'fully_qualified_strict_types' => true, 'linebreak_after_opening_tag' => true, 'list_syntax' => ['syntax' => 'short'], 'logical_operators' => true, 'method_chaining_indentation' => true, 'phpdoc_no_empty_return' => false, 'ordered_class_elements' => true, 'ordered_imports' => ['sortAlgorithm' => 'length'], ]) ->setFinder($finder);