Commit c3c99801 authored by Arnaud Buathier's avatar Arnaud Buathier
Browse files

update php cs-fixer

parent eab4b81d
......@@ -108,9 +108,14 @@ class PhpCsFixerRuleSet
'no_singleline_whitespace_before_semicolons' => true,
'no_spaces_around_offset' => true,
'no_superfluous_elseif' => true,
'no_trailing_comma_in_list_call' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_trailing_comma_in_singleline_function_call' => true,
'no_trailing_comma_in_singleline' => [
'elements' => [
'arguments',
'array',
'array_destructuring',
'group_import',
]
],
'no_trailing_whitespace_in_string' => true,
'no_unneeded_control_parentheses' => true,
'no_unneeded_curly_braces' => true,
......@@ -145,7 +150,8 @@ class PhpCsFixerRuleSet
'phpdoc_separation' => true,
'phpdoc_single_line_var_spacing' => true,
'phpdoc_summary' => true,
'phpdoc_to_comment' => true,
// phpdoc_to_comment is error-prone for inline type-hinting (ex: phpstan, psalm, ...)
'phpdoc_to_comment' => false,
'phpdoc_to_property_type' => true,
'phpdoc_to_return_type' => true,
'phpdoc_trim' => true,
......@@ -185,6 +191,26 @@ class PhpCsFixerRuleSet
'visibility_required' => true,
'void_return' => true,
'whitespace_after_comma_in_array' => true,
'declare_strict_types' => true,
'header_comment' => [
'location' => 'after_open',
'header' => 'Copyright 2005 - ' . date('Y') . ' Centreon (https://www.centreon.com/)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
For more information : contact@centreon.com
'
]
];
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment