Problem/Motivation
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\config\schema\preconnect.schema.yml
---------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------
21 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\config\schema\preload.schema.yml
------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------
24 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\prelinker.install
---------------------------------------------------------------------------------------
FOUND 10 ERRORS AFFECTING 10 LINES
---------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
3 | ERROR | [x] You must use "/**" style comments for a file comment
6 | ERROR | [x] You must use "/**" style comments for a function comment
10 | ERROR | [ ] Missing short description in doc comment
14 | ERROR | [x] Opening brace should be on the same line as the declaration
15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
16 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
19 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
---------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\prelinker.links.action.yml
------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
11 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\prelinker.module
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 60 ERRORS AND 1 WARNING AFFECTING 52 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
3 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
9 | ERROR | [x] Expected 1 blank line before function; 2 found
10 | ERROR | [x] Opening brace should be on the same line as the declaration
11 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
11 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
12 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
13 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
14 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
18 | ERROR | [x] Inline comments must start with a capital letter
18 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
20 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
21 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
23 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
25 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
26 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
27 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
28 | ERROR | [x] Array indentation error, expected 18 spaces but found 20
29 | ERROR | [x] Array indentation error, expected 18 spaces but found 20
31 | ERROR | [x] Concat operator must be surrounded by a single space
31 | WARNING | [x] A comma should follow the last multiline array item. Found: )
34 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
34 | ERROR | [ ] The array declaration extends to column 83 (the limit is 80). The array content should be split up over multiple lines
35 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
36 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
39 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
39 | ERROR | [x] Inline comments must start with a capital letter
39 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
40 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
41 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
42 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
44 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
47 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
48 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
49 | ERROR | [x] Array indentation error, expected 18 spaces but found 20
50 | ERROR | [x] Array indentation error, expected 18 spaces but found 20
51 | ERROR | [x] Array indentation error, expected 22 spaces but found 24
52 | ERROR | [x] Array indentation error, expected 22 spaces but found 24
53 | ERROR | [x] Array indentation error, expected 22 spaces but found 24
56 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
57 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
58 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
59 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
60 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
62 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
69 | ERROR | [x] Opening brace should be on the same line as the declaration
70 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
71 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
71 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
73 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
74 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
75 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
76 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 60 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\prelinker.routing.yml
-------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------
71 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\prelinker.services.yml
--------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------
17 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\README.md
-------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------------
3 | WARNING | [ ] Line exceeds 80 characters; contains 176 characters
5 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters
5 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\src\Controller\PreconnectListBuilder.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 45 ERRORS AND 2 WARNINGS AFFECTING 45 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
12 | ERROR | [x] Doc comment short description must end with a full stop
15 | ERROR | [x] Opening brace should be on the same line as the declaration
16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
25 | ERROR | [x] Opening brace should be on the same line as the declaration
26 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
29 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
33 | ERROR | [x] Opening brace should be on the same line as the declaration
34 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
35 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
36 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
38 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
39 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
41 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
44 | ERROR | [x] Doc comment long description must end with a full stop
48 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
49 | ERROR | [x] Opening brace should be on the same line as the declaration
50 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
51 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
52 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
52 | ERROR | [ ] The array declaration extends to column 93 (the limit is 80). The array content should be split up over multiple lines
54 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
55 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
57 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
60 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
61 | ERROR | [x] Opening brace should be on the same line as the declaration
62 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
63 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
64 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
65 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
66 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
67 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
69 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
70 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
71 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
72 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
73 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
76 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
77 | ERROR | [x] Expected 1 blank line after function; 0 found
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 46 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\src\Controller\PreloadListBuilder.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 47 ERRORS AND 2 WARNINGS AFFECTING 47 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
6 | WARNING | [x] Unused use statement
7 | WARNING | [x] Unused use statement
12 | ERROR | [x] Doc comment short description must end with a full stop
15 | ERROR | [x] Opening brace should be on the same line as the declaration
16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
25 | ERROR | [x] Opening brace should be on the same line as the declaration
26 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
29 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
33 | ERROR | [x] Opening brace should be on the same line as the declaration
34 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
35 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
36 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
37 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
39 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
40 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
42 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
45 | ERROR | [x] Doc comment long description must end with a full stop
49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
50 | ERROR | [x] Opening brace should be on the same line as the declaration
51 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
52 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
53 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
54 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
54 | ERROR | [ ] The array declaration extends to column 93 (the limit is 80). The array content should be split up over multiple lines
56 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
57 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
59 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
62 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
63 | ERROR | [x] Opening brace should be on the same line as the declaration
64 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
65 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
66 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
67 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
68 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
69 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
71 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
72 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
73 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
74 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
75 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
78 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
79 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
79 | ERROR | [x] Expected 1 blank line after function; 0 found
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 48 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\src\Entity\Preconnect.php
-----------------------------------------------------------------------------------------------
FOUND 16 ERRORS AFFECTING 16 LINES
-----------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
43 | ERROR | [x] Opening brace should be on the same line as the declaration
44 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
51 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
52 | ERROR | [x] Doc comment short description must end with a full stop
56 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
58 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
63 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
65 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
66 | ERROR | [x] Doc comment short description must end with a full stop
70 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
72 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
73 | ERROR | [x] Doc comment short description must end with a full stop
75 | ERROR | [x] Expected "int" but found "integer" for @var tag in member variable comment
77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\src\Entity\Preload.php
---------------------------------------------------------------------------------------------
FOUND 19 ERRORS AFFECTING 19 LINES
---------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
44 | ERROR | [x] Opening brace should be on the same line as the declaration
45 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
50 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
52 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
53 | ERROR | [x] Doc comment short description must end with a full stop
57 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
59 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
64 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
66 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
67 | ERROR | [x] Doc comment short description must end with a full stop
71 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
73 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
74 | ERROR | [x] Doc comment short description must end with a full stop
78 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
80 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
81 | ERROR | [x] Doc comment short description must end with a full stop
83 | ERROR | [x] Expected "int" but found "integer" for @var tag in member variable comment
85 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
---------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 19 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\src\Form\PreconnectDeleteForm.php
-------------------------------------------------------------------------------------------------------
FOUND 27 ERRORS AFFECTING 25 LINES
-------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
13 | ERROR | [x] Opening brace should be on the same line as the declaration
14 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
17 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
17 | ERROR | [x] Expected 1 blank line before function; 0 found
18 | ERROR | [x] Opening brace should be on the same line as the declaration
19 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
26 | ERROR | [x] Opening brace should be on the same line as the declaration
27 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
28 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
34 | ERROR | [x] Opening brace should be on the same line as the declaration
35 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
43 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
44 | ERROR | [x] Opening brace should be on the same line as the declaration
45 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
47 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
48 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
49 | ERROR | [x] Expected 1 blank line after function; 0 found
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 27 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\src\Form\PreconnectForm.php
-------------------------------------------------------------------------------------------------
FOUND 93 ERRORS AFFECTING 87 LINES
-------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
16 | ERROR | [x] Opening brace should be on the same line as the declaration
17 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
29 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
39 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
40 | ERROR | [x] Opening brace should be on the same line as the declaration
41 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
42 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
43 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
45 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
48 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
49 | ERROR | [x] Opening brace should be on the same line as the declaration
50 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
54 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
56 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
59 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
60 | ERROR | [x] Opening brace should be on the same line as the declaration
61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
63 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
65 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
66 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
67 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
67 | ERROR | [x] Expected newline after closing brace
68 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
69 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
71 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
72 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
73 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
74 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
75 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
76 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
77 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
77 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
80 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
81 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
82 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
83 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
84 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
85 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
86 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
87 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
87 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
90 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
91 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
92 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
93 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
94 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
95 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
98 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
99 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
100 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
101 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
102 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
103 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
105 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
108 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
109 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
111 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
114 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
115 | ERROR | [x] Opening brace should be on the same line as the declaration
116 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
117 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
118 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
120 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
121 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
125 | ERROR | [x] Array indentation error, expected 26 spaces but found 28
129 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
129 | ERROR | [x] Expected newline after closing brace
130 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
134 | ERROR | [x] Array indentation error, expected 26 spaces but found 28
138 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
139 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
140 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
141 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
142 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
142 | ERROR | [x] Expected newline after closing brace
143 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
147 | ERROR | [x] Array indentation error, expected 22 spaces but found 24
152 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
153 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
154 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
155 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
157 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
169 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
170 | ERROR | [x] Opening brace should be on the same line as the declaration
171 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
172 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 12
175 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
176 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
176 | ERROR | [x] Expected 1 blank line after function; 0 found
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 93 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\src\Form\PrelinkerSettings.php
----------------------------------------------------------------------------------------------------
FOUND 64 ERRORS AND 9 WARNINGS AFFECTING 68 LINES
----------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
9 | ERROR | [x] Doc comment short description must end with a full stop
12 | ERROR | [x] Opening brace should be on the same line as the declaration
13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
16 | ERROR | [x] Expected 1 blank line before function; 0 found
17 | ERROR | [x] Opening brace should be on the same line as the declaration
18 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
25 | ERROR | [x] Opening brace should be on the same line as the declaration
26 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
29 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
30 | ERROR | [x] Doc comment short description must end with a full stop
32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
32 | ERROR | [ ] Private method name "PrelinkerSettings::_t" is not in lowerCamel format
33 | ERROR | [x] Opening brace should be on the same line as the declaration
34 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
34 | WARNING | [ ] Only string literals should be passed to t() where possible
35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
40 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
41 | ERROR | [x] Opening brace should be on the same line as the declaration
42 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
44 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
45 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
46 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
47 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
49 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
52 | WARNING | [x] A comma should follow the last multiline array item. Found: )
54 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
56 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
60 | WARNING | [x] A comma should follow the last multiline array item. Found: '
'
62 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
64 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
67 | WARNING | [x] A comma should follow the last multiline array item. Found: )
71 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
72 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
73 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
74 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
76 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
79 | WARNING | [x] A comma should follow the last multiline array item. Found: )
81 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
82 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
83 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
83 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
84 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
85 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
86 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
87 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
89 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
91 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
94 | WARNING | [x] A comma should follow the last multiline array item. Found: )
96 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
98 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
101 | WARNING | [x] A comma should follow the last multiline array item. Found: )
103 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
105 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
108 | WARNING | [x] A comma should follow the last multiline array item. Found: )
110 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
112 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
115 | WARNING | [x] A comma should follow the last multiline array item. Found: )
119 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
120 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
122 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
125 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
126 | ERROR | [x] Opening brace should be on the same line as the declaration
127 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
129 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
157 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
157 | ERROR | [x] Expected 1 blank line after function; 0 found
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 71 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\src\Form\PreloadDeleteForm.php
----------------------------------------------------------------------------------------------------
FOUND 26 ERRORS AFFECTING 24 LINES
----------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
13 | ERROR | [x] Opening brace should be on the same line as the declaration
17 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
17 | ERROR | [x] Expected 1 blank line before function; 0 found
18 | ERROR | [x] Opening brace should be on the same line as the declaration
19 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
26 | ERROR | [x] Opening brace should be on the same line as the declaration
27 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
28 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
34 | ERROR | [x] Opening brace should be on the same line as the declaration
35 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
43 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
44 | ERROR | [x] Opening brace should be on the same line as the declaration
45 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
47 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
48 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
49 | ERROR | [x] Expected 1 blank line after function; 0 found
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 26 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\src\Form\PreloadForm.php
----------------------------------------------------------------------------------------------
FOUND 117 ERRORS AND 1 WARNING AFFECTING 110 LINES
----------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
16 | ERROR | [x] Opening brace should be on the same line as the declaration
17 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
29 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
39 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
40 | ERROR | [x] Opening brace should be on the same line as the declaration
41 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
42 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
43 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
45 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
48 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
49 | ERROR | [x] Opening brace should be on the same line as the declaration
50 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
54 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
56 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
57 | ERROR | [x] Doc comment short description must end with a full stop
59 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
59 | ERROR | [ ] Private method name "PreloadForm::_as_types" is not in lowerCamel format
60 | ERROR | [x] Opening brace should be on the same line as the declaration
61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
62 | WARNING | [x] A comma should follow the last multiline array item. Found: 'video'
65 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
66 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
68 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
71 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
72 | ERROR | [x] Opening brace should be on the same line as the declaration
73 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
75 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
77 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
78 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
79 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
79 | ERROR | [x] Expected newline after closing brace
80 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
81 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
83 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
84 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
85 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
86 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
87 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
88 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
89 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
89 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
92 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
93 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
94 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
95 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
96 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
97 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
98 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
99 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
99 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
102 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
103 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
104 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
105 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
106 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
107 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
108 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
109 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
109 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
111 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
112 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
113 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
114 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
115 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
116 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
119 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
120 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
121 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
122 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
123 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
124 | ERROR | [x] Array indentation error, expected 14 spaces but found 16
126 | ERROR | [x] Array indentation error, expected 10 spaces but found 12
129 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
130 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
132 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
135 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
136 | ERROR | [x] Opening brace should be on the same line as the declaration
137 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
138 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
139 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
140 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
142 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
145 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
146 | ERROR | [x] Opening brace should be on the same line as the declaration
147 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
148 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
149 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
151 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
152 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
156 | ERROR | [x] Array indentation error, expected 26 spaces but found 28
160 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
160 | ERROR | [x] Expected newline after closing brace
161 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
165 | ERROR | [x] Array indentation error, expected 26 spaces but found 28
169 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
170 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
171 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
172 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
173 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
173 | ERROR | [x] Expected newline after closing brace
174 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
178 | ERROR | [x] Array indentation error, expected 22 spaces but found 24
183 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
184 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
185 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
186 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
188 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
200 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
201 | ERROR | [x] Opening brace should be on the same line as the declaration
202 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
203 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 12
206 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
207 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
207 | ERROR | [x] Expected 1 blank line after function; 0 found
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 117 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\src\Render\HeaderProcessor.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 152 ERRORS AND 10 WARNINGS AFFECTING 112 LINES
-------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
12 | ERROR | [x] Opening brace should be on the same line as the declaration
13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
23 | ERROR | [ ] Missing parameter comment
25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
26 | ERROR | [x] Opening brace should be on the same line as the declaration
27 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
28 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
34 | ERROR | [x] Opening brace should be on the same line as the declaration
35 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
37 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
37 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
38 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
38 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
39 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
40 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
42 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
42 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
44 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
46 | ERROR | [x] Inline comments must start with a capital letter
46 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
47 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
48 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
48 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
49 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
51 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
53 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
54 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
54 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
55 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
55 | ERROR | [x] Concat operator must be surrounded by a single space
55 | ERROR | [x] Concat operator must be surrounded by a single space
56 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
57 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
58 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
60 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
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
61 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
62 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
62 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
63 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
65 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
67 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
68 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
68 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
69 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
69 | ERROR | [x] Concat operator must be surrounded by a single space
69 | ERROR | [x] Concat operator must be surrounded by a single space
69 | ERROR | [x] Concat operator must be surrounded by a single space
70 | ERROR | [x] Concat operator must be surrounded by a single space
70 | ERROR | [x] Expected 1 space before "?"; 0 found
70 | ERROR | [x] Expected 1 space before ":"; 0 found
70 | ERROR | [x] Concat operator must be surrounded by a single space
71 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
72 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
73 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
75 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
75 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
75 | ERROR | [x] Inline comments must start with a capital letter
76 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
77 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
78 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
79 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
80 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
82 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
83 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
84 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
85 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
86 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
88 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
88 | ERROR | [x] Inline comments must start with a capital letter
88 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
89 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
90 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
91 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
92 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
93 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
93 | ERROR | [x] Concat operator must be surrounded by a single space
93 | ERROR | [x] Concat operator must be surrounded by a single space
94 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
94 | ERROR | [x] Concat operator must be surrounded by a single space
94 | ERROR | [x] Concat operator must be surrounded by a single space
95 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
96 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
97 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
98 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
99 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
100 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
100 | ERROR | [x] Concat operator must be surrounded by a single space
100 | ERROR | [x] Concat operator must be surrounded by a single space
101 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
102 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
103 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
105 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
106 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
107 | WARNING | [ ] Line exceeds 80 characters; contains 98 characters
107 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
107 | ERROR | [x] Inline comments must start with a capital letter
107 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
108 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
109 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
110 | ERROR | [x] Concat operator must be surrounded by a single space
110 | ERROR | [x] Concat operator must be surrounded by a single space
111 | ERROR | [x] Concat operator must be surrounded by a single space
112 | ERROR | [x] Concat operator must be surrounded by a single space
113 | ERROR | [x] Concat operator must be surrounded by a single space
114 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
115 | WARNING | [ ] Line exceeds 80 characters; contains 107 characters
115 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
115 | ERROR | [x] Inline comments must start with a capital letter
115 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
116 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
117 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
118 | ERROR | [x] Concat operator must be surrounded by a single space
118 | ERROR | [x] Concat operator must be surrounded by a single space
119 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
120 | WARNING | [ ] Line exceeds 80 characters; contains 108 characters
120 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
120 | ERROR | [x] Inline comments must start with a capital letter
120 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
121 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
122 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
122 | ERROR | [x] Concat operator must be surrounded by a single space
122 | ERROR | [x] Concat operator must be surrounded by a single space
123 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
124 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
125 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
127 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
127 | ERROR | [x] Inline comments must start with a capital letter
128 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
129 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
130 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
131 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
132 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
133 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
134 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 28
134 | ERROR | [x] Concat operator must be surrounded by a single space
134 | ERROR | [x] Concat operator must be surrounded by a single space
135 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 24
136 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
137 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
138 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
139 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
141 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
141 | ERROR | [x] Inline comments must start with a capital letter
142 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
143 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
143 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
143 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
144 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
145 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
145 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
146 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
148 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
149 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
149 | ERROR | [x] Expected 1 blank line after function; 0 found
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 151 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\prelinker\src\Service\Prelinker.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 60 ERRORS AND 6 WARNINGS AFFECTING 49 LINES
------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | ERROR | [x] Missing class doc comment
6 | ERROR | [x] Opening brace should be on the same line as the declaration
7 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
8 | ERROR | [x] Doc comment short description must end with a full stop
10 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
10 | ERROR | [ ] Public method name "Prelinker::get_nodeid" is not in lowerCamel format
10 | ERROR | [x] Expected 1 blank line before function; 0 found
11 | ERROR | [x] Opening brace should be on the same line as the declaration
12 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
12 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
16 | ERROR | [x] Doc comment short description must end with a full stop
18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
18 | ERROR | [ ] Public method name "Prelinker::get_path" is not in lowerCamel format
19 | ERROR | [x] Opening brace should be on the same line as the declaration
20 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
21 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
21 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
23 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
24 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
24 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
24 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
25 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
25 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
26 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
27 | ERROR | [x] Whitespace found at end of line
28 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
28 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
30 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
31 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
32 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
33 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
35 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
36 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
39 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
40 | ERROR | [x] Doc comment short description must end with a full stop
42 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
42 | ERROR | [ ] Public method name "Prelinker::check_page" is not in lowerCamel format
43 | ERROR | [x] Opening brace should be on the same line as the declaration
44 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
44 | ERROR | [x] Inline comments must start with a capital letter
44 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
45 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
48 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
49 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
51 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
53 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
54 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
54 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
55 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
56 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
57 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 20
57 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
58 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 16
59 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
61 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
61 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
62 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
64 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
64 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
65 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
65 | ERROR | [x] Expected 1 blank line after function; 0 found
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 57 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------
Time: 3.01 secs; Memory: 6MB
Steps to reproduce
Run the phpcs command on the module.
Use below command with arguments:-
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml web/modules/custom/prelinker
Proposed resolution
Fix the phpcs issue found by phpcs.