Fix the issues reported by phpcs

Created on 10 July 2024, 4 months ago
Updated 12 August 2024, 3 months ago

Problem/Motivation

Running :-
vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig web/modules/contrib/comment_on_top/
returns the following warnings/errors, which should be fixed.

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/comment_on_top/comment_on_top.routing.yml
------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
13 | ERROR | [x] Expected 1 newline at end of file; 3 found
------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/comment_on_top/comment_on_top.info.yml
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
-------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/comment_on_top/README.md
-------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 33 WARNINGS AFFECTING 33 LINES
-------------------------------------------------------------------------------------
2 | WARNING | Line exceeds 80 characters; contains 119 characters
11 | WARNING | Line exceeds 80 characters; contains 117 characters
16 | WARNING | Line exceeds 80 characters; contains 83 characters
17 | WARNING | Line exceeds 80 characters; contains 129 characters
22 | WARNING | Line exceeds 80 characters; contains 99 characters
23 | WARNING | Line exceeds 80 characters; contains 115 characters
30 | WARNING | Line exceeds 80 characters; contains 109 characters
31 | WARNING | Line exceeds 80 characters; contains 111 characters
33 | WARNING | Line exceeds 80 characters; contains 97 characters
35 | WARNING | Line exceeds 80 characters; contains 89 characters
36 | WARNING | Line exceeds 80 characters; contains 87 characters
37 | WARNING | Line exceeds 80 characters; contains 85 characters
40 | WARNING | Line exceeds 80 characters; contains 103 characters
41 | WARNING | Line exceeds 80 characters; contains 94 characters
44 | WARNING | Line exceeds 80 characters; contains 98 characters
52 | WARNING | Line exceeds 80 characters; contains 115 characters
54 | WARNING | Line exceeds 80 characters; contains 85 characters
56 | WARNING | Line exceeds 80 characters; contains 81 characters
57 | WARNING | Line exceeds 80 characters; contains 92 characters
64 | WARNING | Line exceeds 80 characters; contains 111 characters
68 | WARNING | Line exceeds 80 characters; contains 110 characters
71 | WARNING | Line exceeds 80 characters; contains 83 characters
73 | WARNING | Line exceeds 80 characters; contains 83 characters
74 | WARNING | Line exceeds 80 characters; contains 116 characters
81 | WARNING | Line exceeds 80 characters; contains 92 characters
86 | WARNING | Line exceeds 80 characters; contains 112 characters
87 | WARNING | Line exceeds 80 characters; contains 115 characters
92 | WARNING | Line exceeds 80 characters; contains 81 characters
98 | WARNING | Line exceeds 80 characters; contains 105 characters
102 | WARNING | Line exceeds 80 characters; contains 98 characters
103 | WARNING | Line exceeds 80 characters; contains 83 characters
104 | WARNING | Line exceeds 80 characters; contains 100 characters
110 | WARNING | Line exceeds 80 characters; contains 91 characters
-------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/comment_on_top/src/CommentOnTopService.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 74 ERRORS AND 3 WARNINGS AFFECTING 61 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
3 | ERROR | [x] Expected strict_types=1, found strict_types = 1.
5 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
7 | WARNING | [x] Unused use statement
7 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
8 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
9 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
10 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
12 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
15 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
17 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
29 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
48 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
48 | ERROR | [x] The first parameter of a multi-line function declaration must be on the line after the opening bracket
48 | ERROR | [x] Multi-line function declarations must define one parameter per line
49 | ERROR | [x] Multi-line function declaration not indented correctly; expected 6 spaces but found 32
49 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
49 | ERROR | [x] The closing parenthesis of a multi-line function declaration must be on a new line
50 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
51 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
52 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
53 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
55 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
64 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
65 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
70 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
72 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
78 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
79 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
84 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
85 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
86 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
86 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
87 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
88 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
89 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
90 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
92 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
100 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
101 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
103 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
103 | ERROR | [x] No space found before comment text; expected "// If comments exists in this node, only then you can use stickOnTop()" but found "//If comments exists in this node,
| | only then you can use stickOnTop()"
104 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
105 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
106 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
106 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
107 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
108 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
109 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
110 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
111 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
112 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
112 | ERROR | [x] No space found before comment text; expected "// If on node is checked "Stick on top by likes" then display message" but found "//If on node is checked "Stick on
| | top by likes" then display message"
112 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
113 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
114 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
115 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
115 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
116 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
117 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
119 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
127 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
128 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
129 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
129 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
130 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
132 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
132 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
133 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
133 | ERROR | [x] Expected 1 blank line after function; 0 found
134 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
134 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 75 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/comment_on_top/src/CommentOnTopByLikesPerNode.php
--------------------------------------------------------------------------------------------------------------
FOUND 45 ERRORS AND 1 WARNING AFFECTING 36 LINES
--------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] Expected 1 line before declare statement, found 0.
1 | ERROR | [x] Expected strict_types=1, found strict_types = 1.
3 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
5 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
6 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
8 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
11 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
21 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
24 | ERROR | [x] Missing function doc comment
25 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
28 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
28 | ERROR | [x] Expected 1 blank line after function; 2 found
31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
39 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
40 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
46 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
46 | ERROR | [x] Expected 1 blank line after function; 2 found
49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
58 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
59 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
64 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
64 | ERROR | [x] Expected 1 blank line after function; 2 found
67 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
75 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
76 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
83 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
83 | ERROR | [x] Expected 1 blank line after function; 2 found
86 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
87 | WARNING | [ ] Line exceeds 80 characters; contains 98 characters
94 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
95 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
99 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
99 | ERROR | [x] Expected 1 blank line after function; 2 found
102 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
112 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
113 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
120 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
120 | ERROR | [x] Expected 1 blank line after function; 0 found
121 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
121 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 45 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/comment_on_top/src/Controller/CommentOnTopController.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 34 ERRORS AFFECTING 31 LINES
------------------------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
5 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
6 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
7 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
8 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\comment_on_top\CommentOnTopService.
9 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
11 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
14 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
29 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
30 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
37 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
40 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
42 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
53 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
54 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
56 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
57 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
58 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
60 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
71 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
72 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
74 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
75 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
76 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
76 | ERROR | [x] Expected 1 blank line after function; 0 found
77 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
77 | ERROR | [x] The closing brace for the class must have an empty line before it
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 34 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/comment_on_top/comment_on_top.module
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 293 ERRORS AND 17 WARNINGS AFFECTING 244 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
3 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
4 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
5 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
6 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\field\Entity\FieldStorageConfig.
7 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
9 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
10 | ERROR | [x] Expected 3 space(s) before asterisk; 1 found
11 | ERROR | [x] Expected 3 space(s) before asterisk; 1 found
12 | ERROR | [x] Expected 3 space(s) before asterisk; 1 found
14 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
15 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "*
| | Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
16 | ERROR | [ ] Doc comment short description must end with a full stop
16 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
18 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
20 | ERROR | [x] No space found before comment text; expected "// Checking is there any comment in node Sticked on top" but found "//Checking is there any comment in node Sticked
| | on top"
20 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
23 | ERROR | [x] No space found before comment text; expected "// Making array of all Sticked on top values" but found "//Making array of all Sticked on top values"
23 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
26 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
27 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
28 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
29 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
30 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
35 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
36 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
39 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
41 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
44 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
45 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
46 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
48 | WARNING | [ ] Line exceeds 80 characters; contains 120 characters
48 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
48 | ERROR | [x] No space found before comment text; expected "// If one comment is Sticked on top display button Stick on top to every comment except One which is sticked..." but
| | found "//If one comment is Sticked on top display button Stick on top to every comment except One which is sticked..."
49 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
51 | WARNING | [ ] Line exceeds 80 characters; contains 111 characters
51 | ERROR | [x] No space found before comment text; expected "// ...or if neither one comment is Sticked on top display button Sticked on top to every comment..." but found
| | "//...or if neither one comment is Sticked on top display button Sticked on top to every comment..."
52 | ERROR | [x] No space found before comment text; expected "// ...except default drupal first comment" but found "//...except default drupal first comment"
54 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
60 | WARNING | [x] A comma should follow the last multiline array item. Found: $node_id
65 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
67 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
67 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
68 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
69 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
76 | WARNING | [x] A comma should follow the last multiline array item. Found: $node_id
81 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
82 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
83 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
84 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
85 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
87 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
88 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "*
| | Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
90 | ERROR | [ ] Doc comment short description must end with a full stop
90 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
92 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
93 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
93 | WARNING | [ ] Unused variable $routeName.
94 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
94 | ERROR | [x] No space found before comment text; expected "// Get all comments in node" but found "//Get all comments in node"
94 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
95 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
96 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
96 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
96 | ERROR | [x] No space found before comment text; expected "// Get comments threads, and with threads replace default array keys from $view->result" but found "//Get comments
| | threads, and with threads replace default array keys from $view->result"
96 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
97 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
98 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
99 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
100 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
101 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
103 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
105 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
107 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
107 | ERROR | [x] No space found before comment text; expected "// Getting sticked comment" but found "//Getting sticked comment"
107 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
108 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
108 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
109 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
110 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
110 | ERROR | [x] Use null coalesce operator instead of ternary operator.
111 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
112 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
112 | ERROR | [x] No space found before comment text; expected "// If comment is sticked on top" but found "//If comment is sticked on top"
112 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
113 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
114 | WARNING | [ ] Line exceeds 80 characters; contains 129 characters
114 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
114 | ERROR | [x] No space found before comment text; expected "// then define $stickedCommentThread as first digits thread. That is order number of comment like 04 for fourth
| | comment." but found "//then define $stickedCommentThread as first digits thread. That is order number of comment like 04 for fourth comment."
114 | ERROR | [x] Inline comments must start with a capital letter
115 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
116 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
117 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
119 | WARNING | [ ] Line exceeds 80 characters; contains 85 characters
119 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
119 | ERROR | [x] No space found before comment text; expected "// if NOT $stickedCommentThread = null, If user clicked on button "Stick on top"" but found "//if NOT
| | $stickedCommentThread = null, If user clicked on button "Stick on top""
119 | ERROR | [x] Inline comments must start with a capital letter
119 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
120 | WARNING | [ ] Unused variable $commentThread.
120 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
120 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
121 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
121 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
122 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
122 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
123 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
124 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
126 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
126 | ERROR | [x] Expected newline after closing brace
128 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
130 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
132 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters
132 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
132 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
133 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
134 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
135 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
136 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 12
137 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
138 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
139 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
139 | ERROR | [x] No space found before comment text; expected "// Comment on top with its replies is sticked on top" but found "//Comment on top with its replies is sticked on top"
139 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
140 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
141 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
142 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
143 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
143 | ERROR | [x] No space found before comment text; expected "// Make default comments order based on database" but found "//Make default comments order based on database"
143 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
144 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
145 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
146 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 12
147 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 14
148 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 12
149 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
150 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
150 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
151 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
151 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
155 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
156 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
158 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
160 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
162 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
163 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
166 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
167 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
167 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
168 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
169 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
170 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
171 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
173 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
174 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "*
| | Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
175 | ERROR | [ ] Doc comment short description must end with a full stop
175 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
177 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
178 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
178 | ERROR | [x] No space found before comment text; expected "// Get all content types which have node.comment field" but found "//Get all content types which have node.comment
| | field"
178 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
179 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
179 | ERROR | [ ] Variable "FieldStorageConfig" starts with a capital letter, but only $lowerCamelCase or $snake_case is allowed
180 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
180 | ERROR | [ ] Variable "ContentTypesHaveCommentField" starts with a capital letter, but only $lowerCamelCase or $snake_case is allowed
180 | ERROR | [ ] Variable "FieldStorageConfig" starts with a capital letter, but only $lowerCamelCase or $snake_case is allowed
180 | ERROR | [ ] Variable "FieldStorageConfig" starts with a capital letter, but only $lowerCamelCase or $snake_case is allowed
180 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
182 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
182 | ERROR | [x] No space found before comment text; expected "// Status of comment settings. '2' is open for commenting" but found "//Status of comment settings. '2' is open for
| | commenting"
182 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
183 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
185 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
185 | ERROR | [ ] Variable "ContentTypesHaveCommentField" starts with a capital letter, but only $lowerCamelCase or $snake_case is allowed
186 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
187 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
189 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
191 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
192 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
193 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
194 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
196 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
199 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
201 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
202 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
203 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
204 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
205 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
206 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
208 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
209 | ERROR | [x] Doc comment short description must end with a full stop
211 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
212 | ERROR | [x] Expected 0 spaces before opening parenthesis; 2 found
213 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
220 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
223 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
224 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
226 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
229 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
229 | ERROR | [ ] comment_on_top_uninstall() is an installation hook and must be declared in an install file
230 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
231 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
232 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
233 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
235 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
238 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
238 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
239 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
240 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
241 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
242 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
242 | ERROR | [x] Concat operator must be surrounded by a single space
244 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
245 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
246 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
247 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
248 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
249 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
250 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
251 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
251 | ERROR | [x] Concat operator must be surrounded by a single space
252 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
253 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
253 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
254 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
255 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
255 | ERROR | [x] Concat operator must be surrounded by a single space
256 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
257 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
257 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
258 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
259 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
259 | ERROR | [x] Concat operator must be surrounded by a single space
260 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
261 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
262 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
263 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
264 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
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] Line indented incorrectly; expected 6 spaces, found 8
270 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
271 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
271 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
272 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
273 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
274 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
275 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
276 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
277 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
278 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
279 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
280 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
281 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
282 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
283 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
284 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
284 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
285 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
286 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
287 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
288 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
289 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
290 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
291 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
292 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
292 | ERROR | [x] Concat operator must be surrounded by a single space
293 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
294 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
295 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
296 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
297 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
298 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
299 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
300 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
301 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
302 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
303 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
304 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
305 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
306 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
307 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
308 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
309 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
310 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
311 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
312 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
313 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
314 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
315 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
316 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
317 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
318 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
319 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
320 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
324 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
325 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
326 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 283 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/comment_on_top/tests/src/ExistingSite/CommentOnTopTest.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 183 ERRORS AND 10 WARNINGS AFFECTING 135 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
5 | WARNING | [x] Unused use statement
5 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
6 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
7 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\comment_on_top\Controller\CommentOnTopController.
8 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
9 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
11 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
11 | ERROR | [x] Missing class doc comment
13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
13 | ERROR | [x] Missing function doc comment
14 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
16 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
17 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
20 | ERROR | [x] Missing function doc comment
22 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
22 | ERROR | [x] No space found before comment text; expected "// Creating node 999999" but found "//Creating node 999999"
22 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
23 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
28 | WARNING | [x] A comma should follow the last multiline array item. Found: 999999
30 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
32 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
34 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
34 | ERROR | [x] No space found before comment text; expected "// Creating comment 1 for node with id 9999991" but found "//Creating comment 1 for node with id 9999991"
34 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
35 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
48 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
48 | ERROR | [x] No space found before comment text; expected "// Creating comment 2 for node with id 9999992" but found "//Creating comment 2 for node with id 9999992"
48 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
49 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
60 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
62 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
62 | ERROR | [x] No space found before comment text; expected "// Creating reply for comment 2 with id 9999992" but found "//Creating reply for comment 2 with id 9999992"
62 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
63 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
75 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
77 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
77 | ERROR | [x] No space found before comment text; expected "// Creating third comment 3 for node with id 9999992" but found "//Creating third comment 3 for node with id 9999992"
77 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
78 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
89 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
91 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
91 | ERROR | [x] No space found before comment text; expected "// Creating reply for comment 3 with id 9999992" but found "//Creating reply for comment 3 with id 9999992"
91 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
92 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
104 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
106 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
108 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
108 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
108 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
109 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
111 | WARNING | [ ] Line exceeds 80 characters; contains 96 characters
111 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
111 | ERROR | [x] No space found before comment text; expected "// Sticking on top comment 3 with id 9999994 along with its reply (comment with id 9999995)" but found "//Sticking on
| | top comment 3 with id 9999994 along with its reply (comment with id 9999995)"
112 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
113 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
114 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
115 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
117 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
119 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
121 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
122 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
123 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
124 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
125 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
127 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
127 | ERROR | [x] No space found before comment text; expected "// Testing is sticked comment 3 to top along with its reply" but found "//Testing is sticked comment 3 to top along
| | with its reply"
127 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
128 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
133 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
133 | ERROR | [x] No space found before comment text; expected "// Testing is comment 1 bellow sticked comment reply" but found "//Testing is comment 1 bellow sticked comment reply"
133 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
134 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
139 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
139 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
140 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
145 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
145 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
146 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
151 | WARNING | [ ] Line exceeds 80 characters; contains 108 characters
151 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
151 | ERROR | [x] No space found before comment text; expected "// Testing is comment with cid 9999994 has value sticked_on_top 1 and comment with cid 9999991 has null" but found
| | "//Testing is comment with cid 9999994 has value sticked_on_top 1 and comment with cid 9999991 has null"
151 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
152 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
153 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
154 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
155 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
156 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
157 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
158 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
159 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
160 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
162 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
163 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
165 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
166 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
168 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
168 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
168 | ERROR | [x] No space found before comment text; expected "// Testing is sticked comment has value 1 on field Sticked on top and its cid" but found "//Testing is sticked
| | comment has value 1 on field Sticked on top and its cid"
168 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
169 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
170 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
172 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
172 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
172 | ERROR | [x] No space found before comment text; expected "// Testing is not sticked comment has value null on field Sticked on top and its cid" but found "//Testing is not
| | sticked comment has value null on field Sticked on top and its cid"
172 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
173 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
174 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
176 | WARNING | [ ] Line exceeds 80 characters; contains 96 characters
176 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
176 | ERROR | [x] No space found before comment text; expected "// Sticking on top comment 2 with id 9999992 along with its reply (comment with id 9999993)" but found "//Sticking on
| | top comment 2 with id 9999992 along with its reply (comment with id 9999993)"
177 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
178 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
180 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
182 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
184 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
185 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
186 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
187 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
188 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
190 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
190 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
191 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
196 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
196 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
197 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
202 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
202 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
203 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
208 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
208 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
209 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
214 | WARNING | [ ] Line exceeds 80 characters; contains 107 characters
214 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
214 | ERROR | [x] No space found before comment text; expected "// Testing does comment with cid 9999992 has value sticked_on_top 1 and comment with cid 9999991 has 0" but found
| | "//Testing does comment with cid 9999992 has value sticked_on_top 1 and comment with cid 9999991 has 0"
214 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
215 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
216 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
217 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
218 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
219 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
220 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
221 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
222 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
223 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
225 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
226 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
228 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
229 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
231 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
231 | ERROR | [x] No space found before comment text; expected "// Does sticked comment has value 1 on field Sticked on top and its cid" but found "//Does sticked comment has value
| | 1 on field Sticked on top and its cid"
231 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
232 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
233 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
235 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
235 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
235 | ERROR | [x] No space found before comment text; expected "// Testing is not sticked comment has value null on field Sticked on top and its cid" but found "//Testing is not
| | sticked comment has value null on field Sticked on top and its cid"
235 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
236 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
237 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
239 | WARNING | [ ] Line exceeds 80 characters; contains 91 characters
239 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
239 | ERROR | [x] No space found before comment text; expected "// Removing top comment with id 9999992 along with its reply (comment with id 9999993)" but found "//Removing top
| | comment with id 9999992 along with its reply (comment with id 9999993)"
240 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
241 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
243 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
245 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
247 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
248 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
249 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
250 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
251 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
253 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
253 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
254 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
259 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
259 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
260 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
265 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
265 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
266 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
271 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
271 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
272 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
277 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
278 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
278 | ERROR | [x] Expected 1 blank line after function; 0 found
279 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
279 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 185 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/comment_on_top/config/install/field.storage.comment.field_stick_comment_on_top_boole.yml
-----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------
17 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/comment_on_top/comment_on_top_by_likes/comment_on_top_by_likes.info.yml
------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/comment_on_top/comment_on_top_by_likes/src/CommentOnTopByLikesMostLikedCommentInNode.php
-----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 56 ERRORS AND 1 WARNING AFFECTING 38 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] Expected 1 line before declare statement, found 0.
1 | ERROR | [x] Expected strict_types=1, found strict_types = 1.
3 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
5 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
6 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
8 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
8 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
8 | ERROR | [x] Missing class doc comment
8 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
8 | ERROR | [x] Expected 1 space before opening brace; found \t
11 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
19 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
22 | ERROR | [x] Missing function doc comment
23 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
26 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
26 | ERROR | [x] Expected 1 blank line after function; 2 found
29 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
39 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
39 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
40 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
44 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
46 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
47 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
48 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
50 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
50 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
51 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
52 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
52 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
53 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
56 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
58 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
58 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
59 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
62 | WARNING | [ ] Line exceeds 80 characters; contains 119 characters
62 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
62 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
63 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
64 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
65 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
66 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
67 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
69 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
69 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
70 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
71 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
71 | ERROR | [x] Expected 1 blank line after function; 0 found
72 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
72 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
72 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 56 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/comment_on_top/comment_on_top_by_likes/src/Form/ContentTypeCommentOnTopByLikesSettingsForm.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 166 ERRORS AND 3 WARNINGS AFFECTING 121 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] Expected 1 line before declare statement, found 0.
1 | ERROR | [x] Expected strict_types=1, found strict_types = 1.
3 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
5 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
6 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
7 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityTypeManagerInterface.
8 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
9 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
10 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
11 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
11 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
14 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
17 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
20 | ERROR | [ ] Missing short description in doc comment
23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
26 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
42 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
42 | ERROR | [x] Expected 1 blank line before function; 2 found
42 | ERROR | [x] The first parameter of a multi-line function declaration must be on the line after the opening bracket
43 | ERROR | [x] Multi-line function declaration not indented correctly; expected 6 spaces but found 32
43 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
43 | ERROR | [x] The closing parenthesis of a multi-line function declaration must be on a new line
44 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
45 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
46 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
46 | ERROR | [x] Expected 1 blank line after function; 2 found
49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
52 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
53 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
54 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
54 | ERROR | [x] Expected 1 blank line after function; 2 found
57 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
60 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
62 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
62 | ERROR | [x] Expected 1 blank line after function; 2 found
65 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
68 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
69 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
73 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
73 | ERROR | [x] Expected 1 blank line after function; 2 found
76 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
79 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
80 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
82 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
82 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
83 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
85 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
87 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
87 | ERROR | [x] The first index in a multi-value array must be on a new line
87 | ERROR | [x] Concat operator must be surrounded by a single space
87 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
89 | ERROR | [x] Concat operator must be surrounded by a single space
90 | ERROR | [ ] String concat is not required here; use a single string instead
90 | ERROR | [x] Concat operator must be surrounded by a single space
91 | ERROR | [x] Array indentation error, expected 10 spaces but found 8
91 | ERROR | [x] Concat operator must be surrounded by a single space
91 | ERROR | [x] Concat operator must be surrounded by a single space
91 | ERROR | [x] Closing parenthesis of array declaration must be on a new line
93 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
94 | WARNING | [x] A comma should follow the last multiline array item. Found: '

'
97 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
97 | ERROR | [x] No space found before comment text; expected "// Get all content types as checkboxes" but found "//Get all content types as checkboxes"
97 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
98 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
101 | ERROR | [x] Use null coalesce operator instead of ternary operator.
108 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
108 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
108 | ERROR | [x] No space found before comment text; expected "// Form element with radio buttons. Hidden if content type is not checked." but found "//Form element with radio
| | buttons. Hidden if content type is not checked."
109 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
109 | ERROR | [x] Concat operator must be surrounded by a single space
114 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
114 | ERROR | [x] Concat operator must be surrounded by a single space
114 | ERROR | [x] Concat operator must be surrounded by a single space
118 | ERROR | [x] Concat operator must be surrounded by a single space
119 | ERROR | [x] Concat operator must be surrounded by a single space
126 | ERROR | [x] Concat operator must be surrounded by a single space
126 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
127 | ERROR | [x] Use null coalesce operator instead of ternary operator.
127 | ERROR | [x] Concat operator must be surrounded by a single space
127 | ERROR | [x] Concat operator must be surrounded by a single space
129 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
130 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
131 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
133 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
133 | ERROR | [x] No space found before comment text; expected "// Ajax method of radio buttons" but found "//Ajax method of radio buttons"
133 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
134 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
134 | ERROR | [x] You must use "/**" style comments for a function comment
135 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
137 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
138 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
140 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
140 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
141 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
143 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
143 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
144 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
146 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
147 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
148 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
149 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
150 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
151 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
152 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
153 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
154 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
155 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
156 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
157 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
157 | ERROR | [x] Expected 1 blank line after function; 2 found
160 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
161 | ERROR | [ ] Doc comment short description must start with a capital letter
162 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
164 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
165 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
167 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
168 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
170 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
171 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
172 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
173 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
175 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
176 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
178 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
179 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
179 | ERROR | [x] Expected 1 blank line after function; 2 found
182 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
185 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
186 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
188 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
188 | ERROR | [x] No space found before comment text; expected "// Setting values in configuration for updating db table" but found "//Setting values in configuration for updating
| | db table"
188 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
189 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
190 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
190 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
191 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
193 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
194 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
196 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
196 | ERROR | [x] No space found before comment text; expected "// Updating db only if content type is checked" but found "//Updating db only if content type is checked"
196 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
197 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
197 | ERROR | [x] Expected 1 space after IF keyword; 2 found
198 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 14
199 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 16
200 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 16
201 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 14
201 | ERROR | [x] Expected newline after closing brace
202 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 16
203 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 16
204 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 14
205 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
206 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
207 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
207 | ERROR | [x] Expected newline after closing brace
208 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
209 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
210 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
212 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
213 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
213 | ERROR | [x] Expected 1 blank line after function; 0 found
214 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
214 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 163 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/comment_on_top/comment_on_top_by_likes/src/Form/ContentTypeCommentByLikesConfirmForm.php
-----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 16 ERRORS AFFECTING 14 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] Expected 1 line before declare statement, found 0.
1 | ERROR | [x] Expected strict_types=1, found strict_types = 1.
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityTypeManagerInterface.
10 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
13 | ERROR | [ ] Missing short description in doc comment
19 | ERROR | [ ] Missing short description in doc comment
31 | ERROR | [x] Expected 1 blank line before function; 2 found
33 | ERROR | [x] Expected 1 blank line after function; 2 found
43 | ERROR | [x] Expected 1 blank line after function; 2 found
51 | ERROR | [x] Expected 1 blank line after function; 2 found
72 | ERROR | [x] Expected 1 blank line after function; 2 found
80 | ERROR | [x] Expected 1 blank line after function; 2 found
88 | ERROR | [x] Space found after object operator
90 | ERROR | [x] Expected 1 blank line after function; 0 found
91 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/comment_on_top/comment_on_top_by_likes/src/Controller/CommentOnTopByLikesController.php
----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AND 2 WARNINGS AFFECTING 9 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] Expected 1 line before declare statement, found 0.
1 | ERROR | [x] Expected strict_types=1, found strict_types = 1.
10 | WARNING | [x] Unused use statement
10 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
15 | ERROR | [ ] Doc comment short description must end with a full stop
15 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
68 | ERROR | [x] Doc comment short description must end with a full stop
71 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
75 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
75 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
78 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
80 | ERROR | [x] Expected 1 blank line after function; 0 found
81 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/comment_on_top/comment_on_top_by_likes/tests/src/ExistingSite/CommentOnTopByLikesTest.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 184 ERRORS AND 6 WARNINGS AFFECTING 115 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
5 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
6 | WARNING | [x] Unused use statement
6 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
7 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
8 | WARNING | [x] Unused use statement
8 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Database\Connection.
10 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
10 | ERROR | [x] Missing class doc comment
12 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
12 | ERROR | [ ] Missing member variable doc comment
14 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
14 | ERROR | [x] Missing function doc comment
16 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
16 | ERROR | [x] No space found before comment text; expected "// Create user" but found "//Create user"
16 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
17 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
17 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
17 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
18 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
20 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
20 | ERROR | [x] No space found before comment text; expected "// Create article with checked Stick on top by likes checkbox" but found "//Create article with checked Stick on top
| | by likes checkbox"
20 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
21 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
22 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
23 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
24 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
26 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
27 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
29 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
31 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
32 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
34 | WARNING | [ ] Line exceeds 80 characters; contains 102 characters
34 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
34 | ERROR | [x] No space found before comment text; expected "// Test against db table comment__stick_on_top_by_likes column sticked_on_top_by_likes is equal 0" but found "//Test
| | against db table comment__stick_on_top_by_likes column sticked_on_top_by_likes is equal 0"
34 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
35 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
36 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
37 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
39 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
39 | ERROR | [x] No space found before comment text; expected "// Add first comment" but found "//Add first comment"
40 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
40 | ERROR | [x] No space found before comment text; expected "// Creating comment 1 for node with id 9999991. With 1 like" but found "//Creating comment 1 for node with id
| | 9999991. With 1 like"
40 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
41 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
53 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
55 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
55 | ERROR | [x] No space found before comment text; expected "// Add first comment reply one" but found "//Add first comment reply one"
56 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
56 | ERROR | [x] No space found before comment text; expected "// Creating reply for comment 1 with id 99999911. With 3 likes" but found "//Creating reply for comment 1 with id
| | 99999911. With 3 likes"
56 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
57 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
70 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
72 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
72 | ERROR | [x] No space found before comment text; expected "// Add first comment reply on reply one" but found "//Add first comment reply on reply one"
73 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
73 | ERROR | [x] No space found before comment text; expected "// Creating reply for reply comment 1 with id 999999111. With 4 likes" but found "//Creating reply for reply comment
| | 1 with id 999999111. With 4 likes"
73 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
74 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
87 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
89 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
89 | ERROR | [x] No space found before comment text; expected "// Add second comment" but found "//Add second comment"
90 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
90 | ERROR | [x] No space found before comment text; expected "// Creating comment 2 for node with id 9999992. With 5 likes" but found "//Creating comment 2 for node with id
| | 9999992. With 5 likes"
90 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
91 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
103 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
105 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
105 | ERROR | [x] No space found before comment text; expected "// Add second comment reply one" but found "//Add second comment reply one"
106 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
106 | ERROR | [x] No space found before comment text; expected "// Creating reply for comment 2 with id 99999921. With 1 like" but found "//Creating reply for comment 2 with id
| | 99999921. With 1 like"
106 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
107 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
120 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
122 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
122 | ERROR | [x] No space found before comment text; expected "// Add second comment reply on reply one" but found "//Add second comment reply on reply one"
123 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
123 | ERROR | [x] No space found before comment text; expected "// Creating reply for reply comment 2 with id 999999211" but found "//Creating reply for reply comment 2 with id
| | 999999211"
123 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
124 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
136 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
138 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
138 | ERROR | [x] No space found before comment text; expected "// Add third comment" but found "//Add third comment"
139 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
139 | ERROR | [x] No space found before comment text; expected "// Creating comment 3 for node with id 9999993. With 1 like" but found "//Creating comment 3 for node with id
| | 9999993. With 1 like"
139 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
140 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
152 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
154 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
156 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
156 | ERROR | [x] Concat operator must be surrounded by a single space
156 | ERROR | [x] Concat operator must be surrounded by a single space
158 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
159 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
160 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
162 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
163 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
165 | WARNING | [ ] Line exceeds 80 characters; contains 102 characters
165 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
165 | ERROR | [x] No space found before comment text; expected "// Test against db table comment__stick_on_top_by_likes column sticked_on_top_by_likes is equal 1" but found "//Test
| | against db table comment__stick_on_top_by_likes column sticked_on_top_by_likes is equal 1"
165 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
166 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
167 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
169 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
171 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
171 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
171 | ERROR | [x] No space found before comment text; expected "// Test comment order with its replies. Is second comment with its replies on top" but found "//Test comment order
| | with its replies. Is second comment with its replies on top"
171 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
172 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
174 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
175 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
176 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
177 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
178 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
179 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
180 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
182 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
182 | ERROR | [x] No space found before comment text; expected "// Testing is sticked comment 2 to top along with its first reply" but found "//Testing is sticked comment 2 to top
| | along with its first reply"
182 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
183 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
188 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
188 | ERROR | [x] No space found before comment text; expected "// Testing is comment 2 reply above comment 2 reply of reply" but found "//Testing is comment 2 reply above comment 2
| | reply of reply"
188 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
189 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
194 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
194 | ERROR | [x] No space found before comment text; expected "// Testing is comment 2 reply on reply above comment 1" but found "//Testing is comment 2 reply on reply above
| | comment 1"
194 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
195 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
200 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
200 | ERROR | [x] No space found before comment text; expected "// Testing is comment 1 above comment 1 reply" but found "//Testing is comment 1 above comment 1 reply"
200 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
201 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
206 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
206 | ERROR | [x] No space found before comment text; expected "// Testing is comment 1 reply above comment 1 reply on reply" but found "//Testing is comment 1 reply above comment 1
| | reply on reply"
206 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
207 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
212 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
212 | ERROR | [x] No space found before comment text; expected "// Testing is comment 1 reply on reply above comment 3" but found "//Testing is comment 1 reply on reply above
| | comment 3"
212 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
213 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
218 | WARNING | [ ] Line exceeds 80 characters; contains 98 characters
218 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
218 | ERROR | [x] No space found before comment text; expected "// Edit article and uncheck Stick on top by likes and test is comment order by Drupal default" but found "//Edit
| | article and uncheck Stick on top by likes and test is comment order by Drupal default"
218 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
219 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
219 | ERROR | [x] Concat operator must be surrounded by a single space
219 | ERROR | [x] Concat operator must be surrounded by a single space
221 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
222 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
223 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
225 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
226 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
228 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
230 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
232 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
233 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
234 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
235 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
236 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
237 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
238 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
240 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
240 | ERROR | [x] No space found before comment text; expected "// Testing is comment 1 above comment 1 reply" but found "//Testing is comment 1 above comment 1 reply"
240 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
241 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
246 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
246 | ERROR | [x] No space found before comment text; expected "// Testing is comment 1 reply above comment 1 reply on reply" but found "//Testing is comment 1 reply above comment 1
| | reply on reply"
246 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
247 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
252 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
252 | ERROR | [x] No space found before comment text; expected "// Testing is comment 1 reply on reply above comment 2" but found "//Testing is comment 1 reply on reply above
| | comment 2"
252 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
253 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
258 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
258 | ERROR | [x] No space found before comment text; expected "// Testing is comment 2 above comment 2 reply" but found "//Testing is comment 2 above comment 2 reply"
258 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
259 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
264 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
264 | ERROR | [x] No space found before comment text; expected "// Testing is comment 2 reply above comment 2 reply on reply" but found "//Testing is comment 2 reply above comment 2
| | reply on reply"
264 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
265 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
270 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
270 | ERROR | [x] No space found before comment text; expected "// Testing is comment 2 reply on reply above comment 3" but found "//Testing is comment 2 reply on reply above
| | comment 3"
270 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
271 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
276 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
276 | ERROR | [x] Expected 1 blank line after function; 0 found
277 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
277 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 185 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /home/prem/Documents/drupal-10.3.1/web/modules/contrib/comment_on_top/comment_on_top_by_likes/comment_on_top_by_likes.module
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 129 ERRORS AND 12 WARNINGS AFFECTING 108 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
3 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
4 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
6 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
7 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "*
| | Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
8 | WARNING | [ ] Line exceeds 80 characters; contains 98 characters
8 | ERROR | [ ] Doc comment short description must end with a full stop
8 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
10 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
10 | ERROR | [ ] comment_on_top_by_likes_schema() is an installation hook and must be declared in an install file
11 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
39 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
41 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
42 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "*
| | Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
43 | WARNING | [ ] Line exceeds 80 characters; contains 96 characters
43 | ERROR | [ ] Doc comment short description must end with a full stop
43 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
45 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
45 | ERROR | [ ] comment_on_top_by_likes_install() is an installation hook and must be declared in an install file
46 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
52 | WARNING | [ ] Line exceeds 80 characters; contains 95 characters
52 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
52 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
53 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
55 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
56 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
57 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
58 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
58 | ERROR | [x] Expected 1 blank line after function; 2 found
61 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
62 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "*
| | Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
63 | ERROR | [ ] Doc comment short description must end with a full stop
63 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
65 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
65 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
66 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
67 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
68 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
70 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
72 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
73 | ERROR | [x] Use null coalesce operator instead of ternary operator.
75 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
75 | ERROR | [x] No space found before comment text; expected "// Selecting content types which have comments" but found "//Selecting content types which have comments"
75 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
76 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
78 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
84 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
85 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
86 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
86 | ERROR | [x] Expected 1 blank line after function; 2 found
89 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
90 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
90 | ERROR | [x] Doc comment short description must end with a full stop
94 | ERROR | [ ] Parameter tags must be defined first in a doc comment
94 | ERROR | [ ] Missing parameter comment
95 | ERROR | [ ] Missing parameter comment
97 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
97 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
98 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
99 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
100 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
102 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
103 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
104 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
106 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
107 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
109 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
110 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
110 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
111 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
112 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
112 | ERROR | [x] Expected newline after closing brace
113 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
114 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
115 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
117 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
117 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
117 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
118 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
119 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
120 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
121 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
122 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
122 | ERROR | [x] Expected 1 blank line after function; 2 found
125 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
126 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "*
| | Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
127 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
127 | ERROR | [ ] Doc comment short description must end with a full stop
127 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
129 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
130 | ERROR | [x] Opening brace should be on the same line as the declaration
131 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
131 | ERROR | [x] No space found before comment text; expected "// Get node nid" but found "//Get node nid"
131 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
132 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
133 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
135 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
137 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
137 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
138 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
139 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
140 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
141 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
142 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
143 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
144 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
145 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
146 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
146 | ERROR | [x] Expected 1 blank line after function; 2 found
149 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
150 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "*
| | Implements hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
151 | ERROR | [ ] Doc comment short description must end with a full stop
151 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
153 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
154 | ERROR | [x] Opening brace should be on the same line as the declaration
155 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
157 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
158 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
160 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
162 | WARNING | [ ] Line exceeds 80 characters; contains 91 characters
162 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
162 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
163 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
164 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
165 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
166 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
167 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
168 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
168 | ERROR | [x] Expected 1 blank line after function; 2 found
171 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
174 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
174 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
175 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
176 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
177 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
179 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 8
182 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
183 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
184 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 114 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Time: 715ms; Memory: 14MB

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

šŸ“Œ Task
Status

RTBC

Version

2.0

Component

Code

Created by

šŸ‡®šŸ‡³India prem suthar Ahemdabad- Gujrat , Jodhpur - Rajsthan

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

  • Issue created by @prem suthar
  • Assigned to dev2.addweb
  • šŸ‡®šŸ‡³India dev2.addweb

    nilesh.addweb ā†’ changed the visibility of the branch 3460407- to hidden.

  • Issue was unassigned.
  • Status changed to Needs review 4 months ago
  • Status changed to Needs work 4 months ago
  • šŸ‡µšŸ‡­Philippines cleavinjosh

    Hi @,

    I applied patch #4, it was not applied smoothly and I still encountered some issues after I ran phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml.

    āžœ  comment_on_top git:(main) āœ— curl https://www.drupal.org/files/issues/2024-07-10/comment_on_top-3460407-fixed-phpcs-issues.patch | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  145k  100  145k    0     0   313k      0 --:--:-- --:--:-- --:--:--  313k
    patching file README.md
    patching file comment_on_top.info.yml
    Reversed (or previously applied) patch detected!  Assume -R? [n] n
    Apply anyway? [n] n
    Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file comment_on_top.info.yml.rej
    patching file comment_on_top.module
    patching file comment_on_top.routing.yml
    patching file comment_on_top_by_likes/comment_on_top_by_likes.info.yml
    Reversed (or previously applied) patch detected!  Assume -R? [n] n
    Apply anyway? [n] n
    Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file comment_on_top_by_likes/comment_on_top_by_likes.info.yml.rej
    patching file comment_on_top_by_likes/comment_on_top_by_likes.module
    patching file comment_on_top_by_likes/src/CommentOnTopByLikesMostLikedCommentInNode.php
    patching file comment_on_top_by_likes/src/Controller/CommentOnTopByLikesController.php
    patching file comment_on_top_by_likes/src/Form/ContentTypeCommentByLikesConfirmForm.php
    patching file comment_on_top_by_likes/src/Form/ContentTypeCommentOnTopByLikesSettingsForm.php
    patching file comment_on_top_by_likes/tests/src/ExistingSite/CommentOnTopByLikesTest.php
    patching file config/install/field.storage.comment.field_stick_comment_on_top_boole.yml
    patching file src/CommentOnTopByLikesPerNode.php
    patching file src/CommentOnTopService.php
    patching file src/Controller/CommentOnTopController.php
    patching file tests/src/ExistingSite/CommentOnTopTest.php
    āžœ  comment_on_top git:(main) āœ— ..
    āžœ  contrib git:(main) āœ— phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml comment_on_top
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/comment_on_top/comment_on_top_by_likes/comment_on_top_by_likes.info.yml
    --------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------------------------
     1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
     1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
     1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
    --------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/comment_on_top/comment_on_top_by_likes/src/Form/ContentTypeCommentOnTopByLikesSettingsForm.php
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------
     46 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/comment_on_top/comment_on_top.info.yml
    -------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------
     1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
     1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
     1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
    -------------------------------------------------------------------------------------------------------------
    
    
    FILE: /Users/interns/Demo-site/drupal-org-issues/web/modules/contrib/comment_on_top/src/CommentOnTopService.php
    ---------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------
     53 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
    ---------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------------------------------------------
    
    Time: 494ms; Memory: 12MB
    
    āžœ  contrib git:(main) āœ—

    Please check and advise.
    Thank you.

  • šŸ‡®šŸ‡³India dev2.addweb

    @cleavinjosh thanks for reviewing,
    Please checkout to 2.0.x branch and then apply patch.
    I have retested patch and it has been applied smoothly

    modules/custom/comment_on_top-3460407$ curl https://www.drupal.org/files/issues/2024-07-10/comment_on_top-3460407-fixed-phpcs-issues.patch | git apply -v
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  145k  100  145k    0     0   195k      0 --:--:-- --:--:-- --:--:--  194k
    Checking patch README.md...
    Checking patch comment_on_top.info.yml...
    Checking patch comment_on_top.module...
    Checking patch comment_on_top.routing.yml...
    Checking patch comment_on_top_by_likes/comment_on_top_by_likes.info.yml...
    Checking patch comment_on_top_by_likes/comment_on_top_by_likes.module...
    Checking patch comment_on_top_by_likes/src/CommentOnTopByLikesMostLikedCommentInNode.php...
    Checking patch comment_on_top_by_likes/src/Controller/CommentOnTopByLikesController.php...
    Checking patch comment_on_top_by_likes/src/Form/ContentTypeCommentByLikesConfirmForm.php...
    Checking patch comment_on_top_by_likes/src/Form/ContentTypeCommentOnTopByLikesSettingsForm.php...
    Checking patch comment_on_top_by_likes/tests/src/ExistingSite/CommentOnTopByLikesTest.php...
    Checking patch config/install/field.storage.comment.field_stick_comment_on_top_boole.yml...
    Checking patch src/CommentOnTopByLikesPerNode.php...
    Checking patch src/CommentOnTopService.php...
    Checking patch src/Controller/CommentOnTopController.php...
    Checking patch tests/src/ExistingSite/CommentOnTopTest.php...
    Applied patch README.md cleanly.
    Applied patch comment_on_top.info.yml cleanly.
    Applied patch comment_on_top.module cleanly.
    Applied patch comment_on_top.routing.yml cleanly.
    Applied patch comment_on_top_by_likes/comment_on_top_by_likes.info.yml cleanly.
    Applied patch comment_on_top_by_likes/comment_on_top_by_likes.module cleanly.
    Applied patch comment_on_top_by_likes/src/CommentOnTopByLikesMostLikedCommentInNode.php cleanly.
    Applied patch comment_on_top_by_likes/src/Controller/CommentOnTopByLikesController.php cleanly.
    Applied patch comment_on_top_by_likes/src/Form/ContentTypeCommentByLikesConfirmForm.php cleanly.
    Applied patch comment_on_top_by_likes/src/Form/ContentTypeCommentOnTopByLikesSettingsForm.php cleanly.
    Applied patch comment_on_top_by_likes/tests/src/ExistingSite/CommentOnTopByLikesTest.php cleanly.
    Applied patch config/install/field.storage.comment.field_stick_comment_on_top_boole.yml cleanly.
    Applied patch src/CommentOnTopByLikesPerNode.php cleanly.
    Applied patch src/CommentOnTopService.php cleanly.
    Applied patch src/Controller/CommentOnTopController.php cleanly.
    Applied patch tests/src/ExistingSite/CommentOnTopTest.php cleanly.
  • Merge request !5#3460407 fixed phpcs issues. ā†’ (Merged) created by Unnamed author
  • Status changed to Needs review 3 months ago
  • šŸ‡®šŸ‡³India dev2.addweb

    Hi,
    I have fixed issue mention on #5 and created MR, please review it.

  • Status changed to RTBC 3 months ago
  • šŸ‡®šŸ‡³India riddhi.addweb

    The mentioned phpcs issue is resolved, & I have also checked and it is working as expected. I am attaching the Screenshots & doing RTBC for the same.

Production build 0.71.5 2024