Fix issues reported by phpcs (needs reroll, not mergable no more)

Created on 10 April 2023, over 1 year ago
Updated 1 February 2024, 11 months ago

vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig web/modules/

FILE: /var/www/html/contribution/web/modules/contrib/datatables-3335296/datatables.theme.inc
--------------------------------------------------------------------------------------------
FOUND 26 ERRORS AFFECTING 26 LINES
--------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
24 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
27 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
28 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
29 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
40 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
41 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
43 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
47 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
49 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
94 | ERROR | [x] Separate the @param and @code sections by a blank line.
95 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
97 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
101 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
102 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
120 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
122 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
123 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
124 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
128 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
129 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
130 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
131 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
134 | ERROR | [ ] Long array syntax must not be used in doc comment code annotations
147 | ERROR | [ ] Type hint "array" missing for $variables
180 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/datatables-3335296/templates/views-view-datatables.html.twig
-----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
35 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/datatables-3335296/templates/datatable.html.twig
-----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
42 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/datatables-3335296/README.txt
----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------
39 | ERROR | [x] Expected 1 newline at end of file; 3 found
----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/datatables-3335296/src/Plugin/views/style/DataTables.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 2 WARNINGS AFFECTING 7 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
77 | ERROR | [x] Empty array declaration must have no space between the parentheses
81 | WARNING | [x] A comma should follow the last multiline array item. Found: '- Filter -'
196 | ERROR | [ ] The array declaration extends to column 558 (the limit is 80). The array content should be split up over multiple lines
221 | WARNING | [x] '@todo: Drupal tables typically don't have a' should match the format '@todo Fix problem X here.'
231 | ERROR | [x] Use null coalesce operator instead of ternary operator.
250 | ERROR | [x] Use null coalesce operator instead of ternary operator.
255 | ERROR | [ ] Missing short description in doc comment
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/datatables-3335296/datatables.module
-------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
-------------------------------------------------------------------------------------------
55 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 8
66 | ERROR | [x] Expected 1 space after IF keyword; 0 found
172 | WARNING | [x] A comma should follow the last multiline array item. Found: '_TOTAL_'
-------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India himanshu_jhaloya Indore

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024