Fix the issues reported by phpcs

Created on 6 July 2023, 12 months ago
Updated 2 January 2024, 6 months ago

Problem/Motivation

FILE: /var/www/html/vb/d_cont/learneractivities/learneractivities.module
--------------------------------------------------------------------------------
FOUND 31 ERRORS AFFECTING 19 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
5 | ERROR | [x] Additional blank lines found at end of doc comment
8 | ERROR | [ ] More than 2 empty lines are not allowed
9 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
10 | ERROR | [x] Expected 2 space(s) before asterisk; 1 found
11 | ERROR | [x] Expected 2 space(s) before asterisk; 1 found
12 | ERROR | [x] Expected 1 blank line before function; 3 found
13 | ERROR | [x] Whitespace found at end of line
14 | ERROR | [x] Expected 1 space after IF keyword; 0 found
14 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
15 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
15 | ERROR | [x] Whitespace found at end of line
16 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
16 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
16 | ERROR | [x] No space found before comment text; expected "// business
| | logic to get activities from LinkedIn Learning" but found
| | "//business logic to get activities from LinkedIn Learning"
16 | ERROR | [x] Inline comments must start with a capital letter
16 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
16 | ERROR | [x] Whitespace found at end of line
17 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
17 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
18 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
18 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
20 | ERROR | [x] Expected 1 space after ELSE keyword; 0 found
20 | ERROR | [x] Whitespace found at end of line
21 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
21 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
23 | ERROR | [x] Expected 1 newline at end of file; 5 found
26 | ERROR | [ ] More than 2 empty lines are not allowed
27 | ERROR | [ ] More than 2 empty lines are not allowed
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 28 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/learneractivities/learneractivities.services.yml
------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------
6 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------

