mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Apply PHP-CS-Fixer fixes
This commit is contained in:
parent
e938cc8687
commit
0a117958c9
68 changed files with 67 additions and 519 deletions
|
@ -1,13 +1,14 @@
|
|||
<?php
|
||||
|
||||
$config = new PhpCsFixer\Config();
|
||||
|
||||
return $config
|
||||
->setRiskyAllowed(true)
|
||||
->setRules([
|
||||
'@Symfony' => true,
|
||||
'@Symfony:risky' => true,
|
||||
'array_syntax' => [
|
||||
'syntax' => 'short'
|
||||
'syntax' => 'short',
|
||||
],
|
||||
'combine_consecutive_unsets' => true,
|
||||
'heredoc_to_nowdoc' => true,
|
||||
|
@ -21,21 +22,23 @@ return $config
|
|||
'use',
|
||||
'parenthesis_brace_block',
|
||||
'square_brace_block',
|
||||
'curly_brace_block'
|
||||
'curly_brace_block',
|
||||
],
|
||||
],
|
||||
'no_unreachable_default_argument_value' => true,
|
||||
'no_useless_concat_operator' => false,
|
||||
'no_useless_else' => true,
|
||||
'no_useless_return' => true,
|
||||
'ordered_class_elements' => true,
|
||||
'ordered_imports' => true,
|
||||
'php_unit_strict' => true,
|
||||
'phpdoc_order' => true,
|
||||
'phpdoc_separation' => false,
|
||||
// 'psr_autoloading' => true,
|
||||
'strict_comparison' => true,
|
||||
'strict_param' => true,
|
||||
'concat_space' => [
|
||||
'spacing' => 'one'
|
||||
'spacing' => 'one',
|
||||
],
|
||||
])
|
||||
->setFinder(
|
||||
|
@ -44,7 +47,7 @@ return $config
|
|||
'node_modules',
|
||||
'vendor',
|
||||
'var',
|
||||
'web'
|
||||
'web',
|
||||
])
|
||||
->in(__DIR__)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue