This task is devoted to the LutskGCW23, please, don't work with it until it starts.
Please, fix the following coding standard issues:
FILE: /var/www/html/web/modules/contrib/taxonomy_facets/src/MenuLeaf.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 61 ERRORS AND 5 WARNINGS AFFECTING 47 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
7 | ERROR | [ ] Missing member variable doc comment
8 | ERROR | [ ] Missing member variable doc comment
9 | ERROR | [ ] Missing member variable doc comment
10 | ERROR | [ ] Missing member variable doc comment
11 | ERROR | [ ] Missing member variable doc comment
12 | ERROR | [ ] Missing member variable doc comment
13 | ERROR | [ ] Missing member variable doc comment
14 | ERROR | [ ] Missing member variable doc comment
16 | ERROR | [x] Missing function doc comment
16 | ERROR | [x] Short array syntax must be used to define arrays
23 | ERROR | [x] Expected 1 space after IF keyword; 0 found
23 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
34 | ERROR | [ ] Missing parameter name
37 | ERROR | [ ] @return doc comment specified, but function has no return statement
41 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
41 | ERROR | [x] 4 spaces found before inline comment; expected "// $query = \Drupal::database()->select('url_alias', 'u')" but found "// $query = \Drupal::database()->select('url_alias', 'u')"
42 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
42 | ERROR | [ ] Comment indentation error, expected only 4 spaces
43 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
44 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
45 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
46 | ERROR | [ ] Comment indentation error, expected only 4 spaces
47 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
48 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
49 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
50 | WARNING | [ ] Line exceeds 80 characters; contains 148 characters
50 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
50 | ERROR | [ ] Comment indentation error, expected only 4 spaces
51 | WARNING | [x] There must be no blank line following an inline comment
51 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
53 | ERROR | [x] Expected 1 blank line after function; 2 found
56 | ERROR | [x] Missing function doc comment
62 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
63 | ERROR | [x] Expected 1 space after IF keyword; 0 found
71 | ERROR | [x] Inline comments must start with a capital letter
72 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
74 | ERROR | [x] Calling class constructors must always include parentheses
80 | ERROR | [x] Inline comments must start with a capital letter
82 | ERROR | [x] Calling class constructors must always include parentheses
91 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
93 | ERROR | [x] Calling class constructors must always include parentheses
98 | WARNING | [x] '@TODO replace 'listings' hard coded string with user configurable variable.' should match the format '@todo Fix problem X here.'
103 | WARNING | [x] There must be no blank line following an inline comment
105 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
106 | ERROR | [x] Expected 1 space after IF keyword; 0 found
106 | ERROR | [x] There should be no white space after an opening "("
106 | ERROR | [x] Expected 1 space after "=="; 2 found
106 | ERROR | [x] There should be no white space before a closing ")"
106 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
106 | ERROR | [x] Newline required after opening brace
106 | ERROR | [x] There should be no white space after an opening "{"
106 | ERROR | [x] Space found before semicolon; expected "0;" but found "0 ;"
106 | ERROR | [x] There should be no white space before a closing "}"
106 | ERROR | [x] Closing brace must be on a line by itself
113 | ERROR | [x] Expected 1 blank line after function; 2 found
116 | ERROR | [x] Visibility must be declared on method "getLanguagePrefix"
116 | ERROR | [x] Missing function doc comment
117 | ERROR | [x] Expected 1 space after IF keyword; 0 found
119 | ERROR | [x] Expected 1 space after IF keyword; 0 found
119 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
123 | WARNING | [x] '@TODO add case when using different domains for language negotiation.' should match the format '@todo Fix problem X here.'
125 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
126 | ERROR | [x] Expected 1 blank line after function; 0 found
127 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 52 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/taxonomy_facets/src/SelectedFilters.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 68 ERRORS AND 3 WARNINGS AFFECTING 52 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
15 | ERROR | [x] There must be one blank line after the namespace declaration
18 | ERROR | [x] Missing class doc comment
20 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
21 | ERROR | [x] You must use "/**" style comments for a member variable comment
21 | ERROR | [x] Short array syntax must be used to define arrays
23 | ERROR | [x] Visibility must be declared on method "__construct"
23 | ERROR | [x] Missing function doc comment
23 | ERROR | [x] Short array syntax must be used to define arrays
24 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
27 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
31 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
32 | WARNING | [x] There must be no blank line following an inline comment
34 | ERROR | [x] Expected 1 space after IF keyword; 0 found
35 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
35 | ERROR | [x] Expected 1 space before opening brace; found 0
35 | ERROR | [x] Expected 1 space before opening brace; found 0
36 | ERROR | [x] Expected 1 space after IF keyword; 0 found
36 | ERROR | [x] There should be no white space after an opening "("
36 | ERROR | [x] There should be no white space before a closing ")"
40 | ERROR | [x] There should be no white space after an opening "("
40 | ERROR | [x] There should be no white space before a closing ")"
43 | ERROR | [x] Expected 1 space after ELSE keyword; 0 found
48 | ERROR | [x] Expected 1 blank line after function; 2 found
55 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
57 | ERROR | [x] Expected "int" but found "integer" for function return type
57 | ERROR | [ ] @return doc comment specified, but function has no return statement
60 | ERROR | [x] Visibility must be declared on method "getTermIdFromUrlAlias"
62 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
62 | ERROR | [x] 4 spaces found before inline comment; expected "// $select = \Drupal::database()->select('url_alias', 'u');" but found "// $select = \Drupal::database()->select('url_alias', 'u');"
63 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
64 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
65 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
66 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
67 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
68 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
69 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
70 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
71 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
72 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
72 | ERROR | [ ] Comment indentation error, expected only 4 spaces
73 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
74 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
75 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
76 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
76 | ERROR | [ ] Comment indentation error, expected only 4 spaces
77 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0
80 | ERROR | [x] Missing function doc comment
84 | ERROR | [x] Missing function doc comment
85 | ERROR | [x] No space found before comment text; expected "// return $this->term_names;" but found "//return $this->term_names;"
85 | ERROR | [x] Inline comments must start with a capital letter
85 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
88 | ERROR | [x] Missing function doc comment
89 | ERROR | [x] Short array syntax must be used to define arrays
90 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
90 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
96 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
98 | ERROR | [x] You must use "/**" style comments for a function comment
100 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 7
100 | ERROR | [x] Expected 1 space after IF keyword; 0 found
100 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
101 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 9
102 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 7
104 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
107 | ERROR | [x] Missing function doc comment
109 | ERROR | [x] Expected 1 space after IF keyword; 0 found
109 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
113 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
114 | ERROR | [x] Expected 1 blank line after function; 0 found
115 | ERROR | [x] Expected 1 newline at end of file; 3 found
115 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 66 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/taxonomy_facets/src/Form/TaxoAdminForm.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 37 ERRORS AFFECTING 31 LINES
-----------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
2 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment
12 | ERROR | [x] Missing class doc comment
16 | ERROR | [x] Expected 1 blank line before function; 0 found
36 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
37 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
38 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
39 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
40 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
59 | ERROR | [x] Short array syntax must be used to define arrays
64 | ERROR | [x] Concat operator must be surrounded by a single space
65 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
67 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
69 | ERROR | [x] Array indentation error, expected 6 spaces but found 7
69 | ERROR | [x] Concat operator must be surrounded by a single space
72 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
73 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
73 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
83 | ERROR | [x] Short array syntax must be used to define arrays
86 | ERROR | [x] Concat operator must be surrounded by a single space
87 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
88 | ERROR | [x] Concat operator must be surrounded by a single space
89 | ERROR | [x] Array indentation error, expected 6 spaces but found 7
90 | ERROR | [x] Concat operator must be surrounded by a single space
90 | ERROR | [x] Expected 0 spaces between ""</br>"" and comma; 1 found
93 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
93 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
108 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
114 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
115 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
116 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
116 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
120 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
122 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
122 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
127 | ERROR | [x] Expected 1 blank line after function; 0 found
128 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 37 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/taxonomy_facets/src/MenuTree.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 58 ERRORS AND 3 WARNINGS AFFECTING 43 LINES
-------------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
7 | ERROR | [ ] Missing member variable doc comment
7 | ERROR | [x] Short array syntax must be used to define arrays
8 | ERROR | [ ] Missing member variable doc comment
9 | ERROR | [ ] Missing member variable doc comment
10 | ERROR | [ ] Missing member variable doc comment
11 | ERROR | [ ] Missing member variable doc comment
11 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
12 | ERROR | [ ] Class property $menu_class should use lowerCamel naming without underscores
12 | ERROR | [ ] Missing member variable doc comment
15 | ERROR | [ ] More than 2 empty lines are not allowed
16 | ERROR | [x] Missing function doc comment
16 | ERROR | [x] Expected 1 blank line before function; 3 found
21 | ERROR | [x] Expected 1 space after IF keyword; 0 found
21 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
29 | ERROR | [x] Missing function doc comment
29 | ERROR | [x] Expected 1 space before opening brace; found 0
33 | ERROR | [x] Missing function doc comment
45 | WARNING | [ ] Line exceeds 80 characters; contains 99 characters
46 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
54 | ERROR | [x] Expected 1 space after IF keyword; 0 found
54 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
54 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
66 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
71 | ERROR | [x] Expected 1 space after "="; 2 found
77 | ERROR | [x] Missing function doc comment
83 | ERROR | [x] Expected 1 space after IF keyword; 0 found
84 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
87 | ERROR | [x] Expected 1 space after ELSE keyword; 0 found
93 | ERROR | [x] Expected 1 space after IF keyword; 0 found
100 | ERROR | [x] Missing function doc comment
100 | ERROR | [x] Expected 1 space before opening brace; found 0
106 | ERROR | [x] Inline comments must start with a capital letter
106 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
107 | ERROR | [x] Expected one space after the comma, 0 found
114 | ERROR | [x] Expected 1 blank line after function; 2 found
119 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
120 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
120 | ERROR | [ ] Missing parameter comment
120 | ERROR | [ ] Missing parameter type
121 | ERROR | [ ] Missing parameter comment
121 | ERROR | [ ] Missing parameter type
122 | ERROR | [ ] Missing parameter comment
122 | ERROR | [ ] Missing parameter type
123 | ERROR | [ ] Missing parameter comment
123 | ERROR | [ ] Missing parameter type
124 | ERROR | [x] Separate the @param and @return sections by a blank line.
125 | ERROR | [x] Return comment indentation must be 3 spaces, found 2 spaces
132 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
138 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
140 | ERROR | [x] Inline comments must start with a capital letter
140 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
143 | ERROR | [x] Inline comments must start with a capital letter
143 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
153 | WARNING | [x] There must be no blank line following an inline comment
164 | ERROR | [x] Short array syntax must be used to define arrays
172 | ERROR | [x] Calling class constructors must always include parentheses
188 | ERROR | [x] Expected 1 space before opening brace; found 0
200 | ERROR | [x] Missing function doc comment
207 | ERROR | [x] Expected 1 newline at end of file; 0 found
207 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 42 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/taxonomy_facets/src/PathProcessor/TaxonomyFacetsPathProcessor.php
---------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
5 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
8 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] Missing function doc comment
17 | ERROR | [x] Expected 1 blank line after function; 0 found
18 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/taxonomy_facets/src/Controller/TaxonomyFacetsController.php
---------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
---------------------------------------------------------------------------------------------------
25 | ERROR | [x] Short array syntax must be used to define arrays
28 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
37 | ERROR | [x] Expected 1 space after IF keyword; 0 found
42 | ERROR | [x] Short array syntax must be used to define arrays
50 | ERROR | [x] Short array syntax must be used to define arrays
63 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
64 | ERROR | [x] Expected 1 blank line after function; 0 found
65 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/taxonomy_facets/src/Plugin/Block/TaxonomyFacetsBlock1.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 1 WARNING AFFECTING 8 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
6 | WARNING | [x] Unused use statement
30 | ERROR | [x] Expected 1 space before "=>"; 0 found
37 | ERROR | [x] 2 spaces found before inline comment; expected "// protected function blockAccess(AccountInterface $account) {" but found "// protected function blockAccess(AccountInterface $account) {"
37 | ERROR | [x] Inline comments must start with a capital letter
39 | ERROR | [x] No space found before comment text; expected "// }" but found "//}"
39 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
45 | ERROR | [x] Expected 1 blank line before function; 2 found
55 | ERROR | [x] Use null coalesce operator instead of ternary operator.
68 | ERROR | [x] Expected 1 newline at end of file; 0 found
68 | 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: /var/www/html/web/modules/contrib/taxonomy_facets/src/Plugin/Block/TaxonomyFacetsBlock3.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 1 WARNING AFFECTING 8 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
6 | WARNING | [x] Unused use statement
30 | ERROR | [x] Expected 1 space before "=>"; 0 found
37 | ERROR | [x] 2 spaces found before inline comment; expected "// protected function blockAccess(AccountInterface $account) {" but found "// protected function blockAccess(AccountInterface $account) {"
37 | ERROR | [x] Inline comments must start with a capital letter
39 | ERROR | [x] No space found before comment text; expected "// }" but found "//}"
39 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
45 | ERROR | [x] Expected 1 blank line before function; 2 found
55 | ERROR | [x] Use null coalesce operator instead of ternary operator.
68 | ERROR | [x] Expected 1 newline at end of file; 0 found
68 | 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: /var/www/html/web/modules/contrib/taxonomy_facets/src/Plugin/Block/TaxonomyFacetsBlock5.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 1 WARNING AFFECTING 8 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
6 | WARNING | [x] Unused use statement
30 | ERROR | [x] Expected 1 space before "=>"; 0 found
37 | ERROR | [x] 2 spaces found before inline comment; expected "// protected function blockAccess(AccountInterface $account) {" but found "// protected function blockAccess(AccountInterface $account) {"
37 | ERROR | [x] Inline comments must start with a capital letter
39 | ERROR | [x] No space found before comment text; expected "// }" but found "//}"
39 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
45 | ERROR | [x] Expected 1 blank line before function; 2 found
55 | ERROR | [x] Use null coalesce operator instead of ternary operator.
68 | ERROR | [x] Expected 1 newline at end of file; 0 found
68 | 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: /var/www/html/web/modules/contrib/taxonomy_facets/src/Plugin/Block/TaxonomyFacetsBlock2.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 1 WARNING AFFECTING 8 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
6 | WARNING | [x] Unused use statement
30 | ERROR | [x] Expected 1 space before "=>"; 0 found
37 | ERROR | [x] 2 spaces found before inline comment; expected "// protected function blockAccess(AccountInterface $account) {" but found "// protected function blockAccess(AccountInterface $account) {"
37 | ERROR | [x] Inline comments must start with a capital letter
39 | ERROR | [x] No space found before comment text; expected "// }" but found "//}"
39 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
45 | ERROR | [x] Expected 1 blank line before function; 2 found
55 | ERROR | [x] Use null coalesce operator instead of ternary operator.
68 | ERROR | [x] Expected 1 newline at end of file; 0 found
68 | 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: /var/www/html/web/modules/contrib/taxonomy_facets/src/Plugin/Block/TaxonomyFacetsBlock4.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 1 WARNING AFFECTING 8 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
6 | WARNING | [x] Unused use statement
30 | ERROR | [x] Expected 1 space before "=>"; 0 found
37 | ERROR | [x] 2 spaces found before inline comment; expected "// protected function blockAccess(AccountInterface $account) {" but found "// protected function blockAccess(AccountInterface $account) {"
37 | ERROR | [x] Inline comments must start with a capital letter
39 | ERROR | [x] No space found before comment text; expected "// }" but found "//}"
39 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
45 | ERROR | [x] Expected 1 blank line before function; 2 found
55 | ERROR | [x] Use null coalesce operator instead of ternary operator.
68 | ERROR | [x] Expected 1 newline at end of file; 0 found
68 | 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: /var/www/html/web/modules/contrib/taxonomy_facets/src/GetNodes.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 24 ERRORS AFFECTING 18 LINES
----------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
7 | ERROR | [ ] Missing member variable doc comment
8 | ERROR | [ ] Missing member variable doc comment
8 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
9 | ERROR | [ ] Missing member variable doc comment
10 | ERROR | [ ] Missing member variable doc comment
11 | ERROR | [ ] Class property $number_of_nodes should use lowerCamel naming without underscores
11 | ERROR | [ ] Missing member variable doc comment
13 | ERROR | [x] Missing function doc comment
22 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
22 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
23 | ERROR | [x] Expected 1 space after IF keyword; 0 found
23 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
36 | ERROR | [x] Missing function doc comment
39 | ERROR | [x] Short array syntax must be used to define arrays
47 | ERROR | [x] Expected 1 space after IF keyword; 0 found
47 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
56 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
59 | ERROR | [x] Short array syntax must be used to define arrays
64 | ERROR | [x] Expected 1 blank line after function; 2 found
67 | ERROR | [x] Missing function doc comment
67 | ERROR | [x] Expected 1 space before opening brace; found 0
69 | ERROR | [x] Expected 1 blank line after function; 0 found
70 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 18 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------
FILE: /var/www/html/web/modules/contrib/taxonomy_facets/src/NodeTerms.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 40 ERRORS AND 1 WARNING AFFECTING 30 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Missing class doc comment
5 | ERROR | [x] Expected 1 space before opening brace; found 0
7 | ERROR | [x] You must use "/**" style comments for a member variable comment
7 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
9 | ERROR | [ ] Class property $old_node should use lowerCamel naming without underscores
9 | ERROR | [x] You must use "/**" style comments for a member variable comment
9 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
11 | ERROR | [x] Missing function doc comment
15 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
16 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
16 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
17 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
18 | ERROR | [x] Expected 1 space after IF keyword; 0 found
20 | ERROR | [x] Expected 1 space after IF keyword; 0 found
20 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
35 | ERROR | [ ] Missing parameter type
36 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 2 spaces
37 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 2 spaces
39 | ERROR | [x] Visibility must be declared on method "findFieldToCascadeTerms"
41 | ERROR | [x] No space found before comment text; expected "// kint($this->node->getFieldDefinitions());" but found "//kint($this->node->getFieldDefinitions());"
42 | ERROR | [x] No space found before comment text; expected "// exit();" but found "//exit();"
43 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
48 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
55 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
55 | ERROR | [x] No space found before comment text; expected "// drupal_set_message('warning', t("Taxonomy reference field:) " . ));" but found "//drupal_set_message('warning', t("Taxonomy reference field:) " . ));"
55 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
64 | ERROR | [x] Expected 1 space after "=>"; 2 found
67 | ERROR | [x] Expected one space after the comma, 0 found
76 | ERROR | [x] Visibility must be declared on method "cascadeTerms"
76 | ERROR | [x] Missing function doc comment
86 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
91 | ERROR | [x] Expected 1 space after IF keyword; 0 found
91 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
95 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
101 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
102 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
103 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 7
109 | ERROR | [x] Visibility must be declared on method "getTermParents"
109 | ERROR | [x] Missing function doc comment
116 | ERROR | [x] Expected 1 blank line after function; 0 found
117 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 38 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------