A lot of coding standard issues seem to be present in the current 8.x-1.x
branch. See attached:
Review of the 8.x-1.x branch (commit 683bfd1):
hook_help()
. See
https://www.drupal.org/docs/develop/documenting-your-project/module-docu... →
.
FILE: ...vendor/drupal/pareviewsh/pareview_temp/src/Services/SessionLimit.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
--------------------------------------------------------------------------
192 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
249 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
250 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
434 | WARNING | There must be no blank line following an inline comment
491 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
--------------------------------------------------------------------------
FILE: ...web/vendor/drupal/pareviewsh/pareview_temp/src/Form/SettingsForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
--------------------------------------------------------------------------
31 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
40 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
44 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
49 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
56 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
66 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------
FILE: ...vendor/drupal/pareviewsh/pareview_temp/src/Form/SessionLimitForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
--------------------------------------------------------------------------
26 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
34 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
37 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
52 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
72 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
76 | WARNING | \Drupal calls should be avoided in classes, use
| | dependency injection instead
--------------------------------------------------------------------------
FILE: ...r/drupal/pareviewsh/pareview_temp/tests/SessionLimitBaseTestCase.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
244 | WARNING | Unused variable $cookie_file.
--------------------------------------------------------------------------
FILE: .../web/vendor/drupal/pareviewsh/pareview_temp/tests/session_limit.test
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 33 WARNINGS AFFECTING 33 LINES
--------------------------------------------------------------------------
14 | WARNING | Class name must be prefixed with the project name
| | "SessionLimit.info"
248 | WARNING | Unused variable $cookie_file.
299 | WARNING | Class name must be prefixed with the project name
| | "SessionLimit.info"
382 | WARNING | Class name must be prefixed with the project name
| | "SessionLimit.info"
431 | WARNING | Unused variable $roles.
438 | WARNING | There must be no blank line following an inline comment
444 | WARNING | There must be no blank line following an inline comment
450 | WARNING | There must be no blank line following an inline comment
466 | WARNING | Unused variable $roles.
471 | WARNING | There must be no blank line following an inline comment
479 | WARNING | There must be no blank line following an inline comment
485 | WARNING | There must be no blank line following an inline comment
491 | WARNING | There must be no blank line following an inline comment
507 | WARNING | Unused variable $roles.
512 | WARNING | There must be no blank line following an inline comment
520 | WARNING | There must be no blank line following an inline comment
526 | WARNING | There must be no blank line following an inline comment
532 | WARNING | There must be no blank line following an inline comment
546 | WARNING | Class name must be prefixed with the project name
| | "SessionLimit.info"
595 | WARNING | Unused variable $roles.
602 | WARNING | There must be no blank line following an inline comment
608 | WARNING | There must be no blank line following an inline comment
614 | WARNING | There must be no blank line following an inline comment
630 | WARNING | Unused variable $roles.
635 | WARNING | There must be no blank line following an inline comment
643 | WARNING | There must be no blank line following an inline comment
649 | WARNING | There must be no blank line following an inline comment
655 | WARNING | There must be no blank line following an inline comment
671 | WARNING | Unused variable $roles.
676 | WARNING | There must be no blank line following an inline comment
684 | WARNING | There must be no blank line following an inline comment
690 | WARNING | There must be no blank line following an inline comment
696 | WARNING | There must be no blank line following an inline comment
--------------------------------------------------------------------------
FILE: ...rupal/pareviewsh/pareview_temp/tests/SessionLimitPreventTestCase.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 14 WARNINGS AFFECTING 14 LINES
--------------------------------------------------------------------------
56 | WARNING | Unused variable $roles.
63 | WARNING | There must be no blank line following an inline comment
69 | WARNING | There must be no blank line following an inline comment
75 | WARNING | There must be no blank line following an inline comment
91 | WARNING | Unused variable $roles.
96 | WARNING | There must be no blank line following an inline comment
104 | WARNING | There must be no blank line following an inline comment
110 | WARNING | There must be no blank line following an inline comment
116 | WARNING | There must be no blank line following an inline comment
132 | WARNING | Unused variable $roles.
137 | WARNING | There must be no blank line following an inline comment
145 | WARNING | There must be no blank line following an inline comment
151 | WARNING | There must be no blank line following an inline comment
157 | WARNING | There must be no blank line following an inline comment
--------------------------------------------------------------------------
FILE: ...drupal/pareviewsh/pareview_temp/tests/SessionLimitLogoutTestCase.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 14 WARNINGS AFFECTING 14 LINES
--------------------------------------------------------------------------
56 | WARNING | Unused variable $roles.
63 | WARNING | There must be no blank line following an inline comment
69 | WARNING | There must be no blank line following an inline comment
75 | WARNING | There must be no blank line following an inline comment
91 | WARNING | Unused variable $roles.
96 | WARNING | There must be no blank line following an inline comment
104 | WARNING | There must be no blank line following an inline comment
110 | WARNING | There must be no blank line following an inline comment
116 | WARNING | There must be no blank line following an inline comment
132 | WARNING | Unused variable $roles.
137 | WARNING | There must be no blank line following an inline comment
145 | WARNING | There must be no blank line following an inline comment
151 | WARNING | There must be no blank line following an inline comment
157 | WARNING | There must be no blank line following an inline comment
--------------------------------------------------------------------------
Time: 2.16 secs; Memory: 6Mb
FILE: ...00000/site1101/web/vendor/drupal/pareviewsh/pareview_temp/README.txt
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
24 | WARNING | Line exceeds 80 characters; contains 93 characters
--------------------------------------------------------------------------
FILE: ...l/pareviewsh/pareview_temp/config/install/session_limit.settings.yml
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: ...vendor/drupal/pareviewsh/pareview_temp/src/Services/SessionLimit.php
--------------------------------------------------------------------------
FOUND 67 ERRORS AND 2 WARNINGS AFFECTING 61 LINES
--------------------------------------------------------------------------
21 | ERROR | [x] Missing class doc comment
31 | ERROR | [ ] Missing short description in doc comment
54 | ERROR | [ ] Missing short description in doc comment
59 | ERROR | [ ] Missing short description in doc comment
60 | ERROR | [x] Data types in @var tags need to be fully namespaced
64 | ERROR | [ ] Missing short description in doc comment
69 | ERROR | [ ] Missing short description in doc comment
70 | ERROR | [x] Data types in @var tags need to be fully namespaced
75 | ERROR | [ ] Missing short description in doc comment
76 | ERROR | [x] Data types in @var tags need to be fully namespaced
80 | ERROR | [ ] Missing short description in doc comment
81 | ERROR | [x] Data types in @var tags need to be fully namespaced
85 | ERROR | [ ] Missing short description in doc comment
86 | ERROR | [x] Data types in @var tags need to be fully namespaced
93 | ERROR | [x] Data types in @param tags need to be fully
| | namespaced
95 | ERROR | [x] Data types in @param tags need to be fully
| | namespaced
97 | ERROR | [x] Data types in @param tags need to be fully
| | namespaced
99 | ERROR | [x] Data types in @param tags need to be fully
| | namespaced
101 | ERROR | [x] Data types in @param tags need to be fully
| | namespaced
103 | ERROR | [x] Data types in @param tags need to be fully
| | namespaced
105 | ERROR | [x] Data types in @param tags need to be fully
| | namespaced
118 | ERROR | [ ] Missing short description in doc comment
119 | ERROR | [ ] Description for the @return value is missing
119 | ERROR | [x] Data types in @return tags need to be fully
| | namespaced
125 | ERROR | [ ] Missing short description in doc comment
126 | ERROR | [ ] Description for the @return value is missing
126 | ERROR | [x] Data types in @return tags need to be fully
| | namespaced
132 | ERROR | [ ] Missing short description in doc comment
133 | ERROR | [ ] Description for the @return value is missing
146 | ERROR | [x] Data types in @var tags need to be fully namespaced
167 | ERROR | [x] Inline comments must start with a capital letter
174 | ERROR | [x] Inline comments must start with a capital letter
183 | ERROR | [ ] Missing parameter comment
183 | ERROR | [x] Data types in @param tags need to be fully
| | namespaced
227 | ERROR | [ ] Missing parameter comment
227 | ERROR | [x] Data types in @param tags need to be fully
| | namespaced
231 | ERROR | [x] There must be no space before the colon in a CASE
| | statement
235 | ERROR | [x] There must be no space before the colon in a CASE
| | statement
239 | ERROR | [x] There must be no space before the colon in a CASE
| | statement
248 | ERROR | [ ] Protected method name
| | "SessionLimit::_onSessionCollision__Ask" is not in
| | lowerCamel format
261 | ERROR | [x] Data types in @param tags need to be fully
| | namespaced
264 | ERROR | [ ] Protected method name
| | "SessionLimit::_onSessionCollision__PreventNew" is
| | not in lowerCamel format
265 | ERROR | [x] Data types in @var tags need to be fully namespaced
278 | ERROR | [x] Data types in @param tags need to be fully
| | namespaced
281 | ERROR | [ ] Protected method name
| | "SessionLimit::_onSessionCollision__DropOldest" is
| | not in lowerCamel format
284 | ERROR | [x] Short array syntax must be used to define arrays
295 | ERROR | [x] Short array syntax must be used to define arrays
302 | ERROR | [x] Data types in @var tags need to be fully namespaced
318 | ERROR | [x] Parameter comment must end with a full stop
320 | ERROR | [x] Parameter comment must end with a full stop
327 | ERROR | [x] Array indentation error, expected 8 spaces but found
| | 10
328 | ERROR | [x] Array closing indentation error, expected 6 spaces
| | but found 8
348 | ERROR | [ ] Missing parameter comment
352 | ERROR | [x] Short array syntax must be used to define arrays
411 | ERROR | [ ] Missing parameter comment
425 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
425 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
439 | ERROR | [ ] Missing short description in doc comment
448 | ERROR | [ ] Missing short description in doc comment
463 | ERROR | [x] Doc comment short description must start with a
| | capital letter
463 | ERROR | [x] Doc comment short description must end with a full
| | stop
470 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: 'status'
477 | ERROR | [ ] Description for the @return value is missing
487 | ERROR | [ ] Missing parameter comment
487 | ERROR | [x] Data types in @param tags need to be fully
| | namespaced
488 | ERROR | [x] Separate the @param and @return sections by a blank
| | line.
488 | ERROR | [ ] Description for the @return value is missing
494 | ERROR | [x] Expected 1 blank line after function; 0 found
495 | ERROR | [x] The closing brace for the class must have an empty
| | line before it
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 42 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: ...al/pareviewsh/pareview_temp/src/Event/SessionLimitCollisionEvent.php
--------------------------------------------------------------------------
FOUND 21 ERRORS AND 1 WARNING AFFECTING 20 LINES
--------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
8 | ERROR | [x] Missing class doc comment
10 | ERROR | [ ] Missing short description in doc comment
15 | ERROR | [ ] Missing short description in doc comment
16 | ERROR | [x] Data types in @var tags need to be fully namespaced
20 | ERROR | [ ] Missing short description in doc comment
25 | ERROR | [ ] Missing short description in doc comment
33 | ERROR | [ ] Missing parameter comment
34 | ERROR | [ ] Missing parameter comment
34 | ERROR | [x] Data types in @param tags need to be fully namespaced
35 | ERROR | [ ] Missing parameter comment
36 | ERROR | [ ] Missing parameter comment
38 | ERROR | [ ] Type hint "AccountInterface" missing for $account
45 | ERROR | [ ] Missing short description in doc comment
46 | ERROR | [ ] Description for the @return value is missing
52 | ERROR | [ ] Missing short description in doc comment
53 | ERROR | [ ] Description for the @return value is missing
59 | ERROR | [ ] Missing short description in doc comment
60 | ERROR | [ ] Description for the @return value is missing
66 | ERROR | [ ] Missing short description in doc comment
67 | ERROR | [ ] Description for the @return value is missing
67 | ERROR | [x] Data types in @return tags need to be fully
| | namespaced
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: ...rupal/pareviewsh/pareview_temp/src/Event/SessionLimitBypassEvent.php
--------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------
7 | ERROR | [x] Missing class doc comment
9 | ERROR | [ ] Missing short description in doc comment
17 | ERROR | [x] Doc comment long description must start with a capital
| | letter
29 | ERROR | [ ] Missing short description in doc comment
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: ...l/pareviewsh/pareview_temp/src/Event/SessionLimitDisconnectEvent.php
--------------------------------------------------------------------------
FOUND 18 ERRORS AND 1 WARNING AFFECTING 19 LINES
--------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
8 | ERROR | [x] Missing class doc comment
10 | ERROR | [ ] Missing short description in doc comment
15 | ERROR | [ ] Missing short description in doc comment
20 | ERROR | [ ] Missing short description in doc comment
25 | ERROR | [ ] Missing short description in doc comment
33 | ERROR | [ ] Missing parameter comment
34 | ERROR | [ ] Missing parameter comment
35 | ERROR | [ ] Missing parameter comment
43 | ERROR | [ ] Missing short description in doc comment
44 | ERROR | [ ] Description for the @return value is missing
50 | ERROR | [ ] Missing short description in doc comment
51 | ERROR | [ ] Description for the @return value is missing
72 | ERROR | [ ] Description for the @return value is missing
81 | ERROR | [ ] Description for the @return value is missing
90 | ERROR | [ ] Missing parameter comment
91 | ERROR | [x] Separate the @param and @return sections by a blank
| | line.
96 | ERROR | [x] Expected 1 blank line after function; 0 found
97 | ERROR | [x] The closing brace for the class must have an empty
| | line before it
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: ...web/vendor/drupal/pareviewsh/pareview_temp/src/Form/SettingsForm.php
--------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
--------------------------------------------------------------------------
7 | WARNING | [x] Unused use statement
10 | ERROR | [x] Missing class doc comment
26 | ERROR | [x] Missing function doc comment
80 | ERROR | [ ] No key specified for array entry; first entry
| | specifies key
97 | ERROR | [x] Namespaced classes/interfaces/traits should be
| | referenced with use statements
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: ...vendor/drupal/pareviewsh/pareview_temp/src/Form/SessionLimitForm.php
--------------------------------------------------------------------------
FOUND 6 ERRORS AND 3 WARNINGS AFFECTING 9 LINES
--------------------------------------------------------------------------
8 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
12 | ERROR | [x] Missing class doc comment
25 | ERROR | [x] Data types in @var tags need to be fully namespaced
33 | ERROR | [x] Data types in @var tags need to be fully namespaced
70 | ERROR | [x] Missing function doc comment
71 | ERROR | [x] Data types in @var tags need to be fully namespaced
75 | ERROR | [x] Data types in @var tags need to be fully namespaced
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: ...r/drupal/pareviewsh/pareview_temp/tests/SessionLimitBaseTestCase.php
--------------------------------------------------------------------------
FOUND 37 ERRORS AND 1 WARNING AFFECTING 38 LINES
--------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one
| | blank line
14 | ERROR | [ ] Missing @var tag in member variable comment
15 | ERROR | [x] Short array syntax must be used to define arrays
16 | ERROR | [x] Short array syntax must be used to define arrays
21 | ERROR | [x] Expected "object" but found "stdClass" for parameter
| | type
30 | ERROR | [x] Short array syntax must be used to define arrays
32 | ERROR | [x] Short array syntax must be used to define arrays
33 | ERROR | [x] Short array syntax must be used to define arrays
34 | ERROR | [x] Short array syntax must be used to define arrays
56 | ERROR | [x] Expected "object" but found "stdClass" for parameter
| | type
65 | ERROR | [x] Short array syntax must be used to define arrays
67 | ERROR | [x] Short array syntax must be used to define arrays
74 | ERROR | [x] Short array syntax must be used to define arrays
75 | ERROR | [x] Short array syntax must be used to define arrays
88 | ERROR | [x] Short array syntax must be used to define arrays
89 | ERROR | [x] Short array syntax must be used to define arrays
97 | ERROR | [x] Short array syntax must be used to define arrays
98 | ERROR | [x] Short array syntax must be used to define arrays
106 | ERROR | [x] Short array syntax must be used to define arrays
117 | ERROR | [x] Short array syntax must be used to define arrays
118 | ERROR | [x] Short array syntax must be used to define arrays
139 | ERROR | [x] Short array syntax must be used to define arrays
141 | ERROR | [x] Short array syntax must be used to define arrays
148 | ERROR | [x] Short array syntax must be used to define arrays
149 | ERROR | [x] Short array syntax must be used to define arrays
159 | ERROR | [x] Short array syntax must be used to define arrays
160 | ERROR | [x] Short array syntax must be used to define arrays
166 | ERROR | [x] Short array syntax must be used to define arrays
193 | ERROR | [ ] Function return type is not void, but function is
| | returning void here
209 | ERROR | [x] Expected 1 space after closing brace; newline found
253 | ERROR | [x] Short array syntax must be used to define arrays
254 | ERROR | [x] Short array syntax must be used to define arrays
267 | ERROR | [ ] Missing parameter type
277 | ERROR | [x] Short array syntax must be used to define arrays
279 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: pass_raw
284 | ERROR | [x] Short array syntax must be used to define arrays
289 | ERROR | [x] Expected 1 blank line after function; 0 found
290 | ERROR | [x] The closing brace for the class must have an empty
| | line before it
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 35 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: ...rupal/pareviewsh/pareview_temp/tests/SessionLimitSessionTestCase.php
--------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
--------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank
| | line
10 | ERROR | [x] Doc comment short description must start with a capital
| | letter
13 | ERROR | [x] Short array syntax must be used to define arrays
21 | ERROR | [x] Doc comment short description must start with a capital
| | letter
39 | ERROR | [x] Short array syntax must be used to define arrays
40 | ERROR | [x] Short array syntax must be used to define arrays
84 | ERROR | [x] Expected 1 blank line after function; 0 found
85 | ERROR | [x] The closing brace for the class must have an empty line
| | before it
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: .../web/vendor/drupal/pareviewsh/pareview_temp/tests/session_limit.test
--------------------------------------------------------------------------
FOUND 143 ERRORS AND 25 WARNINGS AFFECTING 136 LINES
--------------------------------------------------------------------------
18 | ERROR | [ ] Missing @var tag in member variable comment
19 | ERROR | [x] Short array syntax must be used to define arrays
20 | ERROR | [x] Short array syntax must be used to define arrays
25 | ERROR | [x] Expected "object" but found "stdClass" for parameter
| | type
34 | ERROR | [x] Short array syntax must be used to define arrays
36 | ERROR | [x] Short array syntax must be used to define arrays
37 | ERROR | [x] Short array syntax must be used to define arrays
38 | ERROR | [x] Short array syntax must be used to define arrays
60 | ERROR | [x] Expected "object" but found "stdClass" for parameter
| | type
69 | ERROR | [x] Short array syntax must be used to define arrays
71 | ERROR | [x] Short array syntax must be used to define arrays
78 | ERROR | [x] Short array syntax must be used to define arrays
79 | ERROR | [x] Short array syntax must be used to define arrays
92 | ERROR | [x] Short array syntax must be used to define arrays
93 | ERROR | [x] Short array syntax must be used to define arrays
101 | ERROR | [x] Short array syntax must be used to define arrays
102 | ERROR | [x] Short array syntax must be used to define arrays
110 | ERROR | [x] Short array syntax must be used to define arrays
121 | ERROR | [x] Short array syntax must be used to define arrays
122 | ERROR | [x] Short array syntax must be used to define arrays
143 | ERROR | [x] Short array syntax must be used to define arrays
145 | ERROR | [x] Short array syntax must be used to define arrays
152 | ERROR | [x] Short array syntax must be used to define arrays
153 | ERROR | [x] Short array syntax must be used to define arrays
163 | ERROR | [x] Short array syntax must be used to define arrays
164 | ERROR | [x] Short array syntax must be used to define arrays
170 | ERROR | [x] Short array syntax must be used to define arrays
197 | ERROR | [ ] Function return type is not void, but function is
| | returning void here
213 | ERROR | [x] Expected 1 space after closing brace; newline found
257 | ERROR | [x] Short array syntax must be used to define arrays
258 | ERROR | [x] Short array syntax must be used to define arrays
271 | ERROR | [ ] Missing parameter type
281 | ERROR | [x] Short array syntax must be used to define arrays
283 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: pass_raw
288 | ERROR | [x] Short array syntax must be used to define arrays
293 | ERROR | [x] Expected 1 blank line after function; 0 found
294 | ERROR | [x] The closing brace for the class must have an empty
| | line before it
302 | ERROR | [x] Doc comment short description must start with a
| | capital letter
305 | ERROR | [x] Short array syntax must be used to define arrays
313 | ERROR | [x] Doc comment short description must start with a
| | capital letter
331 | ERROR | [x] Short array syntax must be used to define arrays
332 | ERROR | [x] Short array syntax must be used to define arrays
376 | ERROR | [x] Expected 1 blank line after function; 0 found
377 | ERROR | [x] The closing brace for the class must have an empty
| | line before it
385 | ERROR | [x] Doc comment short description must start with a
| | capital letter
388 | ERROR | [x] Short array syntax must be used to define arrays
396 | ERROR | [x] Doc comment short description must start with a
| | capital letter
430 | ERROR | [x] Short array syntax must be used to define arrays
435 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
436 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
437 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
438 | WARNING | [x] There must be no blank line following an inline
| | comment
438 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
438 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
441 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
442 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
443 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
444 | WARNING | [x] There must be no blank line following an inline
| | comment
444 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
447 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
448 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
449 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
450 | WARNING | [x] There must be no blank line following an inline
| | comment
450 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
470 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
471 | WARNING | [x] There must be no blank line following an inline
| | comment
471 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
471 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
476 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
477 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
478 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
479 | WARNING | [x] There must be no blank line following an inline
| | comment
479 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
479 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
482 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
483 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
484 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
485 | WARNING | [x] There must be no blank line following an inline
| | comment
485 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
488 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
489 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
490 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
491 | WARNING | [x] There must be no blank line following an inline
| | comment
491 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
502 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
511 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
512 | WARNING | [x] There must be no blank line following an inline
| | comment
512 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
512 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
517 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
518 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
519 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
520 | WARNING | [x] There must be no blank line following an inline
| | comment
520 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
520 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
523 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
524 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
525 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
526 | WARNING | [x] There must be no blank line following an inline
| | comment
526 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
529 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
530 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
531 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
532 | WARNING | [x] There must be no blank line following an inline
| | comment
532 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
540 | ERROR | [x] Expected 1 blank line after function; 0 found
541 | ERROR | [x] The closing brace for the class must have an empty
| | line before it
549 | ERROR | [x] Doc comment short description must start with a
| | capital letter
552 | ERROR | [x] Short array syntax must be used to define arrays
560 | ERROR | [x] Doc comment short description must start with a
| | capital letter
594 | ERROR | [x] Short array syntax must be used to define arrays
599 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
600 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
601 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
602 | WARNING | [x] There must be no blank line following an inline
| | comment
602 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
602 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
605 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
606 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
607 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
608 | WARNING | [x] There must be no blank line following an inline
| | comment
608 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
611 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
612 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
613 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
614 | WARNING | [x] There must be no blank line following an inline
| | comment
614 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
634 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
635 | WARNING | [x] There must be no blank line following an inline
| | comment
635 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
635 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
640 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
641 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
642 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
643 | WARNING | [x] There must be no blank line following an inline
| | comment
643 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
643 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
646 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
647 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
648 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
649 | WARNING | [x] There must be no blank line following an inline
| | comment
649 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
652 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
653 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
654 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
655 | WARNING | [x] There must be no blank line following an inline
| | comment
655 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
666 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
675 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
676 | WARNING | [x] There must be no blank line following an inline
| | comment
676 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
676 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
681 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
682 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
683 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
684 | WARNING | [x] There must be no blank line following an inline
| | comment
684 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
684 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
687 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
688 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
689 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
690 | WARNING | [x] There must be no blank line following an inline
| | comment
690 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
693 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
694 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
695 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
696 | WARNING | [x] There must be no blank line following an inline
| | comment
696 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 163 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: ...rupal/pareviewsh/pareview_temp/tests/SessionLimitPreventTestCase.php
--------------------------------------------------------------------------
FOUND 50 ERRORS AND 12 WARNINGS AFFECTING 46 LINES
--------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one
| | blank line
10 | ERROR | [x] Doc comment short description must start with a
| | capital letter
13 | ERROR | [x] Short array syntax must be used to define arrays
21 | ERROR | [x] Doc comment short description must start with a
| | capital letter
55 | ERROR | [x] Short array syntax must be used to define arrays
60 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
62 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
63 | WARNING | [x] There must be no blank line following an inline
| | comment
63 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
63 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
66 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
67 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
68 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
69 | WARNING | [x] There must be no blank line following an inline
| | comment
69 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
72 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
73 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
74 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
75 | WARNING | [x] There must be no blank line following an inline
| | comment
75 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
95 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
96 | WARNING | [x] There must be no blank line following an inline
| | comment
96 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
96 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
101 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
102 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
103 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
104 | WARNING | [x] There must be no blank line following an inline
| | comment
104 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
104 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
107 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
108 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
109 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
110 | WARNING | [x] There must be no blank line following an inline
| | comment
110 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
113 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
114 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
115 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
116 | WARNING | [x] There must be no blank line following an inline
| | comment
116 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
127 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
136 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
137 | WARNING | [x] There must be no blank line following an inline
| | comment
137 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
137 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
142 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
143 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
144 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
145 | WARNING | [x] There must be no blank line following an inline
| | comment
145 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
145 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
148 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
149 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
150 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
151 | WARNING | [x] There must be no blank line following an inline
| | comment
151 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
154 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
155 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
156 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
157 | WARNING | [x] There must be no blank line following an inline
| | comment
157 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 61 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
FILE: ...drupal/pareviewsh/pareview_temp/tests/SessionLimitLogoutTestCase.php
--------------------------------------------------------------------------
FOUND 52 ERRORS AND 12 WARNINGS AFFECTING 48 LINES
--------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one
| | blank line
10 | ERROR | [x] Doc comment short description must start with a
| | capital letter
13 | ERROR | [x] Short array syntax must be used to define arrays
21 | ERROR | [x] Doc comment short description must start with a
| | capital letter
55 | ERROR | [x] Short array syntax must be used to define arrays
60 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
62 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
63 | WARNING | [x] There must be no blank line following an inline
| | comment
63 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
63 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
66 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
67 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
68 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
69 | WARNING | [x] There must be no blank line following an inline
| | comment
69 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
72 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
73 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
74 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
75 | WARNING | [x] There must be no blank line following an inline
| | comment
75 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
95 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
96 | WARNING | [x] There must be no blank line following an inline
| | comment
96 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
96 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
101 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
102 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
103 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
104 | WARNING | [x] There must be no blank line following an inline
| | comment
104 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
104 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
107 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
108 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
109 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
110 | WARNING | [x] There must be no blank line following an inline
| | comment
110 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
113 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
114 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
115 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
116 | WARNING | [x] There must be no blank line following an inline
| | comment
116 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
127 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
136 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
137 | WARNING | [x] There must be no blank line following an inline
| | comment
137 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
137 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
142 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
143 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
144 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
145 | WARNING | [x] There must be no blank line following an inline
| | comment
145 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
145 | ERROR | [x] Inline comments must end in full-stops, exclamation
| | marks, colons, question marks, or closing
| | parentheses
148 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
149 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
150 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
151 | WARNING | [x] There must be no blank line following an inline
| | comment
151 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
154 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
155 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
156 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
157 | WARNING | [x] There must be no blank line following an inline
| | comment
157 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found
| | 0
165 | ERROR | [x] Expected 1 blank line after function; 0 found
166 | ERROR | [x] The closing brace for the class must have an empty
| | line before it
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 63 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------
Time: 3.19 secs; Memory: 8Mb
Closed: duplicate
1.0
Code
It involves compliance with, or the content of coding standards. Requires broad community agreement.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.