32 lines
972 B
Plaintext
32 lines
972 B
Plaintext
|
<?php
|
||
|
|
||
|
$finder = Symfony\Component\Finder\Finder::create()
|
||
|
->notPath('vendor')
|
||
|
->notPath('bootstrap')
|
||
|
->notPath('storage')
|
||
|
->in(__DIR__)
|
||
|
->name('*.php')
|
||
|
->notName('*.blade.php')
|
||
|
->notName('_ide_helper.php');
|
||
|
|
||
|
return PhpCsFixer\Config::create()
|
||
|
->setUsingCache(false)
|
||
|
->setRules([
|
||
|
'@PSR2' => true,
|
||
|
'array_indentation' => true,
|
||
|
'array_syntax' => ['syntax' => 'short'],
|
||
|
'blank_line_after_opening_tag' => true,
|
||
|
'cast_spaces' => true,
|
||
|
'concat_space' => ['spacing' => 'none'],
|
||
|
'elseif' => true,
|
||
|
'no_blank_lines_after_class_opening' => true,
|
||
|
'no_closing_tag' => true,
|
||
|
'no_leading_import_slash' => true,
|
||
|
'no_trailing_whitespace' => true,
|
||
|
'no_unused_imports' => true,
|
||
|
'no_useless_else' => true,
|
||
|
'ordered_imports' => ['sortAlgorithm' => 'length'],
|
||
|
'trailing_comma_in_multiline_array' => true,
|
||
|
])
|
||
|
->setFinder($finder);
|