FILE: ...ww/html/vb/d_cont/learneractivities/src/Form/LinkedInConfigurationForm.php
--------------------------------------------------------------------------------
FOUND 16 ERRORS AFFECTING 12 LINES
--------------------------------------------------------------------------------
9 | ERROR | [x] Doc comment short description must end with a full stop
34 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
34 | ERROR | [x] Whitespace found at end of line
66 | ERROR | [x] Functions must not contain multiple empty lines in a row;
| | found 2 empty lines
75 | ERROR | [x] Functions must not contain multiple empty lines in a row;
| | found 5 empty lines
77 | ERROR | [ ] More than 2 empty lines are not allowed
78 | ERROR | [ ] More than 2 empty lines are not allowed
79 | ERROR | [ ] More than 2 empty lines are not allowed
88 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
88 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
89 | ERROR | [x] Object operator not indented correctly; expected 3 spaces but
| | found 6
96 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
96 | ERROR | [x] Whitespace found at end of line
97 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
97 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
98 | ERROR | [x] Whitespace found at end of line
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/learneractivities/src/Entity/LinkedInEntity.php
--------------------------------------------------------------------------------
FOUND 214 ERRORS AFFECTING 106 LINES
--------------------------------------------------------------------------------
7 | ERROR | [x] There must be one blank line after the last USE statement; 3
| | found;
10 | ERROR | [ ] More than 2 empty lines are not allowed
13 | ERROR | [x] Whitespace found at end of line
14 | ERROR | [x] Doc comment star missing
15 | ERROR | [x] Doc comment star missing
16 | ERROR | [x] Doc comment star missing
17 | ERROR | [x] Doc comment star missing
18 | ERROR | [x] Doc comment star missing
19 | ERROR | [x] Doc comment star missing
20 | ERROR | [x] Doc comment star missing
21 | ERROR | [x] Doc comment star missing
22 | ERROR | [x] Doc comment star missing
23 | ERROR | [x] Doc comment star missing
24 | ERROR | [x] Doc comment star missing
24 | ERROR | [x] Doc comment short description must end with a full stop
24 | ERROR | [ ] Doc comment short description must be on a single line,
| | further text should be a separate paragraph
25 | ERROR | [x] There must be exactly one blank line before the tags in a
| | doc comment
40 | ERROR | [x] There must be exactly one newline after the class comment
41 | ERROR | [x] Whitespace found at end of line
42 | ERROR | [x] Whitespace found at end of line
43 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
44 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
44 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
44 | ERROR | [x] Missing function doc comment
44 | ERROR | [x] Expected 1 blank line before function; 0 found
45 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
45 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
45 | ERROR | [x] Whitespace found at end of line
47 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
47 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
48 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
48 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
49 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
49 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
50 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
50 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
51 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
51 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
51 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
52 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
52 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
52 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
53 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
55 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
55 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
56 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
56 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
57 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
57 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
58 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
58 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
59 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
59 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
59 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
60 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
60 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
60 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
61 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
62 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
62 | ERROR | [x] Whitespace found at end of line
62 | ERROR | [x] Functions must not contain multiple empty lines in a row;
| | found 2 empty lines
63 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
63 | ERROR | [x] Whitespace found at end of line
64 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
64 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
65 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
65 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
66 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
66 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
67 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
67 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
68 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
68 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
68 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
69 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
69 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
69 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
70 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
70 | ERROR | [x] Whitespace found at end of line
72 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
73 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
73 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
73 | ERROR | [x] Object operator not indented correctly; expected 10 spaces
| | but found 4
74 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
74 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
75 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
75 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
76 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
76 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
76 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
77 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
77 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
77 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
78 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
78 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
78 | ERROR | [x] Whitespace found at end of line
79 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
79 | ERROR | [x] Whitespace found at end of line
79 | ERROR | [x] Functions must not contain multiple empty lines in a row;
| | found 2 empty lines
80 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
80 | ERROR | [x] Whitespace found at end of line
81 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
81 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
82 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
82 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
83 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
83 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
84 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
84 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
85 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
85 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
85 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
86 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
86 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
86 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
87 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
87 | ERROR | [x] Whitespace found at end of line
88 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
88 | ERROR | [x] Whitespace found at end of line
88 | ERROR | [x] Functions must not contain multiple empty lines in a row;
| | found 3 empty lines
89 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
89 | ERROR | [x] Whitespace found at end of line
90 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
90 | ERROR | [x] Whitespace found at end of line
91 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
91 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
92 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
92 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
93 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
93 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
94 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
94 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
95 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
95 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
95 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
96 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
96 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
96 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
97 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
99 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
100 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
100 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
100 | ERROR | [x] Object operator not indented correctly; expected 10 spaces
| | but found 4
101 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
101 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
102 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
102 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
103 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
103 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
103 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
104 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
104 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
104 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
105 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
105 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
105 | ERROR | [x] Whitespace found at end of line
107 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
108 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
108 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
108 | ERROR | [x] Object operator not indented correctly; expected 10 spaces
| | but found 4
109 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
109 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
110 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
110 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
111 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
111 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
111 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
112 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
112 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
112 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
113 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
113 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
113 | ERROR | [x] Whitespace found at end of line
114 | ERROR | [x] Functions must not contain multiple empty lines in a row;
| | found 2 empty lines
116 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
116 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
117 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
117 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
118 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
118 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
119 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
119 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
120 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
120 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
120 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
121 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
121 | ERROR | [x] Line indented incorrectly; expected at least 4 spaces, found
| | 3
121 | ERROR | [x] Array indentation error, expected 6 spaces but found 3
122 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
123 | ERROR | [x] Functions must not contain multiple empty lines in a row;
| | found 6 empty lines
125 | ERROR | [ ] More than 2 empty lines are not allowed
126 | ERROR | [ ] More than 2 empty lines are not allowed
127 | ERROR | [ ] More than 2 empty lines are not allowed
128 | ERROR | [ ] More than 2 empty lines are not allowed
129 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
129 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
130 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
130 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
131 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
131 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
133 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
133 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
134 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
134 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
135 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
135 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
137 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
137 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
138 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
138 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
138 | ERROR | [x] Expected 1 blank line after function; 0 found
139 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
139 | ERROR | [x] Expected 1 newline at end of file; 0 found
139 | ERROR | [x] The closing brace for the class must have an empty line
| | before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 208 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...www/html/vb/d_cont/learneractivities/src/Services/GetLearnerActivities.php
--------------------------------------------------------------------------------
FOUND 302 ERRORS AND 7 WARNINGS AFFECTING 132 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank
| | line
2 | ERROR | [x] There must be one blank line after the namespace
| | declaration
2 | ERROR | [x] There must be exactly one space after the namepace keyword
5 | ERROR | [x] There must be one blank line after the last USE statement;
| | 2 found;
8 | ERROR | [ ] Missing short description in doc comment
9 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
10 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
11 | ERROR | [x] Additional blank lines found at end of doc comment
11 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
11 | ERROR | [x] There must be exactly one newline after the class comment
13 | ERROR | [x] Whitespace found at end of line
15 | ERROR | [x] Whitespace found at end of line
22 | ERROR | [x] Whitespace found at end of line
23 | ERROR | [x] Whitespace found at end of line
27 | ERROR | [x] Expected 1 blank line before function; 2 found
29 | ERROR | [x] Functions must not contain multiple empty lines in a row;
| | found 2 empty lines
33 | ERROR | [ ] Public method name
| | "GetLearnerActivities::GetLearnerActivities" is not in
| | lowerCamel format
33 | ERROR | [x] Missing function doc comment
33 | ERROR | [x] Expected 1 space before opening brace; found 0
34 | ERROR | [x] Whitespace found at end of line
35 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
35 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
35 | ERROR | [x] Whitespace found at end of line
36 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
36 | ERROR | [x] Whitespace found at end of line
36 | ERROR | [x] Functions must not contain multiple empty lines in a row;
| | found 2 empty lines
38 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
38 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
39 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
39 | WARNING | [ ] Line exceeds 80 characters; contains 114 characters
39 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
40 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
40 | ERROR | [x] Doc comment star missing
41 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
41 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
41 | ERROR | [x] Whitespace found at end of line
42 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
43 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
43 | ERROR | [x] Whitespace found at end of line
44 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
44 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
44 | ERROR | [x] No space found before comment text; expected "// get the
| | configuration" but found "//get the configuration"
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] Spaces must be used to indent lines; tabs are not allowed
45 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
46 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
46 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
47 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
47 | ERROR | [x] Whitespace found at end of line
48 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
48 | WARNING | [x] There must be no blank line following an inline comment
48 | WARNING | [ ] There must be no blank line following an inline comment
48 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
48 | ERROR | [x] No space found before comment text; expected "// prepare
| | the URL" but found "//prepare the URL"
48 | ERROR | [x] Inline comments must start with a capital letter
48 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
49 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
49 | ERROR | [x] Whitespace found at end of line
49 | ERROR | [x] Functions must not contain multiple empty lines in a row;
| | found 3 empty lines
51 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
51 | ERROR | [x] Whitespace found at end of line
52 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
52 | WARNING | [x] There must be no blank line following an inline comment
52 | WARNING | [ ] There must be no blank line following an inline comment
52 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
52 | ERROR | [x] No space found before comment text; expected "// Create
| | queue to reduce load on the CPU" but found "//Create queue
| | to reduce load on the CPU"
52 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
52 | ERROR | [x] Whitespace found at end of line
53 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
53 | ERROR | [x] Whitespace found at end of line
54 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
54 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
55 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
55 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
55 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
55 | ERROR | [x] No space found before comment text; expected "// Consider
| | only last to last day due to delay in report availability
| | on LinkedIn side." but found "//Consider only last to last
| | day due to delay in report availability on LinkedIn side."
56 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
56 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
56 | ERROR | [x] Expected 1 space before "*"; 0 found
57 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
57 | ERROR | [x] Whitespace found at end of line
58 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
58 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
58 | ERROR | [x] Concat operator must be surrounded by a single space
59 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
59 | ERROR | [x] Whitespace found at end of line
60 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
60 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
60 | ERROR | [x] Whitespace found at end of line
62 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
62 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
62 | ERROR | [x] Concat operator must be surrounded by a single space
62 | ERROR | [x] Concat operator must be surrounded by a single space
62 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
62 | ERROR | [x] Whitespace found at end of line
63 | ERROR | [x] Functions must not contain multiple empty lines in a row;
| | found 2 empty lines
65 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
65 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
66 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
66 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
67 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
67 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
67 | ERROR | [x] Short array syntax must be used to define arrays
67 | ERROR | [ ] The array declaration extends to column 121 (the limit is
| | 80). The array content should be split up over multiple
| | lines
68 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
68 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
69 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
69 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
70 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
70 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
71 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
71 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
71 | WARNING | [ ] Potential security problem: SSL peer verification must not
| | be disabled
72 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
72 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
73 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
73 | ERROR | [x] Whitespace found at end of line
74 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
74 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
75 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
75 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
76 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
76 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
77 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
77 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 3
77 | ERROR | [x] No space found before comment text; expected "// Result
| | rows exists." but found "//Result rows exists."
78 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
78 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 3
78 | ERROR | [x] Expected 1 space after IF keyword; 0 found
79 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
79 | ERROR | [x] Whitespace found at end of line
80 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
80 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 5
81 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
81 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
81 | ERROR | [x] Whitespace found at end of line
82 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
82 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
83 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
83 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 6
84 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
84 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
85 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
85 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
86 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
86 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 6
87 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
87 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
88 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
88 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
89 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
89 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 6
90 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
90 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
91 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
91 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
92 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
92 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 6
93 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
93 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
94 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
94 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
95 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
95 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 6
95 | ERROR | [x] Space found before semicolon; expected "email;" but found
| | "email ;"
96 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
96 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
97 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
97 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
98 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
98 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 6
98 | ERROR | [x] Expected one space after the comma, 0 found
99 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
99 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
100 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
100 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
101 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
101 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 6
102 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
102 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
103 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
103 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
104 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
104 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 6
105 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
105 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
106 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
106 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
107 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
107 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 6
107 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
107 | ERROR | [x] Whitespace found at end of line
108 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
108 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
109 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
109 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
110 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
110 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 6
111 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
111 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
112 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
112 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
113 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
113 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 6
113 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
113 | ERROR | [x] Whitespace found at end of line
114 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
114 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
115 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
115 | ERROR | [x] Whitespace found at end of line
116 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
116 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
117 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
117 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
117 | ERROR | [x] Expected 1 space after "="; 3 found
118 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
118 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
118 | ERROR | [x] Expected 1 space after "="; 3 found
119 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
119 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
120 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
120 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
120 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
120 | ERROR | [x] Whitespace found at end of line
121 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
121 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 6
122 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
122 | ERROR | [x] Whitespace found at end of line
123 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
123 | ERROR | [x] Line indented incorrectly; expected 16 spaces, found 7
124 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
124 | ERROR | [x] Line indented incorrectly; expected 18 spaces, found 8
125 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
125 | ERROR | [x] Line indented incorrectly; expected 18 spaces, found 8
125 | ERROR | [x] Expected 1 space after "="; 3 found
125 | ERROR | [x] Expected 1 space before "/"; 0 found
125 | ERROR | [x] Expected 1 space after "/"; 0 found
126 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
126 | ERROR | [x] Line indented incorrectly; expected 18 spaces, found 8
126 | ERROR | [x] Expected 1 space after "="; 2 found
126 | ERROR | [x] Expected 1 space before "/"; 0 found
126 | ERROR | [x] Expected 1 space after "/"; 0 found
127 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
127 | ERROR | [x] Line indented incorrectly; expected 16 spaces, found 7
128 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
128 | ERROR | [x] Line indented incorrectly; expected 16 spaces, found 7
129 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
129 | ERROR | [x] Line indented incorrectly; expected 18 spaces, found 8
130 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
130 | ERROR | [x] Line indented incorrectly; expected 16 spaces, found 7
131 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
131 | ERROR | [x] Line indented incorrectly; expected 14 spaces, found 6
131 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
131 | ERROR | [x] Whitespace found at end of line
132 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
132 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
133 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
133 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
134 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
134 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 5
135 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
135 | ERROR | [x] Whitespace found at end of line
136 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
136 | ERROR | [x] Line indented incorrectly; expected 10 spaces, found 4
136 | ERROR | [x] Closing brace indented incorrectly; expected 5 spaces,
| | found 4
137 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
137 | ERROR | [x] Whitespace found at end of line
137 | ERROR | [x] Functions must not contain multiple empty lines in a row;
| | found 3 empty lines
138 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
138 | ERROR | [x] Whitespace found at end of line
139 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
139 | ERROR | [x] Whitespace found at end of line
140 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
140 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 3
141 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
141 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
143 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
143 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
144 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
144 | ERROR | [x] Whitespace found at end of line
145 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
145 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
146 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
146 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 2
146 | ERROR | [x] Whitespace found at end of line
147 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
147 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
148 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
148 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 1
148 | ERROR | [x] Whitespace found at end of line
149 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
149 | ERROR | [x] Whitespace found at end of line
149 | ERROR | [x] Functions must not contain multiple empty lines in a row;
| | found 7 empty lines
150 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
150 | ERROR | [x] Whitespace found at end of line
151 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
151 | ERROR | [x] Whitespace found at end of line
152 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
152 | ERROR | [x] Whitespace found at end of line
153 | ERROR | [x] Whitespace found at end of line
155 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
155 | ERROR | [x] Whitespace found at end of line
156 | ERROR | [x] Expected 1 blank line after function; 3 found
157 | ERROR | [x] Whitespace found at end of line
158 | ERROR | [x] Whitespace found at end of line
159 | ERROR | [x] Whitespace found at end of line
160 | ERROR | [x] Expected 1 newline at end of file; 0 found
160 | ERROR | [x] The closing brace for the class must have an empty line
| | before it
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 301 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: /var/www/html/vb/d_cont/learneractivities/src/Services/GetToken.php
--------------------------------------------------------------------------------
FOUND 102 ERRORS AND 3 WARNINGS AFFECTING 50 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
2 | ERROR | [x] There must be exactly one space after the namepace keyword
4 | ERROR | [ ] Missing short description in doc comment
5 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
6 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
7 | ERROR | [x] Additional blank lines found at end of doc comment
7 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
7 | ERROR | [x] There must be exactly one newline after the class comment
10 | ERROR | [x] Whitespace found at end of line
12 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
12 | ERROR | [x] Whitespace found at end of line
13 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
13 | ERROR | [ ] Public method name "GetToken::GetToken" is not in
| | lowerCamel format
13 | ERROR | [x] Missing function doc comment
13 | ERROR | [ ] PHP4 style constructors are not allowed; use
| | "__construct()" instead
13 | ERROR | [x] Expected 1 blank line before function; 3 found
13 | ERROR | [x] Expected 1 space before opening brace; found 0
14 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
14 | ERROR | [x] Whitespace found at end of line
15 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
15 | WARNING | [x] There must be no blank line following an inline comment
15 | WARNING | [ ] There must be no blank line following an inline comment
15 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
15 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
16 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
16 | ERROR | [x] Whitespace found at end of line
17 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
17 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
18 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
18 | ERROR | [x] Whitespace found at end of line
19 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
19 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
19 | ERROR | [x] No space found before comment text; expected "// read the
| | configuration" but found "//read the configuration"
19 | ERROR | [x] Inline comments must start with a capital letter
20 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
20 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
20 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
21 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
21 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
21 | ERROR | [x] Expected 1 space after IF keyword; 0 found
21 | ERROR | [x] There should be no white space before a closing ")"
21 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
22 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
22 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
23 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
23 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
24 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
24 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
25 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
25 | ERROR | [x] Whitespace found at end of line
26 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
26 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
27 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
27 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
28 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
28 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
29 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
29 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
30 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
30 | ERROR | [x] Whitespace found at end of line
31 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
32 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
32 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
32 | ERROR | [x] No space found before comment text; expected "// Open
| | connection" but found "//Open connection"
32 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
33 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
34 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
34 | ERROR | [x] No space found before comment text; expected "// Set the
| | url, POST data" but found "//Set the url, POST data"
34 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
35 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
36 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
37 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
38 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
39 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
40 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
41 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
41 | WARNING | [ ] Potential security problem: SSL peer verification must not
| | be disabled
42 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
43 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
43 | ERROR | [x] Whitespace found at end of line
44 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
44 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
45 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
45 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
46 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
46 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
47 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
47 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
48 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
48 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
48 | ERROR | [x] Closing brace indented incorrectly; expected 2 spaces,
| | found 3
49 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
49 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
50 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
50 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 5
51 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
51 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 3
52 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
52 | ERROR | [x] No space found before comment text; expected "// Close
| | connection" but found "//Close connection"
52 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
53 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
53 | ERROR | [x] Whitespace found at end of line
54 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
55 | ERROR | [x] Whitespace found at end of line
56 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 100 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ont/learneractivities/src/Plugin/QueueWorker/LilLearnerActivitiesQueue.php
--------------------------------------------------------------------------------
FOUND 135 ERRORS AND 8 WARNINGS AFFECTING 52 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
4 | ERROR | [x] There must be one blank line after the namespace
| | declaration
21 | ERROR | [x] There must be exactly one newline after the class comment
22 | ERROR | [x] Whitespace found at end of line
23 | ERROR | [x] Whitespace found at end of line
24 | ERROR | [x] Whitespace found at end of line
25 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
26 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
26 | ERROR | [x] Whitespace found at end of line
27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
28 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
28 | ERROR | [x] Expected 5 space(s) before asterisk; 1 found
29 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
29 | ERROR | [x] Expected 5 space(s) before asterisk; 1 found
30 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
31 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
31 | WARNING | [x] There must be no blank line following an inline comment
31 | WARNING | [ ] There must be no blank line following an inline comment
31 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
31 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
32 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
32 | ERROR | [x] Whitespace found at end of line
32 | ERROR | [x] Functions must not contain multiple empty lines in a row;
| | found 2 empty lines
33 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
33 | ERROR | [x] Whitespace found at end of line
34 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
34 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
34 | ERROR | [x] No space found before comment text; expected "// check the
| | combination of external id along with course_id" but found
| | "//check the combination of external id along with
| | course_id"
34 | ERROR | [x] Inline comments must start with a capital letter
35 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
35 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
35 | ERROR | [x] No space found before comment text; expected "// if exist
| | update status, changed" but found "//if exist update
| | status, changed"
36 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
36 | WARNING | [x] There must be no blank line following an inline comment
36 | WARNING | [ ] There must be no blank line following an inline comment
36 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
36 | ERROR | [x] No space found before comment text; expected "// else
| | create new entry" but found "//else create new entry"
36 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
37 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
37 | ERROR | [x] Whitespace found at end of line
38 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
38 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
39 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
39 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
40 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
40 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
41 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
41 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
42 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
42 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
42 | WARNING | [x] There must be no blank line following an inline comment
42 | WARNING | [ ] There must be no blank line following an inline comment
42 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
42 | ERROR | [x] No space found before comment text; expected "//
| | \Drupal::logger('learneractivities')->error('Second
| | Service' . json_encode($entity_id));" but found
| | "//\Drupal::logger('learneractivities')->error('Second
| | Service' . json_encode($entity_id));"
42 | ERROR | [x] Whitespace found at end of line
44 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
44 | WARNING | [ ] Line exceeds 80 characters; contains 91 characters
44 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
44 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
45 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
45 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
45 | ERROR | [x] Expected 1 space after IF keyword; 0 found
45 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
46 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
46 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
46 | ERROR | [x] No space found before comment text; expected "// get the
| | entity id" but found "//get the entity id"
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] Spaces must be used to indent lines; tabs are not allowed
47 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
48 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
48 | ERROR | [x] Whitespace found at end of line
49 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
49 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
49 | ERROR | [x] No space found before comment text; expected "// load the
| | entity by entity_id" but found "//load the entity by
| | entity_id"
49 | ERROR | [x] Inline comments must start with a capital letter
49 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
50 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
50 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
51 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
51 | ERROR | [x] Whitespace found at end of line
51 | ERROR | [x] Functions must not contain multiple empty lines in a row;
| | found 2 empty lines
53 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
53 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
53 | ERROR | [x] No space found before comment text; expected "// update"
| | but found "//update"
53 | ERROR | [x] Inline comments must start with a capital letter
53 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
54 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
54 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
55 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
56 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
56 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
57 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 12
58 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
58 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
59 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
59 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
60 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
60 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
60 | ERROR | [x] No space found before comment text; expected "// create"
| | but found "//create"
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] Spaces must be used to indent lines; tabs are not allowed
61 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3
62 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
62 | ERROR | [x] Line indented incorrectly; expected at least 6 spaces,
| | found 4
62 | ERROR | [x] The first index in a multi-value array must be on a new
| | line
62 | ERROR | [x] Each index in a multi-line array must be on a new line
62 | ERROR | [x] Each index in a multi-line array must be on a new line
63 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
63 | ERROR | [x] Line indented incorrectly; expected at least 6 spaces,
| | found 5
63 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
63 | ERROR | [x] Each index in a multi-line array must be on a new line
63 | ERROR | [x] Each index in a multi-line array must be on a new line
64 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
64 | ERROR | [x] Line indented incorrectly; expected at least 6 spaces,
| | found 5
64 | ERROR | [x] Array indentation error, expected 6 spaces but found 5
64 | ERROR | [x] Each index in a multi-line array must be on a new line
64 | ERROR | [x] Each index in a multi-line array must be on a new line
64 | ERROR | [x] Each index in a multi-line array must be on a new line
64 | ERROR | [x] Each index in a multi-line array must be on a new line
64 | ERROR | [x] Each index in a multi-line array must be on a new line
64 | ERROR | [x] Closing parenthesis of array declaration must be on a new
| | line
66 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
66 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 3
67 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
67 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 2
68 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
68 | ERROR | [x] Whitespace found at end of line
68 | ERROR | [x] Functions must not contain multiple empty lines in a row;
| | found 4 empty lines
69 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
69 | ERROR | [x] Whitespace found at end of line
71 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
71 | ERROR | [x] Whitespace found at end of line
72 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
72 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
72 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
72 | ERROR | [x] Whitespace found at end of line
73 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
73 | ERROR | [x] Whitespace found at end of line
74 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 1
74 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 138 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 125ms; Memory: 10MB

Steps to reproduce

Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig learneractivities/

Remaining tasks

Patch review

📌 Task
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India urvashi_vora Madhya Pradesh, India

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

  • Issue created by @urvashi_vora
  • Hii, @urvashi_vora thanks for the patch

    These are the steps I followed:

    1. Took clone from git version in drupal 10.1.x

    2. Ran this command:

    ./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig modules/contrib/learneractivities/

    3. Applied your patch and, again ran phpcs command

    found errors.

    4. I created a patch and solved the remaining errors and

    again check with phpcs command found no errors.

    Please Review.

  • Status changed to RTBC 6 months ago
  • 🇮🇳India Ashutosh Ahirwal India

    I have applied provided patch of #2 and it get applied cleanly.
    Moving to RTBC.

Production build 0.69.0 2024