Problem/Motivation
Getting the following error/warnings
FILE: /maintenance_extended/maintenance_extended.install
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
16 | ERROR | [x] Expected newline after closing brace
23 | ERROR | [x] Object operator not indented correctly; expected 8 spaces but found 13
23 | ERROR | [ ] The array declaration extends to column 82 (the limit is 80). The array content should be split up over multiple lines
42 | ERROR | [x] Expected newline after closing brace
-----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------
FILE: /maintenance_extended/maintenance_extended.module
--------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------
FILE: /maintenance_extended/src/Form/MaintenanceExtendedForm.php
-----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
34 | ERROR | [x] Expected 1 space after "="; 2 found
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------
FILE: /maintenance_extended/src/Routing/MaintenanceExtendedRouteSubscriber.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------
11 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-------------------------------------------------------------------------------------------------------------------------
FILE: /maintenance_extended/src/EventSubscriber/MaintenanceExtendedEventSubscriber.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 2 WARNINGS AFFECTING 10 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
16 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
22 | ERROR | [x] Data types in @var tags need to be fully namespaced
29 | ERROR | [x] Data types in @var tags need to be fully namespaced
36 | ERROR | [x] Data types in @var tags need to be fully namespaced
43 | ERROR | [x] Data types in @param tags need to be fully namespaced
45 | ERROR | [x] Data types in @param tags need to be fully namespaced
47 | ERROR | [x] Data types in @param tags need to be fully namespaced
59 | ERROR | [x] Data types in @param tags need to be fully namespaced
90 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
91 | ERROR | [ ] The array declaration extends to column 99 (the limit is 80). The array content should be split up over multiple lines
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
Steps to reproduce
Run the following command:
phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml maintenance_extended