Fix deprecation warnings & remove old php_cs.dist
This commit is contained in:
parent
6be1cd895a
commit
10cb502f16
2 changed files with 8 additions and 88 deletions
|
@ -7,6 +7,8 @@
|
|||
|
||||
declare(strict_types=1);
|
||||
|
||||
require_once __DIR__ . '/bin/dev/php-cs-fixer/vendor/autoload.php';
|
||||
|
||||
$finder = PhpCsFixer\Finder::create()
|
||||
->in(__DIR__)
|
||||
->notPath('addon')
|
||||
|
@ -41,10 +43,10 @@ return $config
|
|||
],
|
||||
],
|
||||
'blank_line_after_namespace' => true,
|
||||
'braces' => [
|
||||
'position_after_anonymous_constructs' => 'same',
|
||||
'position_after_control_structures' => 'same',
|
||||
'position_after_functions_and_oop_constructs' => 'next',
|
||||
'braces_position' => [
|
||||
'anonymous_classes_opening_brace' => 'same_line',
|
||||
'control_structures_opening_brace' => 'same_line',
|
||||
'functions_opening_brace' => 'next_line_unless_newline_at_signature_end',
|
||||
],
|
||||
'elseif' => true,
|
||||
'encoding' => true,
|
||||
|
@ -60,7 +62,7 @@ return $config
|
|||
'lowercase_keywords' => true,
|
||||
'no_closing_tag' => true,
|
||||
'no_spaces_after_function_name' => true,
|
||||
'no_spaces_inside_parenthesis' => true,
|
||||
'spaces_inside_parenthesis' => false,
|
||||
'no_trailing_whitespace' => true,
|
||||
'no_trailing_whitespace_in_comment' => true,
|
||||
'no_unused_imports' => true,
|
||||
|
@ -73,7 +75,7 @@ return $config
|
|||
'visibility_required' => [
|
||||
'elements' => ['property', 'method']
|
||||
],
|
||||
'new_with_braces' => true,
|
||||
'new_with_parentheses' => true,
|
||||
])
|
||||
->setFinder($finder)
|
||||
->setIndent("\t");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue