mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-06-06 14:46:27 +02:00
Fix style and add config file to php-cs-fixer
This commit is contained in:
parent
485a0cb6fd
commit
fab9e256ab
40 changed files with 2360 additions and 1128 deletions
File diff suppressed because one or more lines are too long
|
@ -27,7 +27,11 @@ $config = PhpCsFixer\Config::create()
|
|||
'list_syntax' => ['syntax' => 'long'],
|
||||
'mb_str_functions' => true,
|
||||
'method_separation' => true,
|
||||
'braces' => ['position_after_anonymous_constructs' => 'next', 'position_after_control_structures' => 'next', 'position_after_functions_and_oop_constructs' => 'next'],
|
||||
'braces' => [
|
||||
'position_after_anonymous_constructs' => 'next',
|
||||
'position_after_control_structures' => 'next',
|
||||
'position_after_functions_and_oop_constructs' => 'next'
|
||||
],
|
||||
])
|
||||
->setFinder($finder)
|
||||
;
|
|
@ -13,13 +13,13 @@
|
|||
}
|
||||
|
||||
$lint_commands = [
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar -v --dry-run fix ' . __DIR__ . '/../../controllers/',
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar -v --dry-run fix ' . __DIR__ . '/../../models/',
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar -v --dry-run --config="' . __DIR__ . '/php_cs.config" fix ' . __DIR__ . '/../../controllers/',
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar -v --dry-run --config="' . __DIR__ . '/php_cs.config" fix ' . __DIR__ . '/../../models/',
|
||||
];
|
||||
|
||||
$fix_commands = [
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar fix ' . __DIR__ . '/../../controllers/',
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar fix ' . __DIR__ . '/../../models/',
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar --config="' . __DIR__ . '/php_cs.config" fix ' . __DIR__ . '/../../controllers/',
|
||||
'php ' . __DIR__ . '/php-cs-fixer.phar --config="' . __DIR__ . '/php_cs.config" fix ' . __DIR__ . '/../../models/',
|
||||
];
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue