Problem/Motivation
FILE: entity_list\entity_list.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: entity_list\entity_list.install
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
8 | WARNING | [x] Unused use statement
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: entity_list\README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
24 | WARNING | Line exceeds 80 characters; contains 89 characters
----------------------------------------------------------------------
FILE: entity_list\README_entity_list_filter.md
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
-----------------------------------------------------------------------------------------------------------------
6 | WARNING | Line exceeds 80 characters; contains 82 characters
8 | WARNING | Line exceeds 80 characters; contains 86 characters
28 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
34 | WARNING | Possible useless method overriding detected
41 | WARNING | Possible useless method overriding detected
48 | WARNING | Possible useless method overriding detected
-----------------------------------------------------------------------------------------------------------------
FILE: entity_list\README_entity_list_query.md
---------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------
36 | WARNING | Possible useless method overriding detected
---------------------------------------------------------------------------
FILE: entity_list\README_first_entity_list.md
---------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------
5 | WARNING | Line exceeds 80 characters; contains 143 characters
---------------------------------------------------------------------------
FILE:entity_list\src\Access\EntityListAccessControlHandler.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
14 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Controller\EntityListFilterController.php
----------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
----------------------------------------------------------------------------------------------------------------------
10 | WARNING | [x] Unused use statement
20 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
120 | ERROR | [x] Expected newline after closing brace
120 | ERROR | [x] Use "elseif" in place of "else if"
231 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
262 | ERROR | [x] Expected 1 blank line after function; 0 found
263 | 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: entity_list\src\Element\EntityListTable.php
-------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------
96 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------
FILE: entity_list\src\Element\RegionTable.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
35 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Entity\EntityList.php
-----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
79 | ERROR | [x] Expected "string|int" but found "string|integer" for @var tag in member variable comment
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Entity\EntityListInterface.php
----------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
----------------------------------------------------------------------------------------
60 | ERROR | [x] Expected "int" but found "integer" for function return type
90 | ERROR | [x] Doc comment short description must start with a capital letter
92 | ERROR | [ ] Missing parameter type
98 | ERROR | [x] Expected 1 blank line after function; 0 found
99 | ERROR | [x] The closing brace for the interface must have an empty line before it
----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------
FILE: entity_list\src\EntityListViewBuilder.php
---------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------------------------
22 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
25 | ERROR | [ ] Missing member variable doc comment
27 | ERROR | [ ] Missing member variable doc comment
29 | ERROR | [ ] Missing member variable doc comment
31 | ERROR | [ ] Missing member variable doc comment
83 | WARNING | [x] 'TODO: Implement viewMultiple() method.' should match the format '@todo Fix problem X here.'
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Form\EntityListFilterForm.php
----------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 7 WARNINGS AFFECTING 12 LINES
----------------------------------------------------------------------------------------------------------------------
8 | WARNING | [x] Unused use statement
14 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
18 | ERROR | [ ] Doc comment short description must end with a full stop
30 | ERROR | [x] Additional blank lines found at end of doc comment
53 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
55 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
62 | WARNING | [ ] Only string literals should be passed to t() where possible
67 | WARNING | [ ] Only string literals should be passed to t() where possible
73 | ERROR | [x] Data types in @var tags need to be fully namespaced
73 | ERROR | [x] Data types in @var tags need to be fully namespaced
90 | WARNING | [ ] Only string literals should be passed to t() where possible
94 | WARNING | [x] A comma should follow the last multiline array item. Found: ''
106 | WARNING | [ ] Possible useless method overriding detected
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Form\EntityListFilterFormBase.php
---------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
---------------------------------------------------------------------------------------------------------------------
11 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
18 | ERROR | [x] Expected 1 blank line before function; 2 found
25 | ERROR | [x] Expected 1 space before opening brace; found 0
74 | ERROR | [x] Expected 1 blank line after function; 0 found
75 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Form\EntityListFilterParametersForm.php
----------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 1 WARNING AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------------------
16 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
66 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
66 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
66 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
66 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
66 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
72 | ERROR | [x] Expected newline after closing brace
72 | ERROR | [x] Use "elseif" in place of "else if"
120 | ERROR | [x] Data types in @var tags need to be fully namespaced
138 | ERROR | [x] Use "elseif" in place of "else if"
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Form\EntityListForm.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 2 WARNINGS AFFECTING 8 LINES
-----------------------------------------------------------------------------------------------------------------------------
17 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Url.
22 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
27 | WARNING | [x] A comma should follow the last multiline array item. Found: 'sortable_filters_entity_list_extra_display'
30 | ERROR | [ ] Missing member variable doc comment
32 | ERROR | [ ] Missing member variable doc comment
34 | ERROR | [ ] Missing member variable doc comment
36 | ERROR | [ ] Missing member variable doc comment
38 | ERROR | [ ] Missing member variable doc comment
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Form\EntityListSortableFilterForm.php
---------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 4 WARNINGS AFFECTING 10 LINES
---------------------------------------------------------------------------------------------------------------------
8 | WARNING | [x] Unused use statement
14 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
18 | ERROR | [ ] Doc comment short description must end with a full stop
30 | ERROR | [x] Additional blank lines found at end of doc comment
53 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
55 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
60 | ERROR | [x] Data types in @var tags need to be fully namespaced
60 | ERROR | [x] Data types in @var tags need to be fully namespaced
71 | ERROR | [x] Expected newline after closing brace
82 | WARNING | [x] A comma should follow the last multiline array item. Found: ''
95 | WARNING | [ ] Possible useless method overriding detected
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\Block\EntityListBlock.php
------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------
23 | ERROR | Missing member variable doc comment
------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\Derivative\EntityListBlock.php
-----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------
14 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
17 | ERROR | Missing member variable doc comment
-----------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListDisplay\DefaultEntityListDisplay.php
---------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------
13 | WARNING | [x] Unused use statement
578 | ERROR | [x] Use "elseif" in place of "else if"
580 | WARNING | [ ] Only string literals should be passed to t() where possible
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListDisplay\FilterEntityListDisplay.php
----------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------
65 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
65 | ERROR | [x] The closing parenthesis of a multi-line function declaration must be on a new line
188 | ERROR | [x] Use "elseif" in place of "else if"
190 | WARNING | [ ] Only string literals should be passed to t() where possible
310 | ERROR | [x] Expected 1 blank line after function; 0 found
316 | ERROR | [x] There must be no blank lines after the function comment
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListDisplayManager.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Cache\CacheBackendInterface.
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListExtraDisplay\FiltersEntityListExtraDisplay.php
----------------------------------------------------------------------------------------------------------------------
FOUND 29 ERRORS AND 4 WARNINGS AFFECTING 28 LINES
----------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
24 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
50 | WARNING | [ ] Only string literals should be passed to t() where possible
143 | ERROR | [x] Data types in @param tags need to be fully namespaced
149 | ERROR | [x] Data types in @throws tags need to be fully namespaced
192 | ERROR | [ ] Missing parameter type
194 | ERROR | [ ] Missing parameter type
217 | ERROR | [x] Data types in @param tags need to be fully namespaced
223 | ERROR | [x] Data types in @throws tags need to be fully namespaced
233 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
234 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
235 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
236 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
236 | ERROR | [x] Use "elseif" in place of "else if"
237 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
238 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 14
239 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 16
247 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 14
248 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
249 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
250 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
250 | ERROR | [x] Use "elseif" in place of "else if"
251 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 12
258 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
296 | ERROR | [x] Data types in @throws tags need to be fully namespaced
298 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
298 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
303 | ERROR | [x] Concat operator must be surrounded by a single space
303 | ERROR | [x] Expected 1 space before ":"; 0 found
348 | WARNING | [x] A comma should follow the last multiline array item. Found: 'button--danger'
360 | ERROR | [ ] Missing parameter comment
360 | ERROR | [x] Data types in @param tags need to be fully namespaced
362 | ERROR | [ ] Description for the @return value is missing
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 27 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListExtraDisplay\SortableFiltersEntityListExtraDisplay.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 3 WARNINGS AFFECTING 12 LINES
---------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
23 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
41 | ERROR | [x] Expected 1 space after "=>"; 2 found
41 | ERROR | [x] Expected 1 space after "=>"; 2 found
42 | ERROR | [x] Equals sign not aligned correctly; expected 1 space but found 2 spaces
119 | ERROR | [x] Data types in @param tags need to be fully namespaced
125 | ERROR | [x] Data types in @throws tags need to be fully namespaced
171 | ERROR | [x] Data types in @param tags need to be fully namespaced
177 | ERROR | [x] Data types in @throws tags need to be fully namespaced
199 | ERROR | [x] Use "elseif" in place of "else if"
207 | ERROR | [ ] Parameter $field_element is not described in comment
219 | ERROR | [x] Data types in @throws tags need to be fully namespaced
263 | WARNING | [x] A comma should follow the last multiline array item. Found: 'button--danger'
---------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListExtraDisplayBase.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Plugin\PluginBase.
124 | ERROR | [ ] Description for the @return value is missing
138 | ERROR | [ ] Description for the @return value is missing
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListExtraDisplayInterface.php
----------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------
22 | ERROR | [x] Expected 1 blank line after function; 0 found
23 | ERROR | [x] The closing brace for the interface must have an empty line before it
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListExtraDisplayManager.php
--------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------
30 | ERROR | [x] Expected 1 blank line after function; 0 found
31 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------
FILE:entity_list\src\Plugin\EntityListFilter\CustomListEntityListFilter.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AND 4 WARNINGS AFFECTING 14 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
27 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
31 | ERROR | [x] Doc comment short description must end with a full stop
37 | ERROR | [ ] Parameter $module_handler is not described in comment
40 | ERROR | [ ] Missing parameter type
42 | ERROR | [ ] Missing parameter type
44 | ERROR | [ ] Missing parameter type
66 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
66 | ERROR | [x] The closing parenthesis of a multi-line function declaration must be on a new line
66 | ERROR | [x] There must be a single space between the closing parenthesis/return type and the opening brace of a multi-line function declaration; found 0 spaces
110 | WARNING | [ ] Only string literals should be passed to t() where possible
121 | WARNING | [ ] Only string literals should be passed to t() where possible
132 | WARNING | [ ] Only string literals should be passed to t() where possible
150 | ERROR | [x] Expected 1 blank line after function; 3 found
153 | ERROR | [ ] More than 2 empty lines are not allowed
182 | ERROR | [x] Doc comment short description must end with a full stop
186 | ERROR | [x] Separate the @param and @return sections by a blank line.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListFilter\DateEntityListFilter.php
----------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 7 WARNINGS AFFECTING 13 LINES
----------------------------------------------------------------------------------------------------------------------
31 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
59 | ERROR | [ ] Parameter $configuration is not described in comment
59 | ERROR | [ ] Parameter $plugin_id is not described in comment
59 | ERROR | [ ] Parameter $plugin_definition is not described in comment
107 | WARNING | [ ] Only string literals should be passed to t() where possible
113 | WARNING | [ ] Only string literals should be passed to t() where possible
121 | WARNING | [ ] Only string literals should be passed to t() where possible
310 | ERROR | [ ] Parameter $field_name is not described in comment
310 | ERROR | [ ] Parameter $field_type_name is not described in comment
310 | ERROR | [ ] Parameter $id is not described in comment
338 | WARNING | [x] A comma should follow the last multiline array item. Found: $field_name
406 | WARNING | [x] A comma should follow the last multiline array item. Found: 'fields'
453 | WARNING | [x] A comma should follow the last multiline array item. Found: 'range'
493 | ERROR | [x] Use "elseif" in place of "else if"
521 | ERROR | [x] Use "elseif" in place of "else if"
547 | ERROR | [x] Expected 1 blank line after function; 0 found
548 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListFilter\SearchEntityListFilter.php
----------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 3 WARNINGS AFFECTING 8 LINES
----------------------------------------------------------------------------------------------------------------------
27 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
53 | ERROR | [ ] Parameter $configuration is not described in comment
53 | ERROR | [ ] Parameter $plugin_id is not described in comment
53 | ERROR | [ ] Parameter $plugin_definition is not described in comment
91 | WARNING | [ ] Only string literals should be passed to t() where possible
93 | WARNING | [ ] Only string literals should be passed to t() where possible
119 | ERROR | [x] Expected 1 space after "="; 2 found
174 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
200 | ERROR | [x] Expected 1 blank line after function; 0 found
201 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListFilter\TaxonomiesEntityListFilter.php
----------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 3 WARNINGS AFFECTING 8 LINES
----------------------------------------------------------------------------------------------------------------------
31 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
72 | ERROR | [ ] Missing parameter type
74 | ERROR | [ ] Missing parameter type
76 | ERROR | [ ] Missing parameter type
97 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
97 | ERROR | [x] The closing parenthesis of a multi-line function declaration must be on a new line
135 | WARNING | [ ] Only string literals should be passed to t() where possible
146 | WARNING | [ ] Only string literals should be passed to t() where possible
310 | ERROR | [x] Use "elseif" in place of "else if"
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListFilterBase.php
-----------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
-----------------------------------------------------------------------------------
16 | ERROR | Missing short description in doc comment
84 | ERROR | Description for the @return value is missing
89 | WARNING | Only string literals should be passed to t() where possible
-----------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListFilterInterface.php
----------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
----------------------------------------------------------------------------------------
19 | ERROR | [x] Data types in @param tags need to be fully namespaced
32 | ERROR | [x] Data types in @param tags need to be fully namespaced
44 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 2 spaces
47 | ERROR | [x] Return comment indentation must be 3 spaces, found 2 spaces
49 | ERROR | [x] Expected 1 blank line after function; 0 found
50 | ERROR | [x] The closing brace for the interface must have an empty line before it
----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListFilterManager.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Cache\CacheBackendInterface.
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListQuery\ContextualEntityListQuery.php
----------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------------------
58 | ERROR | [ ] Missing member variable doc comment
60 | ERROR | [ ] Missing member variable doc comment
73 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
73 | ERROR | [x] The closing parenthesis of a multi-line function declaration must be on a new line
395 | WARNING | [x] 'TODO: check access on the target entities.' should match the format '@todo Fix problem X here.'
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListQuery\EntityListFilterQuery.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-----------------------------------------------------------------------------------------------------------------------------
35 | ERROR | [ ] Doc comment short description must end with a full stop
60 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
134 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
167 | ERROR | [x] Use "elseif" in place of "else if"
184 | ERROR | [x] Use "elseif" in place of "else if"
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListQueryManager.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Cache\CacheBackendInterface.
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListSortableFilter\GlobalEntityListSortableFilter.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 5 WARNINGS AFFECTING 12 LINES
--------------------------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\Query\Sql\Query.
22 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
32 | ERROR | [ ] Parameter $configuration is not described in comment
32 | ERROR | [ ] Parameter $plugin_id is not described in comment
32 | ERROR | [ ] Parameter $plugin_definition is not described in comment
62 | WARNING | [ ] Only string literals should be passed to t() where possible
65 | WARNING | [ ] Only string literals should be passed to t() where possible
66 | WARNING | [ ] Only string literals should be passed to t() where possible
137 | ERROR | [x] Data types in @param tags need to be fully namespaced
139 | ERROR | [ ] Missing parameter type
141 | ERROR | [ ] Missing parameter type
146 | ERROR | [x] Expected 1 blank line after function; 0 found
147 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListSortableFilterBase.php
-------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------
16 | ERROR | Missing short description in doc comment
-------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListSortableFilterInterface.php
------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------
19 | ERROR | [x] Data types in @param tags need to be fully namespaced
32 | ERROR | [x] Data types in @param tags need to be fully namespaced
44 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 2 spaces
47 | ERROR | [x] Return comment indentation must be 3 spaces, found 2 spaces
49 | ERROR | [x] Expected 1 blank line after function; 0 found
50 | ERROR | [x] The closing brace for the interface must have an empty line before it
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------
FILE: entity_list\src\Plugin\EntityListSortableFilterManager.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Cache\CacheBackendInterface.
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------
FILE: entity_list\src\Service\ContentFilterService.php
----------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 6 LINES
----------------------------------------------------------------------------------------------------------------------
10 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
33 | ERROR | [x] Data types in @param tags need to be fully namespaced
82 | ERROR | [x] Data types in @param tags need to be fully namespaced
136 | ERROR | [x] Data types in @param tags need to be fully namespaced
189 | ERROR | [x] Data types in @param tags need to be fully namespaced
202 | ERROR | [x] Data types in @param tags need to be fully namespaced
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------
Steps to reproduce
Run phpcs command to get the drupal coding standard issues.
Proposed resolution
Many of the issues can be fixed by running the phpcbf command. For the remaining ones, we will need to manually address and then commit these changes before pushing them.