Phpcs Drupal coding standard issue

Created on 10 March 2023, over 1 year ago

FILE: /var/www/html/contribution/web/modules/contrib/streamlike_oembed/streamlike_oembed.module
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 77 ERRORS AND 5 WARNINGS AFFECTING 41 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
9 | 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."
13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
13 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
14 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
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 2 spaces, found 4
19 | WARNING | [x] There must be no blank line following an inline comment
19 | WARNING | [ ] There must be no blank line following an inline comment
19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
21 | ERROR | [x] There should be no white space after an opening "("
21 | ERROR | [x] There should be no white space before a closing ")"
23 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
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 4 spaces, found 8
26 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
26 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
27 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
27 | ERROR | [x] There should be no white space after an opening "("
27 | ERROR | [x] There should be no white space before a closing ")"
29 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
29 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
30 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
32 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
32 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
33 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
35 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
35 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
36 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
36 | ERROR | [x] Expected one space after the comma, 0 found
38 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
38 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
39 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
39 | WARNING | [ ] There must be no blank line following an inline comment
39 | ERROR | [x] No space found before comment text; expected "// "Lorem ipsum dolor sit amet";" but found "//"Lorem ipsum dolor sit amet";"
39 | ERROR | [x] Comments may not appear after statements
41 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
41 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
42 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
43 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
44 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
44 | ERROR | [x] Inline control structures are not allowed
44 | ERROR | [x] There should be no white space after an opening "("
44 | ERROR | [x] There should be no white space before a closing ")"
45 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
45 | ERROR | [x] Inline control structures are not allowed
45 | ERROR | [x] There should be no white space after an opening "("
45 | ERROR | [x] There should be no white space before a closing ")"
47 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
47 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
48 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
48 | ERROR | [x] Concat operator must be surrounded by a single space
48 | ERROR | [x] Concat operator must be surrounded by a single space
48 | ERROR | [x] Concat operator must be surrounded by a single space
48 | ERROR | [x] Concat operator must be surrounded by a single space
48 | ERROR | [x] Expected one space after the comma, 0 found
48 | ERROR | [x] Expected one space after the comma, 0 found
48 | ERROR | [x] Expected one space after the comma, 0 found
48 | ERROR | [x] Concat operator must be surrounded by a single space
49 | ERROR | [x] Whitespace found at end of line
50 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
51 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
51 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
51 | ERROR | [x] There should be no white space after an opening "("
51 | ERROR | [x] There should be no white space before a closing ")"
52 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
53 | ERROR | [x] Array indentation error, expected 18 spaces but found 20
54 | ERROR | [x] Array indentation error, expected 18 spaces but found 20
54 | ERROR | [x] Concat operator must be surrounded by a single space
54 | ERROR | [x] Concat operator must be surrounded by a single space
55 | ERROR | [x] Array indentation error, expected 18 spaces but found 20
55 | ERROR | [x] Concat operator must be surrounded by a single space
56 | ERROR | [x] Whitespace found at end of line
57 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
57 | ERROR | [x] Inline control structures are not allowed
58 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
59 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
63 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
65 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 78 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/streamlike_oembed/src/Service/StreamlikeOembed.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 105 ERRORS AND 4 WARNINGS AFFECTING 55 LINES
-------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Doc comment short description must end with a full stop
12 | ERROR | [ ] Doc comment short description must end with a full stop
12 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
16 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
17 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
18 | ERROR | [x] Expected one space after the comma, 0 found
18 | ERROR | [x] No space found before comment text; expected "// ksm($route_parts);" but found "//ksm($route_parts);"
18 | ERROR | [x] Comments may not appear after statements
19 | ERROR | [x] Inline control structures are not allowed
19 | ERROR | [x] There should be no white space after an opening "("
19 | ERROR | [x] Expected 1 space before "!="; 0 found
19 | ERROR | [x] Expected 1 space after "!="; 0 found
19 | ERROR | [x] Expected 1 space before "!="; 0 found
19 | ERROR | [x] Expected 1 space after "!="; 0 found
19 | ERROR | [x] Expected 1 space before "!="; 0 found
19 | ERROR | [x] Expected 1 space after "!="; 0 found
19 | ERROR | [x] There should be no white space before a closing ")"
21 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
22 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
24 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
25 | ERROR | [x] Whitespace found at end of line
27 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
28 | ERROR | [x] There should be no white space after an opening "("
28 | ERROR | [x] There should be no white space before a closing ")"
30 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
31 | ERROR | [x] Expected one space after the comma, 0 found
31 | ERROR | [x] Whitespace found at end of line
33 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
34 | ERROR | [x] There should be no white space after an opening "("
34 | ERROR | [x] Expected 1 space before "=="; 0 found
34 | ERROR | [x] Expected 1 space after "=="; 0 found
34 | ERROR | [x] There should be no white space before a closing ")"
36 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
37 | ERROR | [x] Whitespace found at end of line
39 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
39 | ERROR | [x] Whitespace found at end of line
40 | ERROR | [x] There should be no white space after an opening "("
40 | ERROR | [x] There should be no white space before a closing ")"
42 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
48 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
50 | ERROR | [x] There should be no white space after an opening "("
50 | ERROR | [x] Expected 1 space before "=="; 0 found
50 | ERROR | [x] Expected 1 space after "=="; 0 found
50 | ERROR | [x] There should be no white space before a closing ")"
50 | ERROR | [x] There should be no white space after an opening "{"
50 | ERROR | [x] Inline comments must start with a capital letter
50 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
50 | ERROR | [x] Comments may not appear after statements
52 | ERROR | [x] Expected newline after closing brace
52 | ERROR | [x] There should be no white space after an opening "{"
52 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
52 | ERROR | [x] Comments may not appear after statements
58 | ERROR | [x] Whitespace found at end of line
68 | ERROR | [x] Doc comment short description must end with a full stop
69 | ERROR | [x] Whitespace found at end of line
70 | ERROR | [ ] Missing parameter comment
70 | ERROR | [ ] Missing parameter type
71 | ERROR | [x] Whitespace found at end of line
72 | ERROR | [x] Expected "string|null" but found "String|null" for function return type
72 | ERROR | [ ] Description for the @return value is missing
74 | ERROR | [x] Incorrect spacing between argument "$route" and equals sign; expected 1 but found 0
74 | ERROR | [x] Incorrect spacing between default value and equals sign for argument "$route"; expected 1 but found 0
74 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
75 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
77 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
78 | ERROR | [x] There should be no white space after an opening "("
78 | ERROR | [x] There should be no white space before a closing ")"
79 | ERROR | [x] Inline control structures are not allowed
79 | ERROR | [x] There should be no white space after an opening "("
79 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
79 | ERROR | [x] Expected 1 space before "!=="; 0 found
79 | ERROR | [x] Expected 1 space after "!=="; 0 found
79 | ERROR | [x] There should be no white space before a closing ")"
81 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
82 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
86 | ERROR | [x] Doc comment short description must end with a full stop
88 | ERROR | [ ] Missing parameter comment
88 | ERROR | [ ] Missing parameter type
89 | ERROR | [x] Whitespace found at end of line
93 | ERROR | [x] Incorrect spacing between argument "$route" and equals sign; expected 1 but found 0
93 | ERROR | [x] Incorrect spacing between default value and equals sign for argument "$route"; expected 1 but found 0
93 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
94 | ERROR | [x] Inline control structures are not allowed
94 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
95 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
107 | ERROR | [ ] Doc comment short description must end with a full stop
107 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
108 | ERROR | [x] Whitespace found at end of line
109 | ERROR | [ ] Missing parameter comment
109 | ERROR | [x] Expected "string" but found "String" for parameter type
110 | ERROR | [x] Whitespace found at end of line
111 | ERROR | [x] Expected "bool" but found "Boolean" for function return type
111 | ERROR | [ ] Description for the @return value is missing
114 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
115 | ERROR | [x] Inline control structures are not allowed
115 | ERROR | [x] There should be no white space after an opening "("
115 | ERROR | [x] There should be no white space before a closing ")"
116 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
117 | ERROR | [x] Inline control structures are not allowed
117 | ERROR | [x] There should be no white space after an opening "("
117 | ERROR | [x] There should be no white space before a closing ")"
118 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
118 | ERROR | [x] Whitespace found at end of line
119 | ERROR | [x] Inline control structures are not allowed
119 | ERROR | [x] There should be no white space after an opening "("
119 | ERROR | [x] Expected 1 space before "!="; 0 found
119 | ERROR | [x] Expected 1 space after "!="; 0 found
119 | ERROR | [x] There should be no white space before a closing ")"
120 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 94 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/streamlike_oembed/src/Form/SettingsForm.php
------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 8 WARNINGS AFFECTING 8 LINES
------------------------------------------------------------------------------------------------
32 | WARNING | [x] There must be no blank line following an inline comment
32 | WARNING | [ ] There must be no blank line following an inline comment
51 | ERROR | [x] Expected one space after the comma, 0 found
52 | ERROR | [x] Whitespace found at end of line
58 | WARNING | [x] A comma should follow the last multiline array item. Found: )
65 | WARNING | [x] A comma should follow the last multiline array item. Found: )
68 | WARNING | [x] There must be no blank line following an inline comment
68 | WARNING | [ ] There must be no blank line following an inline comment
79 | ERROR | [x] Concat operator must be surrounded by a single space
79 | ERROR | [x] Concat operator must be surrounded by a single space
79 | WARNING | [x] A comma should follow the last multiline array item. Found: )
85 | ERROR | [x] Concat operator must be surrounded by a single space
85 | ERROR | [x] Concat operator must be surrounded by a single space
85 | ERROR | [x] Concat operator must be surrounded by a single space
85 | ERROR | [x] Concat operator must be surrounded by a single space
85 | WARNING | [x] A comma should follow the last multiline array item. Found: )
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

๐Ÿ“Œ Task
Status

RTBC

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia himanshu_jhaloya Mandsaur

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024