mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
40 lines
1.5 KiB
Plaintext
40 lines
1.5 KiB
Plaintext
|
<?php
|
||
|
|
||
|
ini_set('memory_limit', '1024M');
|
||
|
|
||
|
$finder = PhpCsFixer\Finder::create()
|
||
|
->notPath('bootstrap/cache')
|
||
|
->notPath('storage')
|
||
|
->notPath('vendor')
|
||
|
->notPath('node_modules')
|
||
|
->in(__DIR__)
|
||
|
->name('*.php')
|
||
|
->notName('*.blade.php')
|
||
|
->ignoreDotFiles(true)
|
||
|
->ignoreVCS(true)
|
||
|
;
|
||
|
|
||
|
return PhpCsFixer\Config::create()
|
||
|
->setRules(array(
|
||
|
'@Symfony' => true,
|
||
|
'class_definition' => [
|
||
|
'multiLineExtendsEachSingleLine' => true,
|
||
|
],
|
||
|
'ordered_class_elements' => [
|
||
|
'use_trait', 'constant_public', 'constant_protected', 'constant_private',
|
||
|
'property_public', 'property_protected', 'property_private', 'construct',
|
||
|
'destruct', 'magic', 'phpunit', 'method_public', 'method_protected',
|
||
|
'method_private'
|
||
|
],
|
||
|
'function_declaration' => ['closure_function_spacing' => 'none'],
|
||
|
'binary_operator_spaces' => ['default' => 'align_single_space_minimal'],
|
||
|
'array_syntax' => ['syntax' => 'short'],
|
||
|
'concat_space' => ['spacing' => 'one'],
|
||
|
'blank_line_after_namespace' => true,
|
||
|
'linebreak_after_opening_tag' => true,
|
||
|
'not_operator_with_successor_space' => true,
|
||
|
'ordered_imports' => true,
|
||
|
'phpdoc_order' => true,
|
||
|
))
|
||
|
->setFinder($finder);
|