mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-09 01:09:51 +00:00
DX: upgrade rules for phpcs
This commit is contained in:
parent
afd2235254
commit
e5c183aa44
@ -82,9 +82,36 @@ $riskyRules = [
|
|||||||
$untilFullSwitchToPhp8 = [
|
$untilFullSwitchToPhp8 = [
|
||||||
'blank_line_between_import_groups' => false,
|
'blank_line_between_import_groups' => false,
|
||||||
'declare_strict_types' => true,
|
'declare_strict_types' => true,
|
||||||
|
'multiline_whitespace_before_semicolons' => false,
|
||||||
|
'phpdoc_no_empty_return' => false,
|
||||||
];
|
];
|
||||||
|
|
||||||
$rules = array_merge(
|
$rules = array_merge(
|
||||||
|
[
|
||||||
|
'@PhpCsFixer' => true,
|
||||||
|
'@PhpCsFixer:risky' => false,
|
||||||
|
'@Symfony' => false,
|
||||||
|
'@Symfony:risky' => false,
|
||||||
|
'ordered_class_elements' => [
|
||||||
|
'order' => [
|
||||||
|
'use_trait',
|
||||||
|
'constant_public',
|
||||||
|
'constant_protected',
|
||||||
|
'constant_private',
|
||||||
|
'property_public',
|
||||||
|
'property_protected',
|
||||||
|
'property_private',
|
||||||
|
'construct',
|
||||||
|
'destruct',
|
||||||
|
'magic',
|
||||||
|
'phpunit',
|
||||||
|
'method_public',
|
||||||
|
'method_protected',
|
||||||
|
'method_private',
|
||||||
|
],
|
||||||
|
'sort_algorithm' => 'alpha',
|
||||||
|
]
|
||||||
|
],
|
||||||
$rules,
|
$rules,
|
||||||
$riskyRules,
|
$riskyRules,
|
||||||
$untilFullSwitchToPhp8,
|
$untilFullSwitchToPhp8,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user