Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
centreon
centreon-test-lib
Commits
c3c99801
Commit
c3c99801
authored
Nov 22, 2022
by
Arnaud Buathier
Browse files
update php cs-fixer
parent
eab4b81d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/PhpCsFixer/PhpCsFixerRuleSet.php
View file @
c3c99801
...
...
@@ -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
'
]
];
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment