Problem/Motivation
Getting following error/warnings
FILE: /app/modules/contrib/structure_sync/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
15 | WARNING | Line exceeds 80 characters; contains 82 characters
50 | WARNING | Line exceeds 80 characters; contains 81 characters
----------------------------------------------------------------------
FILE: /app/modules/contrib/structure_sync/src/Commands/StructureSyncCommands.php
----------------------------------------------------------------------------------
FOUND 23 ERRORS AFFECTING 23 LINES
----------------------------------------------------------------------------------
22 | ERROR | [x] Doc comment short description must end with a full stop
39 | ERROR | [x] Doc comment short description must end with a full stop
51 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
52 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
53 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
54 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
55 | ERROR | [x] Array closing indentation error, expected 3 spaces but found 4
77 | ERROR | [x] Doc comment short description must end with a full stop
93 | ERROR | [x] Doc comment short description must end with a full stop
105 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
106 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
107 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
108 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
109 | ERROR | [x] Array closing indentation error, expected 3 spaces but found 4
131 | ERROR | [x] Doc comment short description must end with a full stop
147 | ERROR | [x] Doc comment short description must end with a full stop
160 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
161 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
162 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
163 | ERROR | [x] Array indentation error, expected 5 spaces but found 6
164 | ERROR | [x] Array closing indentation error, expected 3 spaces but found 4
186 | ERROR | [x] Doc comment short description must end with a full stop
202 | ERROR | [x] Doc comment short description must end with a full stop
----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 23 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------
FILE: /app/modules/contrib/structure_sync/src/Controller/BlocksController.php
--------------------------------------------------------------------------------------------
FOUND 18 ERRORS AFFECTING 18 LINES
--------------------------------------------------------------------------------------------
16 | ERROR | [ ] Missing member variable doc comment
69 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
70 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
235 | ERROR | [x] Expected 1 space after IF keyword; 0 found
236 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
237 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
238 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
239 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
240 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 12
241 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
242 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
264 | ERROR | [x] Expected 1 space after IF keyword; 0 found
265 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
266 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
267 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
268 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
269 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 12
270 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
--------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 17 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------
FILE: /app/modules/contrib/structure_sync/src/Controller/MenuLinksController.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 15 ERRORS AFFECTING 15 LINES
------------------------------------------------------------------------------------------------------------------------------------------
16 | ERROR | [ ] Missing member variable doc comment
223 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
224 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
225 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
226 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
227 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 12
228 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
229 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
251 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
252 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
253 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
254 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
255 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 12
256 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
322 | ERROR | [ ] The array declaration extends to column 81 (the limit is 80). The array content should be split up over multiple lines
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------
FILE: /app/modules/contrib/structure_sync/src/Controller/TaxonomiesController.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 15 ERRORS AND 7 WARNINGS AFFECTING 20 LINES
-------------------------------------------------------------------------------------------------------------------------------
16 | ERROR | [ ] Missing member variable doc comment
96 | ERROR | [x] Use null coalesce operator instead of ternary operator.
130 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
130 | ERROR | [x] Line indented incorrectly; expected 16 spaces, found 2
133 | WARNING | [x] A comma should follow the last multiline array item. Found: )
135 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
135 | ERROR | [x] Line indented incorrectly; expected 16 spaces, found 2
197 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
301 | ERROR | [x] Expected 1 space after IF keyword; 0 found
331 | ERROR | [x] Expected 1 space after IF keyword; 0 found
391 | ERROR | [x] Expected newline after closing brace
484 | ERROR | [x] PHP keywords must be lowercase; expected "self" but found "Self"
559 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
560 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
561 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
578 | ERROR | [x] Expected newline after closing brace
579 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
580 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
649 | ERROR | [x] PHP keywords must be lowercase; expected "self" but found "Self"
742 | ERROR | [x] Expected newline after closing brace
744 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
796 | ERROR | [x] PHP keywords must be lowercase; expected "self" but found "Self"
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------
FILE: /app/modules/contrib/structure_sync/src/Form/BlocksSyncForm.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
26 | ERROR | Missing member variable doc comment
----------------------------------------------------------------------
FILE: /app/modules/contrib/structure_sync/tests/src/Traits/StructureSyncMenuLinksSetUpTrait.php
-----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------
20 | WARNING | Line exceeds 80 characters; contains 81 characters
-----------------------------------------------------------------------------------------------
Time: 1.3 secs; Memory: 16MB
Steps to reproduce
Run following command
phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/structure_sync/
Proposed resolution
Above error/warnings need to be fixed