Problem/Motivation
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\css\tabs.css
-----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\Access\TranslationsPackCreateAccess.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Routing\RouteMatchInterface.
18 | ERROR | [x] Missing function doc comment
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\Access\TranslationsPackEditAccess.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 2 WARNINGS AFFECTING 5 LINES
------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | WARNING | [x] Unused use statement
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Routing\RouteMatchInterface.
10 | WARNING | [x] Unused use statement
19 | ERROR | [x] Missing function doc comment
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\Access\TranslationsPackGroupAccess.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
8 | WARNING | [x] Unused use statement
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\group\Entity\GroupInterface.
12 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
20 | ERROR | [x] Missing function doc comment
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\Controller\GroupRelationshipTrait.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 16 ERRORS AFFECTING 12 LINES
----------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Language\LanguageInterface.
9 | ERROR | [x] Inline comments must start with a capital letter
9 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
10 | ERROR | [x] You must use "/**" style comments for a trait comment
19 | ERROR | [x] Missing function doc comment
19 | ERROR | [x] Visibility must be declared on method "privateTempStore"
20 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
21 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 5
22 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
23 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
73 | ERROR | [x] Inline comments must start with a capital letter
73 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
76 | ERROR | [x] Object operator not indented correctly; expected 12 spaces but found 14
104 | ERROR | [x] Inline comments must start with a capital letter
104 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\Controller\TranslationsPackController.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 28 ERRORS AND 2 WARNINGS AFFECTING 21 LINES
-------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\translations_pack\MockRouteMatch.
18 | ERROR | [x] Missing class doc comment
19 | ERROR | [ ] Missing member variable doc comment
19 | ERROR | [ ] Class property $original_lang should use lowerCamel naming without underscores
20 | ERROR | [ ] Missing member variable doc comment
20 | ERROR | [ ] Class property $source_lang should use lowerCamel naming without underscores
21 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
22 | ERROR | [x] You must use "/**" style comments for a member variable comment
22 | ERROR | [ ] Class property $active_languages should use lowerCamel naming without underscores
23 | ERROR | [ ] Missing member variable doc comment
23 | ERROR | [ ] Class property $has_translation should use lowerCamel naming without underscores
24 | ERROR | [ ] Missing member variable doc comment
24 | ERROR | [ ] Class property $language_selection should use lowerCamel naming without underscores
25 | ERROR | [ ] Missing member variable doc comment
25 | ERROR | [ ] Class property $tab_error should use lowerCamel naming without underscores
26 | ERROR | [ ] Missing member variable doc comment
28 | ERROR | [x] Missing function doc comment
28 | ERROR | [ ] Public method name "TranslationsPackController::build_add" is not in lowerCamel format
187 | ERROR | [x] Inline comments must start with a capital letter
199 | ERROR | [ ] Public method name "TranslationsPackController::build_pack" is not in lowerCamel format
257 | ERROR | [x] list(...) is forbidden, use [...] instead.
286 | WARNING | [ ] Unused variable $ignore.
296 | ERROR | [x] list(...) is forbidden, use [...] instead.
329 | ERROR | [x] You must use "/**" style comments for a member variable comment
329 | ERROR | [ ] Class property $translatable_names should use lowerCamel naming without underscores
332 | ERROR | [x] You must use "/**" style comments for a member variable comment
332 | ERROR | [ ] Class property $control_names should use lowerCamel naming without underscores
530 | ERROR | [x] Expected 1 blank line after function; 0 found
531 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\Controller\TranslationsPackGroupController.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AFFECTING 10 LINES
-------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\EnforcedResponseException.
11 | ERROR | [x] Missing class doc comment
12 | ERROR | [x] Whitespace found at end of line
14 | ERROR | [ ] Missing member variable doc comment
15 | ERROR | [ ] Missing member variable doc comment
16 | ERROR | [ ] Missing member variable doc comment
16 | ERROR | [ ] Class property $response_exception should use lowerCamel naming without underscores
18 | ERROR | [x] Missing function doc comment
18 | ERROR | [ ] Public method name "TranslationsPackGroupController::build_group" is not in lowerCamel format
36 | ERROR | [x] Missing function doc comment
40 | ERROR | [x] Missing function doc comment
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\Controller\TranslationsPackNodeController.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 7 LINES
------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Language\LanguageInterface.
10 | ERROR | [x] Missing class doc comment
12 | ERROR | [x] Missing function doc comment
12 | ERROR | [ ] Public method name "TranslationsPackNodeController::build_add_node" is not in lowerCamel format
16 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 8
20 | ERROR | [x] Expected 1 blank line after function; 0 found
21 | 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: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\Form\LanguageSelectorForm.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 2 WARNINGS AFFECTING 9 LINES
--------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
7 | WARNING | [x] Unused use statement
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\ContentEntityInterface.
24 | ERROR | [x] Multi-line function declarations must define one parameter per line
25 | ERROR | [x] Multi-line function declarations must define one parameter per line
25 | ERROR | [x] Incorrect spacing between default value and equals sign for argument "$active_languages"; expected 1 but found 0
36 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
44 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
66 | ERROR | [x] Missing function doc comment
67 | ERROR | [x] Expected 1 blank line after function; 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: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\Form\TranslationForm.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 25 ERRORS AND 1 WARNING AFFECTING 23 LINES
----------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\ContentEntityForm.
19 | ERROR | [x] Missing function doc comment
31 | ERROR | [x] Missing function doc comment
37 | ERROR | [x] Missing function doc comment
40 | ERROR | [x] Inline comments must start with a capital letter
40 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
44 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
49 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
72 | ERROR | [x] Missing function doc comment
89 | ERROR | [x] Missing function doc comment
89 | ERROR | [x] Visibility must be declared on method "contentTranslationEntityBuild"
98 | ERROR | [x] Missing function doc comment
99 | ERROR | [x] Multi-line function declarations must define one parameter per line
115 | WARNING | [ ] Unused variable $values.
119 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
120 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
121 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
122 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
123 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 10
124 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
125 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
129 | ERROR | [x] Missing function doc comment
131 | ERROR | [x] Expected 1 blank line after function; 0 found
132 | ERROR | [x] The closing brace for the class must have an empty line before it
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 25 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\MockRouteMatch.php
---------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 8 LINES
---------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | ERROR | [x] Missing class doc comment
7 | ERROR | [ ] Missing member variable doc comment
8 | ERROR | [x] Whitespace found at end of line
9 | ERROR | [x] Missing function doc comment
13 | ERROR | [x] Missing function doc comment
15 | ERROR | [x] Expected 1 blank line after function; 0 found
16 | 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: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\PackConfig.php
-----------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 6 LINES
-----------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | ERROR | [x] Missing class doc comment
8 | ERROR | [x] Missing function doc comment
20 | ERROR | [x] Missing function doc comment
40 | ERROR | [x] Expected 1 blank line after function; 0 found
41 | 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: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\Plugin\Derivative\TranslationsPackLocalTasks.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Plugin\Derivative\DeriverBase.
12 | WARNING | [x] Unused use statement
34 | ERROR | [ ] Missing member variable doc comment
36 | ERROR | [x] Missing function doc comment
71 | ERROR | [x] Expected 1 blank line after function; 0 found
72 | 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: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\Routing\GroupPackRouteSubscriber.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
---------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
7 | WARNING | [x] Unused use statement
8 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
11 | ERROR | [x] Missing class doc comment
13 | ERROR | [x] Missing function doc comment
31 | ERROR | [x] Expected 1 blank line after function; 0 found
32 | 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: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\Routing\TranslationsPackRouteSubscriber.php
-------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 3 WARNINGS AFFECTING 8 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | WARNING | [x] Unused use statement
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\content_translation\ContentTranslationManager.
8 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
18 | ERROR | [ ] Missing member variable doc comment
20 | ERROR | [x] Missing function doc comment
42 | ERROR | [x] Expected 1 blank line after function; 0 found
43 | 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: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\TranslationsFormBuilder.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 21 ERRORS AFFECTING 19 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityTypeManagerInterface.
10 | ERROR | [x] Missing class doc comment
14 | ERROR | [ ] Missing member variable doc comment
16 | ERROR | [ ] Missing member variable doc comment
18 | ERROR | [ ] Missing member variable doc comment
20 | ERROR | [ ] Missing member variable doc comment
20 | ERROR | [ ] Class property $translation_form should use lowerCamel naming without underscores
22 | ERROR | [ ] Missing member variable doc comment
24 | ERROR | [x] Missing function doc comment
30 | ERROR | [x] Missing function doc comment
34 | ERROR | [x] Missing function doc comment
38 | ERROR | [x] Missing function doc comment
61 | ERROR | [x] Missing function doc comment
64 | ERROR | [x] No space found before comment text; expected "// ->setStringTranslation($this->stringTranslation)" but found
| | "//->setStringTranslation($this->stringTranslation)"
72 | ERROR | [x] Missing function doc comment
75 | ERROR | [x] Object operator not indented correctly; expected 8 spaces but found 6
76 | ERROR | [x] Expected 1 blank line after function; 2 found
78 | ERROR | [x] Whitespace found at end of line
79 | ERROR | [x] Missing function doc comment
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\TranslationsFormState.php
----------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
7 | ERROR | [x] Missing class doc comment
9 | ERROR | [ ] Missing member variable doc comment
9 | ERROR | [ ] Class property $original_entity should use lowerCamel naming without underscores
10 | ERROR | [ ] Missing member variable doc comment
10 | ERROR | [ ] Class property $saved_entity should use lowerCamel naming without underscores
11 | 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: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\TranslationsPackHandler.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 32 ERRORS AND 3 WARNINGS AFFECTING 30 LINES
---------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
8 | WARNING | [x] Unused use statement
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\translations_pack\PackConfig.
14 | ERROR | [x] Missing class doc comment
15 | ERROR | [x] Whitespace found at end of line
18 | ERROR | [ ] Class constants must be uppercase; expected ADD_CONTROLLER but found ADD_Controller
20 | ERROR | [ ] Missing member variable doc comment
20 | ERROR | [ ] Class property $entity_type should use lowerCamel naming without underscores
22 | ERROR | [x] Missing function doc comment
27 | ERROR | [x] Missing function doc comment
33 | ERROR | [x] Missing function doc comment
44 | ERROR | [x] Missing function doc comment
54 | ERROR | [x] Missing function doc comment
55 | ERROR | [x] Inline comments must start with a capital letter
55 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
55 | ERROR | [x] Whitespace found at end of line
59 | ERROR | [x] Missing function doc comment
64 | ERROR | [x] Missing function doc comment
65 | WARNING | [ ] Unused variable $is_admin.
110 | ERROR | [x] Missing function doc comment
130 | ERROR | [x] Whitespace found at end of line
131 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
140 | ERROR | [x] Whitespace found at end of line
156 | ERROR | [x] Missing function doc comment
157 | WARNING | [ ] Unused variable $routes.
226 | ERROR | [x] Missing function doc comment
227 | ERROR | [x] Language constructs must be followed by a single space; expected 1 space but found "\r\n"
232 | ERROR | [x] Missing function doc comment
236 | ERROR | [x] Missing function doc comment
242 | ERROR | [x] Whitespace found at end of line
246 | ERROR | [x] Missing function doc comment
252 | ERROR | [x] Whitespace found at end of line
254 | ERROR | [x] Expected 1 blank line after function; 0 found
255 | ERROR | [x] The closing brace for the class must have an empty line before it
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 30 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\TranslationsPackHandlerInterface.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 2 WARNINGS AFFECTING 8 LINES
--------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
4 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\translations_pack\PackConfig.
8 | ERROR | [x] Missing interface doc comment
10 | ERROR | [x] Missing function doc comment
12 | ERROR | [x] Missing function doc comment
14 | ERROR | [x] Missing function doc comment
14 | ERROR | [x] Expected 1 blank line after function; 0 found
15 | ERROR | [x] The closing brace for the interface must have an empty line before it
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\src\TranslationsPackNodeHandler.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AND 8 WARNINGS AFFECTING 17 LINES
--------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
4 | WARNING | [x] Unused use statement
5 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\translations_pack\PackConfig.
9 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
12 | WARNING | [x] Unused use statement
14 | ERROR | [x] Missing class doc comment
15 | ERROR | [x] Whitespace found at end of line
16 | ERROR | [ ] Class constants must be uppercase; expected ADD_CONTROLLER but found ADD_Controller
18 | ERROR | [x] Missing function doc comment
22 | ERROR | [x] Missing function doc comment
26 | ERROR | [x] Missing function doc comment
33 | ERROR | [x] Expected 1 blank line after function; 0 found
34 | 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: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\translations_eck_pack\src\Access\TranslationsEckPackCreateAccess.php
-------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\eck\EckEntityTypeInterface.
19 | ERROR | [x] Missing function doc comment
26 | WARNING | [ ] Exceptions should not be translated
41 | ERROR | [x] Missing function doc comment
45 | ERROR | [x] Expected 1 blank line after function; 0 found
46 | 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: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\translations_eck_pack\src\Controller\TranslationsPackEckController.php
---------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AND 1 WARNING AFFECTING 10 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Language\LanguageInterface.
12 | ERROR | [x] Missing class doc comment
14 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
14 | ERROR | [x] Missing function doc comment
14 | ERROR | [ ] Method name "TranslationsPackEckController::build_eck_add" is not in lowerCamel format
14 | ERROR | [x] Visibility must be declared on method "build_eck_add"
17 | WARNING | [ ] Exceptions should not be translated
24 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 8
29 | ERROR | [x] Closing brace indented incorrectly; expected 3 spaces, found 2
31 | ERROR | [x] Missing function doc comment
35 | ERROR | [x] Expected 1 blank line after function; 0 found
36 | 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: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\translations_eck_pack\src\TranslationsPackEckHandler.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 16 ERRORS AND 2 WARNINGS AFFECTING 16 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\translations_pack\TranslationsPackHandler.
8 | WARNING | [x] Unused use statement
10 | ERROR | [x] Missing class doc comment
12 | ERROR | [ ] Class constants must be uppercase; expected ADD_CONTROLLER but found ADD_Controller
12 | ERROR | [x] Whitespace found at end of line
15 | ERROR | [x] Missing function doc comment
24 | ERROR | [x] Whitespace found at end of line
25 | ERROR | [x] Missing function doc comment
26 | WARNING | [ ] Unused variable $is_admin.
40 | ERROR | [x] Missing function doc comment
44 | ERROR | [x] Missing function doc comment
48 | ERROR | [x] Missing function doc comment
52 | ERROR | [x] Missing function doc comment
60 | ERROR | [x] Expected 1 blank line after function; 2 found
63 | ERROR | [x] Missing function doc comment
69 | ERROR | [x] Whitespace found at end of line
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\translations_eck_pack\translations_eck_pack.info.yml
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------
7 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
8 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
---------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\translations_eck_pack\translations_eck_pack.module
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
3 | WARNING | [x] Unused use statement
3 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\eck\Controller\EckEntityListBuilder.
5 | ERROR | [x] Missing function doc comment
6 | WARNING | [ ] Unused variable $name.
--------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\translations_eck_pack\translations_eck_pack.services.yml
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\translations_moderation_pack\src\PackedEntityOperations.php
--------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AFFECTING 9 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
2 | ERROR | [x] There must be one blank line after the namespace declaration
4 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\content_moderation\Entity\ContentModerationState.
8 | ERROR | [x] Missing class doc comment
10 | ERROR | [x] Missing function doc comment
60 | ERROR | [x] Inline comments must start with a capital letter
60 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
71 | ERROR | [x] No space found before comment text; expected "// custom done" but found "//custom done"
71 | ERROR | [x] Inline comments must start with a capital letter
71 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
73 | ERROR | [x] Expected 1 blank line after function; 0 found
74 | ERROR | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\translations_moderation_pack\translations_moderation_pack.info.yml
-----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------
7 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
8 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
-----------------------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\translations_moderation_pack\translations_moderation_pack.module
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | ERROR | [x] Missing function doc comment
6 | ERROR | [x] Expected 0 spaces before opening parenthesis; 2 found
6 | ERROR | [x] Multi-line function declarations must define one parameter per line
6 | ERROR | [x] Whitespace found at end of line
7 | ERROR | [x] Opening brace should be on the same line as the declaration
7 | ERROR | [x] The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line
15 | ERROR | [x] Whitespace found at end of line
18 | ERROR | [x] Whitespace found at end of line
---------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\translations_moderation_pack\translations_moderation_pack.services.yml
---------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------
4 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\translations_pack.info.yml
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
7 | WARNING | All dependencies must be prefixed with the project name, for example "drupal:"
-------------------------------------------------------------------------------------------------------------
FILE: C:\Users\Admin\Desktop\projects\drupal\web\modules\contrib\translations_pack\translations_pack.module
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
14 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\language\Entity\ContentLanguageSettings.
54 | ERROR | [x] Missing function doc comment
106 | ERROR | [x] Missing function doc comment
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------
Time: 6.23 secs; Memory: 14MB
Steps to reproduce
Run this command
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml translations_pack/
Proposed resolution
Run this command
phpcbf --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml translations_pack/