Cammand and arguments use is:-
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml web/modules/custom/locale_extend
Problem/Motivation
FILE: ...www/html/contribution/drupal10/web/modules/contrib/locale_extend/README.md
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------
59 | WARNING | Line exceeds 80 characters; contains 90 characters
63 | WARNING | Line exceeds 80 characters; contains 83 characters
--------------------------------------------------------------------------------
FILE: ...odules/contrib/locale_extend/tests/src/Kernel/ExtendedLocaleStringTest.php
--------------------------------------------------------------------------------
FOUND 16 ERRORS AND 4 WARNINGS AFFECTING 19 LINES
--------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
12 | ERROR | [ ] Doc comment short description must be on a single line,
| | further text should be a separate paragraph
25 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: 'locale_extend'
51 | ERROR | [ ] The array declaration extends to column 96 (the limit is
| | 80). The array content should be split up over multiple
| | lines
53 | ERROR | [ ] The array declaration extends to column 92 (the limit is
| | 80). The array content should be split up over multiple
| | lines
65 | ERROR | [ ] The array declaration extends to column 99 (the limit is
| | 80). The array content should be split up over multiple
| | lines
68 | ERROR | [ ] The array declaration extends to column 128 (the limit is
| | 80). The array content should be split up over multiple
| | lines
73 | ERROR | [ ] The array declaration extends to column 99 (the limit is
| | 80). The array content should be split up over multiple
| | lines
93 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
97 | ERROR | [ ] The array declaration extends to column 118 (the limit is
| | 80). The array content should be split up over multiple
| | lines
98 | WARNING | [ ] Unused variable $source2.
98 | ERROR | [ ] The array declaration extends to column 118 (the limit is
| | 80). The array content should be split up over multiple
| | lines
100 | ERROR | [x] Functions must not contain multiple empty lines in a row;
| | found 2 empty lines
120 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
124 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
126 | ERROR | [ ] The array declaration extends to column 132 (the limit is
| | 80). The array content should be split up over multiple
| | lines
134 | ERROR | [ ] The array declaration extends to column 132 (the limit is
| | 80). The array content should be split up over multiple
| | lines
146 | ERROR | [ ] The array declaration extends to column 94 (the limit is
| | 80). The array content should be split up over multiple
| | lines
151 | ERROR | [x] Expected 1 space before "*"; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...10/web/modules/contrib/locale_extend/tests/src/Kernel/LocaleStringTest.php
--------------------------------------------------------------------------------
FOUND 4 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
--------------------------------------------------------------------------------
9 | ERROR | [ ] Doc comment short description must be on a single line,
| | further text should be a separate paragraph
20 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
21 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
22 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
36 | WARNING | [ ] Possible useless method overriding detected
43 | WARNING | [ ] Possible useless method overriding detected
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...les/contrib/locale_extend/tests/src/Kernel/LocaleExtendKernelTestTrait.php
--------------------------------------------------------------------------------
FOUND 4 ERRORS AND 5 WARNINGS AFFECTING 8 LINES
--------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
13 | ERROR | [ ] Doc comment short description must be on a single line,
| | further text should be a separate paragraph
17 | ERROR | [x] Expected 1 space after trait name; 2 found
17 | ERROR | [x] Expected 1 space before opening brace; found 2
28 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...ontribution/drupal10/web/modules/contrib/locale_extend/src/Translation.php
--------------------------------------------------------------------------------
FOUND 16 ERRORS AND 3 WARNINGS AFFECTING 16 LINES
--------------------------------------------------------------------------------
22 | WARNING | [ ] Line exceeds 80 characters; contains 105 characters
33 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
43 | ERROR | [x] Do not append variable name "$source_langcode" to the type
| | declaration in a member variable comment
45 | ERROR | [ ] Class property $source_langcode should use lowerCamel
| | naming without underscores
72 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 4
| | spaces
72 | ERROR | [x] Parameter comment must end with a full stop
86 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 4
| | spaces
86 | ERROR | [x] Parameter comment must end with a full stop
92 | ERROR | [x] Trailing punctuation for @see references is not allowed.
123 | ERROR | [x] Doc comment short description must end with a full stop
165 | WARNING | [ ] Only string literals should be passed to t() where
| | possible
178 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
179 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 5
180 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 5
181 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 5
183 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 5
184 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
185 | ERROR | [x] Expected 1 newline at end of file; 0 found
185 | ERROR | [x] The closing brace for the class must have an empty line
| | before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: .../drupal10/web/modules/contrib/locale_extend/src/StringTranslationTrait.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------------
39 | ERROR | Class property $source_langcode should use lowerCamel naming
| | without underscores
46 | WARNING | Only string literals should be passed to t() where possible
--------------------------------------------------------------------------------
FILE: ...odules/contrib/locale_extend/src/Service/ExtendedStringDatabaseStorage.php
--------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 5 LINES
--------------------------------------------------------------------------------
33 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
33 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but
| | found 4
34 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
63 | ERROR | [ ] Type hint "\Drupal\locale\StringInterface" missing for
| | $string
70 | ERROR | [ ] The array declaration extends to column 83 (the limit is 80).
| | The array content should be split up over multiple lines
95 | ERROR | [ ] Type hint "\Drupal\locale\StringInterface" missing for
| | $string
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...eb/modules/contrib/locale_extend/src/Service/ExtendedLocaleTranslation.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
--------------------------------------------------------------------------------
25 | WARNING | [ ] Line exceeds 80 characters; contains 104 characters
65 | ERROR | [x] Expected 1 blank line after function; 0 found
66 | 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: .../modules/contrib/locale_extend/src/Service/ExtendedTranslatorInterface.php
--------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
--------------------------------------------------------------------------------
15 | ERROR | [x] Doc comment short description must end with a full stop
35 | ERROR | [ ] Missing parameter comment
36 | ERROR | [ ] Missing parameter comment
38 | ERROR | [x] Expected "bool" but found "boolean" for function return type
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...pal10/web/modules/contrib/locale_extend/src/Service/TranslationManager.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
35 | WARNING | Line exceeds 80 characters; contains 91 characters
--------------------------------------------------------------------------------
FILE: ...l10/web/modules/contrib/locale_extend/src/Service/ExtendedLocaleLookup.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
24 | ERROR | Class property $source_langcode should use lowerCamel naming
| | without underscores
112 | ERROR | The array declaration extends to column 147 (the limit is 80).
| | The array content should be split up over multiple lines
--------------------------------------------------------------------------------
FILE: ...drupal10/web/modules/contrib/locale_extend/src/Routing/RouteSubscriber.php
--------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 6 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
16 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
18 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 10
19 | ERROR | [x] Array indentation error, expected 12 spaces but found 14
20 | ERROR | [x] Array indentation error, expected 12 spaces but found 14
25 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: .../contribution/drupal10/web/modules/contrib/locale_extend/src/Translate.php
--------------------------------------------------------------------------------
FOUND 9 ERRORS AND 4 WARNINGS AFFECTING 10 LINES
--------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
19 | ERROR | [x] Additional blank lines found at end of doc comment
26 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 4
| | spaces
26 | ERROR | [x] Parameter comment must end with a full stop
30 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
40 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
53 | WARNING | [ ] Only string literals should be passed to t() where possible
63 | ERROR | [ ] Parameter tags must be defined first in a doc comment
64 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 4
| | spaces
64 | ERROR | [x] Parameter comment must end with a full stop
74 | ERROR | [x] Doc comment short description must end with a full stop
86 | ERROR | [x] Expected 1 newline at end of file; 0 found
86 | ERROR | [x] The closing brace for the class must have an empty line
| | before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...al10/web/modules/contrib/locale_extend/src/LocaleExtendServiceProvider.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
13 | ERROR | [x] Missing function doc comment
14 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
17 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...rupal10/web/modules/contrib/locale_extend/src/Form/TranslateFilterForm.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
17 | 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: .../drupal10/web/modules/contrib/locale_extend/src/Form/TranslateEditForm.php
--------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
--------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
109 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
110 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
111 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
112 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...drupal10/web/modules/contrib/locale_extend/src/Form/TranslateFormTrait.php
--------------------------------------------------------------------------------
FOUND 4 ERRORS AND 6 WARNINGS AFFECTING 10 LINES
--------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
8 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
35 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
36 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
37 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
44 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
57 | ERROR | [ ] The array declaration extends to column 82 (the limit is
| | 80). The array content should be split up over multiple
| | lines
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...tribution/drupal10/web/modules/contrib/locale_extend/locale_extend.install
--------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
4 | ERROR | [x] Doc comment short description must end with a full stop
21 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
22 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
23 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
24 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
25 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
28 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: .../contribution/drupal10/web/modules/contrib/locale_extend/modules/README.md
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
32 | ERROR | [x] Expected 1 newline at end of file; 4 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...les/contrib/locale_extend/modules/locale_extend_ns/locale_extend_ns.module
--------------------------------------------------------------------------------
FOUND 178 ERRORS AFFECTING 68 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
3 | ERROR | [x] The second line in the file doc comment must be "@file"
3 | ERROR | [x] Doc comment short description must end with a full stop
14 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
15 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
16 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
17 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
18 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
19 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
20 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
21 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
22 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
23 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
24 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
25 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
26 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
27 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
28 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
29 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
30 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
31 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
32 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
33 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
34 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
35 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
38 | ERROR | [x] There must be one blank line after the namespace declaration
39 | ERROR | [x] Missing function doc comment
39 | ERROR | [x] Expected 1 blank line before function; 0 found
39 | ERROR | [x] Opening brace must be the last content on the line
39 | ERROR | [x] There should be no white space after an opening "{"
39 | ERROR | [x] Closing brace must be on a line by itself
39 | ERROR | [x] Expected 1 blank line after function; 0 found
41 | ERROR | [x] There must be one blank line after the namespace declaration
42 | ERROR | [x] Missing function doc comment
42 | ERROR | [x] Expected 1 blank line before function; 0 found
42 | ERROR | [x] Opening brace must be the last content on the line
42 | ERROR | [x] There should be no white space after an opening "{"
42 | ERROR | [x] Closing brace must be on a line by itself
42 | ERROR | [x] Expected 1 blank line after function; 0 found
44 | ERROR | [x] There must be one blank line after the namespace declaration
45 | ERROR | [x] Missing function doc comment
45 | ERROR | [x] Expected 1 blank line before function; 0 found
45 | ERROR | [x] Opening brace must be the last content on the line
45 | ERROR | [x] There should be no white space after an opening "{"
45 | ERROR | [x] Closing brace must be on a line by itself
45 | ERROR | [x] Expected 1 blank line after function; 0 found
47 | ERROR | [x] There must be one blank line after the namespace declaration
48 | ERROR | [x] Missing function doc comment
48 | ERROR | [x] Expected 1 blank line before function; 0 found
48 | ERROR | [x] Opening brace must be the last content on the line
48 | ERROR | [x] There should be no white space after an opening "{"
48 | ERROR | [x] Closing brace must be on a line by itself
48 | ERROR | [x] Expected 1 blank line after function; 0 found
50 | ERROR | [x] There must be one blank line after the namespace declaration
51 | ERROR | [x] Missing function doc comment
51 | ERROR | [x] Expected 1 blank line before function; 0 found
51 | ERROR | [x] Opening brace must be the last content on the line
51 | ERROR | [x] There should be no white space after an opening "{"
51 | ERROR | [x] Closing brace must be on a line by itself
51 | ERROR | [x] Expected 1 blank line after function; 0 found
53 | ERROR | [x] There must be one blank line after the namespace declaration
54 | ERROR | [x] Missing function doc comment
54 | ERROR | [x] Expected 1 blank line before function; 0 found
54 | ERROR | [x] Opening brace must be the last content on the line
54 | ERROR | [x] There should be no white space after an opening "{"
54 | ERROR | [x] Closing brace must be on a line by itself
54 | ERROR | [x] Expected 1 blank line after function; 0 found
56 | ERROR | [x] There must be one blank line after the namespace declaration
57 | ERROR | [x] Missing function doc comment
57 | ERROR | [x] Expected 1 blank line before function; 0 found
57 | ERROR | [x] Opening brace must be the last content on the line
57 | ERROR | [x] There should be no white space after an opening "{"
57 | ERROR | [x] Closing brace must be on a line by itself
57 | ERROR | [x] Expected 1 blank line after function; 0 found
59 | ERROR | [x] There must be one blank line after the namespace declaration
60 | ERROR | [x] Missing function doc comment
60 | ERROR | [x] Expected 1 blank line before function; 0 found
60 | ERROR | [x] Opening brace must be the last content on the line
60 | ERROR | [x] There should be no white space after an opening "{"
60 | ERROR | [x] Closing brace must be on a line by itself
60 | ERROR | [x] Expected 1 blank line after function; 0 found
62 | ERROR | [x] There must be one blank line after the namespace declaration
63 | ERROR | [x] Missing function doc comment
63 | ERROR | [x] Expected 1 blank line before function; 0 found
63 | ERROR | [x] Opening brace must be the last content on the line
63 | ERROR | [x] There should be no white space after an opening "{"
63 | ERROR | [x] Closing brace must be on a line by itself
63 | ERROR | [x] Expected 1 blank line after function; 0 found
65 | ERROR | [x] There must be one blank line after the namespace declaration
66 | ERROR | [x] Missing function doc comment
66 | ERROR | [x] Expected 1 blank line before function; 0 found
66 | ERROR | [x] Opening brace must be the last content on the line
66 | ERROR | [x] There should be no white space after an opening "{"
66 | ERROR | [x] Closing brace must be on a line by itself
66 | ERROR | [x] Expected 1 blank line after function; 0 found
68 | ERROR | [x] There must be one blank line after the namespace declaration
69 | ERROR | [x] Missing function doc comment
69 | ERROR | [x] Expected 1 blank line before function; 0 found
69 | ERROR | [x] Opening brace must be the last content on the line
69 | ERROR | [x] There should be no white space after an opening "{"
69 | ERROR | [x] Closing brace must be on a line by itself
69 | ERROR | [x] Expected 1 blank line after function; 0 found
71 | ERROR | [x] There must be one blank line after the namespace declaration
72 | ERROR | [x] Missing function doc comment
72 | ERROR | [x] Expected 1 blank line before function; 0 found
72 | ERROR | [x] Opening brace must be the last content on the line
72 | ERROR | [x] There should be no white space after an opening "{"
72 | ERROR | [x] Closing brace must be on a line by itself
72 | ERROR | [x] Expected 1 blank line after function; 0 found
74 | ERROR | [x] There must be one blank line after the namespace declaration
75 | ERROR | [x] Missing function doc comment
75 | ERROR | [x] Expected 1 blank line before function; 0 found
75 | ERROR | [x] Opening brace must be the last content on the line
75 | ERROR | [x] There should be no white space after an opening "{"
75 | ERROR | [x] Closing brace must be on a line by itself
75 | ERROR | [x] Expected 1 blank line after function; 0 found
77 | ERROR | [x] There must be one blank line after the namespace declaration
78 | ERROR | [x] Missing function doc comment
78 | ERROR | [x] Expected 1 blank line before function; 0 found
78 | ERROR | [x] Opening brace must be the last content on the line
78 | ERROR | [x] There should be no white space after an opening "{"
78 | ERROR | [x] Closing brace must be on a line by itself
78 | ERROR | [x] Expected 1 blank line after function; 0 found
80 | ERROR | [x] There must be one blank line after the namespace declaration
81 | ERROR | [x] Missing function doc comment
81 | ERROR | [x] Expected 1 blank line before function; 0 found
81 | ERROR | [x] Opening brace must be the last content on the line
81 | ERROR | [x] There should be no white space after an opening "{"
81 | ERROR | [x] Closing brace must be on a line by itself
81 | ERROR | [x] Expected 1 blank line after function; 0 found
83 | ERROR | [x] There must be one blank line after the namespace declaration
84 | ERROR | [x] Missing function doc comment
84 | ERROR | [x] Expected 1 blank line before function; 0 found
84 | ERROR | [x] Opening brace must be the last content on the line
84 | ERROR | [x] There should be no white space after an opening "{"
84 | ERROR | [x] Closing brace must be on a line by itself
84 | ERROR | [x] Expected 1 blank line after function; 0 found
86 | ERROR | [x] There must be one blank line after the namespace declaration
87 | ERROR | [x] Missing function doc comment
87 | ERROR | [x] Expected 1 blank line before function; 0 found
87 | ERROR | [x] Opening brace must be the last content on the line
87 | ERROR | [x] There should be no white space after an opening "{"
87 | ERROR | [x] Closing brace must be on a line by itself
87 | ERROR | [x] Expected 1 blank line after function; 0 found
89 | ERROR | [x] There must be one blank line after the namespace declaration
90 | ERROR | [x] Missing function doc comment
90 | ERROR | [x] Expected 1 blank line before function; 0 found
90 | ERROR | [x] Opening brace must be the last content on the line
90 | ERROR | [x] There should be no white space after an opening "{"
90 | ERROR | [x] Closing brace must be on a line by itself
90 | ERROR | [x] Expected 1 blank line after function; 0 found
92 | ERROR | [x] There must be one blank line after the namespace declaration
93 | ERROR | [x] Missing function doc comment
93 | ERROR | [x] Expected 1 blank line before function; 0 found
93 | ERROR | [x] Opening brace must be the last content on the line
93 | ERROR | [x] There should be no white space after an opening "{"
93 | ERROR | [x] Closing brace must be on a line by itself
93 | ERROR | [x] Expected 1 blank line after function; 0 found
95 | ERROR | [x] There must be one blank line after the namespace declaration
96 | ERROR | [x] Missing function doc comment
96 | ERROR | [x] Expected 1 blank line before function; 0 found
96 | ERROR | [x] Opening brace must be the last content on the line
96 | ERROR | [x] There should be no white space after an opening "{"
96 | ERROR | [x] Closing brace must be on a line by itself
96 | ERROR | [x] Expected 1 blank line after function; 0 found
98 | ERROR | [x] There must be one blank line after the namespace declaration
99 | ERROR | [x] Missing function doc comment
99 | ERROR | [x] Expected 1 blank line before function; 0 found
99 | ERROR | [x] Opening brace must be the last content on the line
99 | ERROR | [x] There should be no white space after an opening "{"
99 | ERROR | [x] Closing brace must be on a line by itself
99 | ERROR | [x] Expected 1 blank line after function; 0 found
102 | ERROR | [x] Missing function doc comment
102 | ERROR | [x] Expected 1 blank line before function; 0 found
102 | ERROR | [x] Opening brace must be the last content on the line
102 | ERROR | [x] There should be no white space after an opening "{"
102 | ERROR | [x] Closing brace must be on a line by itself
103 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 178 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...dules/contrib/locale_extend/modules/locale_extend_t/locale_extend_t.module
--------------------------------------------------------------------------------
FOUND 156 ERRORS AND 1 WARNING AFFECTING 69 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
3 | ERROR | [x] The second line in the file doc comment must be "@file"
3 | ERROR | [x] Doc comment short description must end with a full stop
6 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
11 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
12 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
13 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
14 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
15 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
16 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
17 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
18 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
19 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
20 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
21 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
22 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
23 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
24 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
25 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
26 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
27 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
28 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
29 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
30 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
31 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
32 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
35 | ERROR | [x] The open comment tag must be the only content on the line
35 | ERROR | [x] Doc comment short description must be on the first line
36 | ERROR | [x] Opening brace must be the last content on the line
36 | ERROR | [x] There should be no white space after an opening "{"
36 | ERROR | [x] Closing brace must be on a line by itself
36 | ERROR | [x] Expected 1 blank line after function; 0 found
37 | ERROR | [x] The open comment tag must be the only content on the line
37 | ERROR | [x] Doc comment short description must be on the first line
38 | ERROR | [x] Opening brace must be the last content on the line
38 | ERROR | [x] There should be no white space after an opening "{"
38 | ERROR | [x] Closing brace must be on a line by itself
38 | ERROR | [x] Expected 1 blank line after function; 0 found
39 | ERROR | [x] The open comment tag must be the only content on the line
39 | ERROR | [x] Doc comment short description must be on the first line
40 | ERROR | [x] Opening brace must be the last content on the line
40 | ERROR | [x] There should be no white space after an opening "{"
40 | ERROR | [x] Closing brace must be on a line by itself
40 | ERROR | [x] Expected 1 blank line after function; 0 found
41 | ERROR | [x] The open comment tag must be the only content on the line
41 | ERROR | [x] Doc comment short description must be on the first line
42 | ERROR | [x] Opening brace must be the last content on the line
42 | ERROR | [x] There should be no white space after an opening "{"
42 | ERROR | [x] Closing brace must be on a line by itself
42 | ERROR | [x] Expected 1 blank line after function; 0 found
43 | ERROR | [x] The open comment tag must be the only content on the line
43 | ERROR | [x] Doc comment short description must be on the first line
44 | ERROR | [x] Opening brace must be the last content on the line
44 | ERROR | [x] There should be no white space after an opening "{"
44 | ERROR | [x] Closing brace must be on a line by itself
44 | ERROR | [x] Expected 1 blank line after function; 0 found
45 | ERROR | [x] The open comment tag must be the only content on the line
45 | ERROR | [x] Doc comment short description must be on the first line
46 | ERROR | [x] Opening brace must be the last content on the line
46 | ERROR | [x] There should be no white space after an opening "{"
46 | ERROR | [x] Closing brace must be on a line by itself
46 | ERROR | [x] Expected 1 blank line after function; 0 found
47 | ERROR | [x] The open comment tag must be the only content on the line
47 | ERROR | [x] Doc comment short description must be on the first line
48 | ERROR | [x] Opening brace must be the last content on the line
48 | ERROR | [x] There should be no white space after an opening "{"
48 | ERROR | [x] Closing brace must be on a line by itself
48 | ERROR | [x] Expected 1 blank line after function; 0 found
49 | ERROR | [x] The open comment tag must be the only content on the line
49 | ERROR | [x] Doc comment short description must be on the first line
50 | ERROR | [x] Opening brace must be the last content on the line
50 | ERROR | [x] There should be no white space after an opening "{"
50 | ERROR | [x] Closing brace must be on a line by itself
50 | ERROR | [x] Expected 1 blank line after function; 0 found
51 | ERROR | [x] The open comment tag must be the only content on the line
51 | ERROR | [x] Doc comment short description must be on the first line
52 | ERROR | [x] Opening brace must be the last content on the line
52 | ERROR | [x] There should be no white space after an opening "{"
52 | ERROR | [x] Closing brace must be on a line by itself
52 | ERROR | [x] Expected 1 blank line after function; 0 found
53 | ERROR | [x] The open comment tag must be the only content on the line
53 | ERROR | [x] Doc comment short description must be on the first line
54 | ERROR | [x] Opening brace must be the last content on the line
54 | ERROR | [x] There should be no white space after an opening "{"
54 | ERROR | [x] Closing brace must be on a line by itself
54 | ERROR | [x] Expected 1 blank line after function; 0 found
55 | ERROR | [x] The open comment tag must be the only content on the line
55 | ERROR | [x] Doc comment short description must be on the first line
56 | ERROR | [x] Opening brace must be the last content on the line
56 | ERROR | [x] There should be no white space after an opening "{"
56 | ERROR | [x] Closing brace must be on a line by itself
56 | ERROR | [x] Expected 1 blank line after function; 0 found
57 | ERROR | [x] The open comment tag must be the only content on the line
57 | ERROR | [x] Doc comment short description must be on the first line
58 | ERROR | [x] Opening brace must be the last content on the line
58 | ERROR | [x] There should be no white space after an opening "{"
58 | ERROR | [x] Closing brace must be on a line by itself
58 | ERROR | [x] Expected 1 blank line after function; 0 found
59 | ERROR | [x] The open comment tag must be the only content on the line
59 | ERROR | [x] Doc comment short description must be on the first line
60 | ERROR | [x] Opening brace must be the last content on the line
60 | ERROR | [x] There should be no white space after an opening "{"
60 | ERROR | [x] Closing brace must be on a line by itself
60 | ERROR | [x] Expected 1 blank line after function; 0 found
61 | ERROR | [x] The open comment tag must be the only content on the line
61 | ERROR | [x] Doc comment short description must be on the first line
62 | ERROR | [x] Opening brace must be the last content on the line
62 | ERROR | [x] There should be no white space after an opening "{"
62 | ERROR | [x] Closing brace must be on a line by itself
62 | ERROR | [x] Expected 1 blank line after function; 0 found
63 | ERROR | [x] The open comment tag must be the only content on the line
63 | ERROR | [x] Doc comment short description must be on the first line
64 | ERROR | [x] Opening brace must be the last content on the line
64 | ERROR | [x] There should be no white space after an opening "{"
64 | ERROR | [x] Closing brace must be on a line by itself
64 | ERROR | [x] Expected 1 blank line after function; 0 found
65 | ERROR | [x] The open comment tag must be the only content on the line
65 | ERROR | [x] Doc comment short description must be on the first line
66 | ERROR | [x] Opening brace must be the last content on the line
66 | ERROR | [x] There should be no white space after an opening "{"
66 | ERROR | [x] Closing brace must be on a line by itself
66 | ERROR | [x] Expected 1 blank line after function; 0 found
67 | ERROR | [x] The open comment tag must be the only content on the line
67 | ERROR | [x] Doc comment short description must be on the first line
68 | ERROR | [x] Opening brace must be the last content on the line
68 | ERROR | [x] There should be no white space after an opening "{"
68 | ERROR | [x] Closing brace must be on a line by itself
68 | ERROR | [x] Expected 1 blank line after function; 0 found
69 | ERROR | [x] The open comment tag must be the only content on the line
69 | ERROR | [x] Doc comment short description must be on the first line
70 | ERROR | [x] Opening brace must be the last content on the line
70 | ERROR | [x] There should be no white space after an opening "{"
70 | ERROR | [x] Closing brace must be on a line by itself
70 | ERROR | [x] Expected 1 blank line after function; 0 found
71 | ERROR | [x] The open comment tag must be the only content on the line
71 | ERROR | [x] Doc comment short description must be on the first line
72 | ERROR | [x] Opening brace must be the last content on the line
72 | ERROR | [x] There should be no white space after an opening "{"
72 | ERROR | [x] Closing brace must be on a line by itself
72 | ERROR | [x] Expected 1 blank line after function; 0 found
73 | ERROR | [x] The open comment tag must be the only content on the line
73 | ERROR | [x] Doc comment short description must be on the first line
74 | ERROR | [x] Opening brace must be the last content on the line
74 | ERROR | [x] There should be no white space after an opening "{"
74 | ERROR | [x] Closing brace must be on a line by itself
74 | ERROR | [x] Expected 1 blank line after function; 0 found
75 | ERROR | [x] The open comment tag must be the only content on the line
75 | ERROR | [x] Doc comment short description must be on the first line
76 | ERROR | [x] Opening brace must be the last content on the line
76 | ERROR | [x] There should be no white space after an opening "{"
76 | ERROR | [x] Closing brace must be on a line by itself
76 | ERROR | [x] Expected 1 blank line after function; 0 found
77 | ERROR | [x] The open comment tag must be the only content on the line
77 | ERROR | [x] Doc comment short description must be on the first line
78 | ERROR | [x] Opening brace must be the last content on the line
78 | ERROR | [x] There should be no white space after an opening "{"
78 | ERROR | [x] Closing brace must be on a line by itself
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 156 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...ntribution/drupal10/web/modules/contrib/locale_extend/locale_extend.module
--------------------------------------------------------------------------------
FOUND 18 ERRORS AFFECTING 12 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
3 | ERROR | [x] The second line in the file doc comment must be "@file"
3 | ERROR | [x] Doc comment short description must end with a full stop
14 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 4
| | spaces
15 | ERROR | [x] Expected 1 space(s) before asterisk; 3 found
16 | ERROR | [x] Expected 1 space(s) before asterisk; 3 found
16 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 1
| | spaces
17 | ERROR | [x] Expected 1 space(s) before asterisk; 3 found
38 | ERROR | [ ] Description for the @return value is missing
60 | ERROR | [ ] Description for the @return value is missing
70 | ERROR | [x] Expected "string|false" but found "string|FALSE" for function
| | return type
70 | ERROR | [ ] Description for the @return value is missing
72 | ERROR | [x] Expected 1 space between comma and argument "$langcode"; 2
| | found
72 | ERROR | [x] Expected one space after the comma, 2 found
72 | ERROR | [x] Incorrect spacing between argument "$context" and equals
| | sign; expected 1 but found 0
72 | ERROR | [x] Incorrect spacing between default value and equals sign for
| | argument "$context"; expected 1 but found 0
74 | ERROR | [x] There should be no white space before a closing ")"
75 | ERROR | [x] Expected 1 newline at end of file; 3 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
FILE: ...tion/drupal10/web/modules/contrib/locale_extend/locale_extend.services.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
Time: 1.36 secs; Memory: 10MB
Steps to reproduce
Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig locale_extend/
Proposed resolution
Resolve all the issues for Drupal and DrupalPractice coding standards.
Remaining tasks
Review the patch and fix remaining issues:
FILE: ...odules/contrib/locale_extend/tests/src/Kernel/ExtendedLocaleStringTest.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
115 | WARNING | Unused variable $source2.
--------------------------------------------------------------------------------
FILE: ...10/web/modules/contrib/locale_extend/tests/src/Kernel/LocaleStringTest.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------
37 | WARNING | Possible useless method overriding detected
44 | WARNING | Possible useless method overriding detected
--------------------------------------------------------------------------------
FILE: ...ontribution/drupal10/web/modules/contrib/locale_extend/src/Translation.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------------
47 | ERROR | Class property $source_langcode should use lowerCamel naming
| | without underscores
167 | WARNING | Only string literals should be passed to t() where possible
--------------------------------------------------------------------------------
FILE: .../drupal10/web/modules/contrib/locale_extend/src/StringTranslationTrait.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------------
39 | ERROR | Class property $source_langcode should use lowerCamel naming
| | without underscores
46 | WARNING | Only string literals should be passed to t() where possible
--------------------------------------------------------------------------------
FILE: ...l10/web/modules/contrib/locale_extend/src/Service/ExtendedLocaleLookup.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
24 | ERROR | Class property $source_langcode should use lowerCamel naming
| | without underscores
--------------------------------------------------------------------------------
FILE: .../contribution/drupal10/web/modules/contrib/locale_extend/src/Translate.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
52 | WARNING | Only string literals should be passed to t() where possible
--------------------------------------------------------------------------------
Time: 1.39 secs; Memory: 10MB