You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FILE: /Users/thejimbirch/Sites/xeno-dashboard/Gruntfile.js
----------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------
1 | ERROR | [ ] Missing file doc comment
5 | ERROR | [ ] Inline comments must end in full-stops, exclamation
| | marks, or question marks
51 | ERROR | [x] Tabs must be used to indent lines; spaces are not
| | allowed
51 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
51 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: /Users/thejimbirch/Sites/xeno-dashboard/includes/admin.php
----------------------------------------------------------------------
FOUND 73 ERRORS AND 12 WARNINGS AFFECTING 39 LINES
----------------------------------------------------------------------
1 | ERROR | [ ] Class file names should be based on the class
| | name with "class-" prepended. Expected
| | class-xeno-dashboard-admin.php, but found
| | admin.php.
21 | ERROR | [ ] Function name "create_Xeno_Dashboard_Admin" is
| | not in snake case format, try
| | "create_xeno_dashboard_admin"
21 | ERROR | [x] Space between function name and opening
| | parenthesis is prohibited.
23 | ERROR | [x] Parenthesis should always be used when
| | instantiating a new object.
33 | ERROR | [x] Whitespace found at end of line
92 | ERROR | [ ] Missing function doc comment
93 | ERROR | [ ] Missing function doc comment
98 | ERROR | [ ] Missing parameter name
104 | ERROR | [x] Additional blank lines found at end of doc
| | comment
112 | ERROR | [ ] Missing parameter name
125 | ERROR | [ ] Missing parameter name
150 | ERROR | [ ] Missing parameter name
168 | ERROR | [x] Space after opening control structure is
| | required
168 | ERROR | [x] No space before opening parenthesis is
| | prohibited
168 | ERROR | [x] No space after opening parenthesis is prohibited
168 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
168 | ERROR | [x] Expected 1 space before "=>"; 0 found
168 | ERROR | [x] Expected 1 space after "=>"; 0 found
168 | ERROR | [x] No space before closing parenthesis is
| | prohibited
169 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
169 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
171 | ERROR | [ ] Expected next thing to be an escaping function
| | (see Codex for 'Data Validation'), not 'ltrim'
171 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
171 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
172 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
172 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
172 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
172 | ERROR | [ ] Expected next thing to be an escaping function
| | (see Codex for 'Data Validation'), not '$o'
172 | ERROR | [x] Expected 1 space before closing PHP tag; 0 found
181 | ERROR | [ ] Missing parameter name
200 | ERROR | [x] Space after opening control structure is
| | required
200 | ERROR | [x] No space before opening parenthesis is
| | prohibited
200 | ERROR | [x] No space after opening parenthesis is prohibited
200 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
200 | ERROR | [x] Expected 1 space before "=>"; 0 found
200 | ERROR | [x] Expected 1 space after "=>"; 0 found
200 | ERROR | [x] No space before closing parenthesis is
| | prohibited
201 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
201 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
203 | ERROR | [ ] Expected next thing to be an escaping function
| | (see Codex for 'Data Validation'), not 'ltrim'
203 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
203 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
204 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
204 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
204 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
204 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
204 | ERROR | [ ] Expected next thing to be an escaping function
| | (see Codex for 'Data Validation'), not '$o'
204 | ERROR | [x] Expected 1 space before closing PHP tag; 0 found
213 | ERROR | [ ] Missing parameter name
229 | ERROR | [x] Space after opening control structure is
| | required
229 | ERROR | [x] No space before opening parenthesis is
| | prohibited
229 | ERROR | [x] No space after opening parenthesis is prohibited
229 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
229 | ERROR | [x] Expected 1 space before "=>"; 0 found
229 | ERROR | [x] Expected 1 space after "=>"; 0 found
229 | ERROR | [x] No space before closing parenthesis is
| | prohibited
230 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
230 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
232 | ERROR | [ ] Expected next thing to be an escaping function
| | (see Codex for 'Data Validation'), not 'ltrim'
232 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
232 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
233 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
233 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
233 | ERROR | [ ] Expected next thing to be an escaping function
| | (see Codex for 'Data Validation'), not '$o'
233 | ERROR | [x] Expected 1 space before closing PHP tag; 0 found
253 | WARNING | [ ] Detected access of super global var $_REQUEST,
| | probably needs manual inspection.
253 | WARNING | [ ] Processing form data without nonce verification.
253 | WARNING | [ ] Detected access of super global var $_REQUEST,
| | probably needs manual inspection.
253 | ERROR | [ ] Missing wp_unslash() before sanitization.
253 | ERROR | [ ] Detected usage of a non-sanitized input
| | variable: $_REQUEST
255 | ERROR | [ ] Expected next thing to be an escaping function
| | (see Codex for 'Data Validation'), not '__'
259 | ERROR | [ ] Expected next thing to be an escaping function
| | (see Codex for 'Data Validation'), not '__'
264 | ERROR | [ ] Expected next thing to be an escaping function
| | (see Codex for 'Data Validation'), not '__'
289 | ERROR | [x] No space before closing parenthesis is
| | prohibited
290 | ERROR | [x] Whitespace found at end of line
291 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
292 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
292 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
301 | ERROR | [ ] Missing parameter name
310 | ERROR | [ ] Expected next thing to be an escaping function
| | (see Codex for 'Data Validation'), not '__'
326 | ERROR | [ ] Missing function doc comment
328 | ERROR | [x] Whitespace found at end of line
329 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
329 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
331 | ERROR | [x] File must end with a newline character
----------------------------------------------------------------------
PHPCBF CAN FIX THE 49 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: /Users/thejimbirch/Sites/xeno-dashboard/includes/jira.php
----------------------------------------------------------------------
FOUND 85 ERRORS AND 17 WARNINGS AFFECTING 67 LINES
----------------------------------------------------------------------
1 | ERROR | [ ] Class file names should be based on the class
| | name with "class-" prepended. Expected
| | class-xeno-dashboard-jira.php, but found
| | jira.php.
13 | ERROR | [ ] Function name "create_Xeno_Dashboard_Jira" is
| | not in snake case format, try
| | "create_xeno_dashboard_jira"
13 | ERROR | [ ] Missing function doc comment
13 | ERROR | [x] Expected 1 space before opening brace; found 0
20 | ERROR | [ ] There must be no blank lines after the class
| | comment
26 | ERROR | [x] There must be exactly one blank line before the
| | tags in a doc comment
28 | ERROR | [ ] Missing @var tag in member variable comment
33 | ERROR | [x] There must be exactly one blank line before the
| | tags in a doc comment
35 | ERROR | [ ] Missing @var tag in member variable comment
42 | ERROR | [x] There must be exactly one blank line before the
| | tags in a doc comment
42 | ERROR | [ ] Missing parameter name
49 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
49 | ERROR | [ ] Assignments must be the first block of code on a
| | line
49 | ERROR | [ ] Assignments must be the first block of code on a
| | line
53 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
53 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
54 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
54 | ERROR | [ ] Assignments must be the first block of code on a
| | line
54 | ERROR | [ ] Assignments must be the first block of code on a
| | line
55 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
55 | ERROR | [ ] Assignments must be the first block of code on a
| | line
55 | ERROR | [ ] Assignments must be the first block of code on a
| | line
56 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
56 | ERROR | [ ] Assignments must be the first block of code on a
| | line
56 | ERROR | [ ] Assignments must be the first block of code on a
| | line
57 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
57 | ERROR | [ ] Assignments must be the first block of code on a
| | line
57 | ERROR | [ ] Assignments must be the first block of code on a
| | line
58 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
58 | ERROR | [ ] Assignments must be the first block of code on a
| | line
58 | ERROR | [ ] Assignments must be the first block of code on a
| | line
59 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
59 | ERROR | [ ] Assignments must be the first block of code on a
| | line
59 | ERROR | [ ] Assignments must be the first block of code on a
| | line
62 | ERROR | [x] Missing space before array closer.
65 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
65 | ERROR | [x] Space after opening control structure is
| | required
65 | ERROR | [x] No space before opening parenthesis is
| | prohibited
65 | ERROR | [x] Expected 1 space after IF keyword; 0 found
66 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
67 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
74 | ERROR | [ ] Missing parameter name
79 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
79 | ERROR | [ ] Assignments must be the first block of code on a
| | line
79 | ERROR | [ ] Assignments must be the first block of code on a
| | line
82 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
88 | ERROR | [ ] Assignments must be the first block of code on a
| | line
94 | ERROR | [ ] Missing parameter name
105 | ERROR | [ ] Variable "Xeno_Dashboard_Updates" is not in
| | valid snake_case format
108 | ERROR | [ ] Variable "Xeno_Dashboard_Updates" is not in
| | valid snake_case format
110 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
111 | ERROR | [ ] Variable "Xeno_Dashboard_Updates" is not in
| | valid snake_case format
114 | ERROR | [ ] Variable "Xeno_Dashboard_Updates" is not in
| | valid snake_case format
119 | ERROR | [x] Space after opening control structure is
| | required
119 | ERROR | [x] No space before opening parenthesis is
| | prohibited
119 | ERROR | [x] No space after opening parenthesis is prohibited
119 | ERROR | [x] Expected 1 space after FOREACH keyword; 0 found
119 | ERROR | [x] No space before closing parenthesis is
| | prohibited
121 | ERROR | [x] String "up to date" does not require double
| | quotes; use single quotes instead
122 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
122 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
123 | ERROR | [x] Line indented incorrectly; expected 3 tabs,
| | found 4
133 | ERROR | [x] Line indented incorrectly; expected 4 tabs,
| | found 5
133 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
135 | ERROR | [x] Line indented incorrectly; expected 4 tabs,
| | found 5
136 | ERROR | [x] Line indented incorrectly; expected 3 tabs,
| | found 4
136 | ERROR | [x] Blank line found after control structure
143 | ERROR | [ ] Doc comment for parameter "$string" missing
146 | ERROR | [ ] Missing parameter name
152 | WARNING | [ ] json_encode() is discouraged. Use
| | wp_json_encode() instead.
156 | ERROR | [x] Multi-line function call not indented correctly;
| | expected 16 spaces but found 20
157 | ERROR | [x] Multi-line function call not indented correctly;
| | expected 12 spaces but found 16
165 | ERROR | [ ] Superfluous parameter comment
166 | ERROR | [x] Spaces must be used for mid-line alignment; tabs
| | are not allowed
187 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
187 | ERROR | [x] Expected 1 space after "=="; 2 found
216 | WARNING | [ ] json_encode() is discouraged. Use
| | wp_json_encode() instead.
236 | ERROR | [ ] Doc comment for parameter "$url" missing
236 | ERROR | [ ] Doc comment for parameter "$data" missing
237 | ERROR | [ ] Doc comment short description must start with a
| | capital letter
240 | ERROR | [ ] Missing parameter name
241 | ERROR | [ ] Missing parameter name
246 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
247 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
248 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
249 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
250 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
251 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
252 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
252 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected
| | "true" but found "TRUE"
253 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
253 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected
| | "false" but found "FALSE"
254 | WARNING | [ ] This comment is 50% valid code; is this
| | commented out code?
254 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
255 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
256 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
264 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
265 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
273 | ERROR | [ ] Missing parameter name
277 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
284 | ERROR | [ ] Missing parameter name
288 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
----------------------------------------------------------------------
PHPCBF CAN FIX THE 42 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: /Users/thejimbirch/Sites/xeno-dashboard/includes/rest.php
----------------------------------------------------------------------
FOUND 112 ERRORS AND 17 WARNINGS AFFECTING 89 LINES
----------------------------------------------------------------------
1 | ERROR | [ ] Class file names should be based on the class
| | name with "class-" prepended. Expected
| | class-xeno-dasboard-rest-controller.php, but
| | found rest.php.
1 | ERROR | [x] Whitespace found at end of line
12 | ERROR | [x] Line indented incorrectly; expected at least 1
| | tabs, found 0
15 | ERROR | [ ] Function name
| | "create_Xeno_Dasboard_REST_Controller" is not in
| | snake case format, try
| | "create_xeno_dasboard_r_e_s_t_controller"
15 | ERROR | [ ] Missing function doc comment
15 | ERROR | [x] Expected 1 space before opening brace; found 0
22 | ERROR | [x] Whitespace found at end of line
29 | ERROR | [ ] Missing @var tag in member variable comment
33 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found
34 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found
35 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found
36 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found
37 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found
38 | ERROR | [x] Expected 5 space(s) before asterisk; 4 found
44 | ERROR | [ ] Missing parameter name
48 | ERROR | [x] Whitespace found at end of line
58 | ERROR | [ ] Missing parameter name
62 | ERROR | [x] Whitespace found at end of line
66 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
66 | ERROR | [ ] Assignments must be the first block of code on a
| | line
66 | ERROR | [ ] Assignments must be the first block of code on a
| | line
67 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
67 | ERROR | [ ] Assignments must be the first block of code on a
| | line
67 | ERROR | [ ] Assignments must be the first block of code on a
| | line
68 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
68 | ERROR | [ ] Assignments must be the first block of code on a
| | line
68 | ERROR | [ ] Assignments must be the first block of code on a
| | line
69 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
69 | ERROR | [ ] Assignments must be the first block of code on a
| | line
69 | ERROR | [ ] Assignments must be the first block of code on a
| | line
70 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
70 | ERROR | [ ] Assignments must be the first block of code on a
| | line
70 | ERROR | [ ] Assignments must be the first block of code on a
| | line
71 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
71 | ERROR | [ ] Assignments must be the first block of code on a
| | line
71 | ERROR | [ ] Assignments must be the first block of code on a
| | line
78 | ERROR | [ ] Missing parameter name
82 | ERROR | [x] Whitespace found at end of line
86 | ERROR | [x] Missing space before array closer.
87 | ERROR | [x] Whitespace found at end of line
87 | ERROR | [x] Functions must not contain multiple empty lines
| | in a row; found 2 empty lines
90 | ERROR | [x] Space after opening control structure is
| | required
90 | ERROR | [x] No space before opening parenthesis is
| | prohibited
90 | ERROR | [x] Expected 1 space after IF keyword; 0 found
91 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
92 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
93 | ERROR | [x] Functions must not contain multiple empty lines
| | in a row; found 2 empty lines
94 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
94 | ERROR | [x] Whitespace found at end of line
101 | ERROR | [ ] Missing parameter name
102 | ERROR | [ ] Function return type is void, but function
| | contains return statement
106 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
106 | ERROR | [ ] Assignments must be the first block of code on a
| | line
106 | ERROR | [ ] Assignments must be the first block of code on a
| | line
108 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
109 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
112 | ERROR | [x] Whitespace found at end of line
115 | ERROR | [ ] Assignments must be the first block of code on a
| | line
121 | ERROR | [ ] Missing parameter name
125 | ERROR | [x] Whitespace found at end of line
151 | ERROR | [ ] Parameter comment must end with a full stop
155 | ERROR | [x] Spaces must be used for mid-line alignment; tabs
| | are not allowed
155 | ERROR | [x] Whitespace found at end of line
158 | ERROR | [x] Whitespace found at end of line
168 | WARNING | [ ] Not using strict comparison for in_array; supply
| | true for third argument.
168 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected
| | "null" but found "NULL"
176 | ERROR | [ ] Variable "Xeno_Dashboard_Slack" is not in valid
| | snake_case format
177 | ERROR | [ ] Variable "Xeno_Dashboard_Slack" is not in valid
| | snake_case format
192 | ERROR | [ ] Missing parameter name
196 | ERROR | [x] Spaces must be used for mid-line alignment; tabs
| | are not allowed
196 | ERROR | [x] Whitespace found at end of line
200 | ERROR | [x] Spaces must be used for mid-line alignment; tabs
| | are not allowed
200 | ERROR | [x] Whitespace found at end of line
205 | ERROR | [ ] Variable "Xeno_Dashboard_Updates" is not in
| | valid snake_case format
208 | ERROR | [ ] Variable "Xeno_Dashboard_Updates" is not in
| | valid snake_case format
210 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
211 | ERROR | [ ] Variable "Xeno_Dashboard_Updates" is not in
| | valid snake_case format
214 | ERROR | [ ] Variable "Xeno_Dashboard_Updates" is not in
| | valid snake_case format
217 | ERROR | [ ] Variable "Xeno_Dashboard_Updates" is not in
| | valid snake_case format
231 | ERROR | [ ] Parameter comment must end with a full stop
235 | ERROR | [x] Spaces must be used for mid-line alignment; tabs
| | are not allowed
235 | ERROR | [x] Whitespace found at end of line
250 | ERROR | [ ] Parameter comment must end with a full stop
254 | ERROR | [x] Spaces must be used for mid-line alignment; tabs
| | are not allowed
254 | ERROR | [x] Whitespace found at end of line
262 | ERROR | [x] Whitespace found at end of line
267 | ERROR | [x] When an array uses associative keys, each value
| | should start on a new line.
271 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
274 | WARNING | [ ] urlencode() should only be used when dealing
| | with legacy applications rawurlencode() should
| | now be used instead. See
| | http://php.net/manual/en/function.rawurlencode.php
| | and http://www.faqs.org/rfcs/rfc3986.html
284 | ERROR | [x] When an array uses associative keys, each value
| | should start on a new line.
286 | ERROR | [x] Blank line found after control structure
292 | ERROR | [x] Multi-line function call not indented correctly;
| | expected 16 spaces but found 20
293 | ERROR | [x] Multi-line function call not indented correctly;
| | expected 16 spaces but found 20
294 | ERROR | [x] Multi-line function call not indented correctly;
| | expected 16 spaces but found 20
294 | ERROR | [x] When an array uses associative keys, each value
| | should start on a new line.
295 | ERROR | [x] Multi-line function call not indented correctly;
| | expected 12 spaces but found 16
302 | ERROR | [ ] Doc comment short description must start with a
| | capital letter
305 | ERROR | [ ] Missing parameter name
306 | ERROR | [ ] Missing parameter name
312 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
312 | ERROR | [x] Whitespace found at end of line
313 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
314 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
315 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
316 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
316 | ERROR | [x] String ":" does not require double quotes; use
| | single quotes instead
317 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
317 | WARNING | [ ] json_encode() is discouraged. Use
| | wp_json_encode() instead.
317 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
317 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
318 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
319 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
319 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected
| | "true" but found "TRUE"
320 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
320 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected
| | "false" but found "FALSE"
320 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
322 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
323 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
325 | WARNING | [ ] This comment is 59% valid code; is this
| | commented out code?
325 | ERROR | [x] No space found before comment text; expected "//
| | echo sprintf( 'cURL Error: %s', $ch_error );"
| | but found "//echo sprintf( 'cURL Error: %s',
| | $ch_error );"
325 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
328 | WARNING | [ ] Using cURL functions is highly discouraged. Use
| | wp_remote_get() instead.
329 | WARNING | [ ] This comment is 50% valid code; is this
| | commented out code?
329 | ERROR | [x] No space found before comment text; expected "//
| | echo "\n" . $result;" but found "//echo "\n" .
| | $result;"
329 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
337 | ERROR | [ ] Missing parameter name
341 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
349 | ERROR | [ ] Missing parameter name
353 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
----------------------------------------------------------------------
PHPCBF CAN FIX THE 66 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: /Users/thejimbirch/Sites/xeno-dashboard/includes/secure.php
----------------------------------------------------------------------
FOUND 31 ERRORS AND 2 WARNINGS AFFECTING 31 LINES
----------------------------------------------------------------------
1 | ERROR | [ ] Missing file doc comment
5 | ERROR | [ ] Missing parameter name
16 | ERROR | [ ] Assignments must be the first block of code on a
| | line
24 | ERROR | [x] Whitespace found at end of line
26 | ERROR | [x] Expected 1 space after closing parenthesis;
| | found 0
26 | ERROR | [x] Space between opening control structure and
| | closing parenthesis is required
31 | ERROR | [x] Whitespace found at end of line
32 | ERROR | [x] Whitespace found at end of line
34 | ERROR | [x] Whitespace found at end of line
37 | ERROR | [x] Whitespace found at end of line
41 | ERROR | [x] Whitespace found at end of line
42 | ERROR | [x] Whitespace found at end of line
44 | ERROR | [x] Whitespace found at end of line
46 | ERROR | [x] Whitespace found at end of line
47 | ERROR | [x] Whitespace found at end of line
54 | ERROR | [x] Whitespace found at end of line
56 | ERROR | [x] Multi-line function call not indented correctly;
| | expected 12 spaces but found 8
74 | ERROR | [x] Whitespace found at end of line
79 | ERROR | [x] Whitespace found at end of line
82 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
82 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
87 | ERROR | [ ] Assignments must be the first block of code on a
| | line
95 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
102 | ERROR | [x] Whitespace found at end of line
103 | ERROR | [x] Whitespace found at end of line
104 | ERROR | [x] Whitespace found at end of line
105 | ERROR | [x] Whitespace found at end of line
106 | ERROR | [x] Whitespace found at end of line
107 | ERROR | [x] Whitespace found at end of line
111 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
115 | ERROR | [ ] You must use "/**" style comments for a function
| | comment
116 | ERROR | [ ] Assignments must be the first block of code on a
| | line
117 | ERROR | [x] File must end with a newline character
----------------------------------------------------------------------
PHPCBF CAN FIX THE 24 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: /Users/thejimbirch/Sites/xeno-dashboard/includes/slack.php
----------------------------------------------------------------------
FOUND 50 ERRORS AND 9 WARNINGS AFFECTING 41 LINES
----------------------------------------------------------------------
1 | ERROR | [ ] Class file names should be based on the class
| | name with "class-" prepended. Expected
| | class-xeno-dashboard-slack.php, but found
| | slack.php.
6 | ERROR | [ ] Missing @package tag in file comment
10 | ERROR | [x] Line indented incorrectly; expected at least 1
| | tabs, found 0
29 | ERROR | [ ] Missing @var tag in member variable comment
35 | ERROR | [ ] Missing parameter name
42 | ERROR | [x] Whitespace found at end of line
43 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
44 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
44 | ERROR | [ ] Assignments must be the first block of code on a
| | line
44 | ERROR | [ ] Assignments must be the first block of code on a
| | line
50 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
50 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
52 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
52 | ERROR | [ ] Assignments must be the first block of code on a
| | line
52 | ERROR | [ ] Assignments must be the first block of code on a
| | line
53 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
53 | ERROR | [ ] Assignments must be the first block of code on a
| | line
53 | ERROR | [ ] Assignments must be the first block of code on a
| | line
60 | ERROR | [ ] Missing parameter name
67 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
68 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
69 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
69 | ERROR | [ ] Expected next thing to be an escaping function
| | (like esc_html_e() or esc_attr_e()), not '_e'
70 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
71 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
74 | ERROR | [ ] Doc comment for parameter "$type" missing
74 | ERROR | [ ] Doc comment for parameter "$updates_only"
| | missing
77 | ERROR | [ ] Missing parameter name
90 | ERROR | [ ] Variable "Xeno_Dashboard_Updates" is not in
| | valid snake_case format
93 | ERROR | [x] Expected 1 space after "||"; 2 found
93 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
93 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
94 | ERROR | [ ] Variable "Xeno_Dashboard_Updates" is not in
| | valid snake_case format
97 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
98 | ERROR | [x] Expected 1 space after "||"; 2 found
98 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
98 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
99 | ERROR | [ ] Variable "Xeno_Dashboard_Updates" is not in
| | valid snake_case format
103 | ERROR | [x] Expected 1 space after "||"; 2 found
103 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
103 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
104 | ERROR | [ ] Variable "Xeno_Dashboard_Updates" is not in
| | valid snake_case format
108 | ERROR | [x] There must be no blank line following an inline
| | comment
116 | ERROR | [x] String "up to date" does not require double
| | quotes; use single quotes instead
117 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
117 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
119 | ERROR | [x] Whitespace found at end of line
126 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
138 | ERROR | [ ] Doc comment for parameter "$the_fields" missing
138 | ERROR | [ ] Doc comment for parameter "$vulnerable" missing
141 | ERROR | [ ] Doc comment for parameter $args does not match
| | actual variable name $the_fields
164 | ERROR | [x] Spaces must be used for mid-line alignment; tabs
| | are not allowed
164 | ERROR | [x] Expected 1 space before ":"; 0 found
165 | ERROR | [x] Spaces must be used for mid-line alignment; tabs
| | are not allowed
177 | ERROR | [x] Expected 1 space before ":"; 0 found
181 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
206 | WARNING | [ ] json_encode() is discouraged. Use
| | wp_json_encode() instead.
220 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
236 | ERROR | [x] File must end with a newline character
----------------------------------------------------------------------
PHPCBF CAN FIX THE 25 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: /Users/thejimbirch/Sites/xeno-dashboard/includes/updates.php
----------------------------------------------------------------------
FOUND 74 ERRORS AND 6 WARNINGS AFFECTING 55 LINES
----------------------------------------------------------------------
1 | ERROR | [ ] Class file names should be based on the class
| | name with "class-" prepended. Expected
| | class-xeno-dashboard-updates.php, but found
| | updates.php.
10 | ERROR | [x] Line indented incorrectly; expected at least 1
| | tabs, found 0
23 | ERROR | [ ] Missing parameter name
35 | ERROR | [ ] Doc comment for parameter "$data" missing
35 | ERROR | [ ] Doc comment for parameter "$only_available"
| | missing
38 | ERROR | [ ] Doc comment for parameter $request does not
| | match actual variable name $data
57 | ERROR | [x] When an array uses associative keys, each value
| | should start on a new line.
67 | ERROR | [x] Spaces must be used for mid-line alignment; tabs
| | are not allowed
68 | ERROR | [x] Spaces must be used for mid-line alignment; tabs
| | are not allowed
71 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
71 | ERROR | [x] Expected 1 space after "!="; 2 found
74 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
74 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
74 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
74 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
75 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
75 | ERROR | [ ] A gettext call containing placeholders was
| | found, but was not accompanied by a
| | "translators:" comment on the line above to
| | clarify the meaning of the placeholders.
82 | ERROR | [ ] A gettext call containing placeholders was
| | found, but was not accompanied by a
| | "translators:" comment on the line above to
| | clarify the meaning of the placeholders.
91 | ERROR | [ ] Doc comment for parameter "$data" missing
91 | ERROR | [ ] Doc comment for parameter "$only_available"
| | missing
94 | ERROR | [ ] Doc comment for parameter $request does not
| | match actual variable name $data
116 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
117 | ERROR | [x] Expected 1 space before "=>"; 0 found
117 | ERROR | [x] Expected 1 space after "=>"; 0 found
118 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
125 | ERROR | [x] No space after opening parenthesis is prohibited
136 | ERROR | [x] Spaces must be used for mid-line alignment; tabs
| | are not allowed
137 | ERROR | [x] Spaces must be used for mid-line alignment; tabs
| | are not allowed
138 | ERROR | [ ] A gettext call containing placeholders was
| | found, but was not accompanied by a
| | "translators:" comment on the line above to
| | clarify the meaning of the placeholders.
146 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
149 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
159 | ERROR | [ ] A gettext call containing placeholders was
| | found, but was not accompanied by a
| | "translators:" comment on the line above to
| | clarify the meaning of the placeholders.
168 | ERROR | [ ] Doc comment for parameter "$data" missing
168 | ERROR | [ ] Doc comment for parameter "$only_available"
| | missing
168 | ERROR | [ ] Doc comment for parameter "$active_only" missing
171 | ERROR | [ ] Doc comment for parameter $request does not
| | match actual variable name $data
190 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
191 | ERROR | [x] No space after opening parenthesis is prohibited
191 | ERROR | [x] Expected 1 space before "=>"; 0 found
191 | ERROR | [x] Expected 1 space after "=>"; 0 found
191 | ERROR | [x] No space before closing parenthesis is
| | prohibited
195 | ERROR | [x] Array item not aligned correctly; expected 20
| | spaces but found 24
196 | ERROR | [x] Array item not aligned correctly; expected 20
| | spaces but found 24
197 | ERROR | [x] Array closer not aligned correctly; expected 16
| | space(s) but found 20
198 | ERROR | [x] Line indented incorrectly; expected 3 tabs,
| | found 4
201 | ERROR | [x] No space after opening parenthesis is prohibited
201 | ERROR | [x] Expected exactly one space before closing
| | parenthesis; " " found.
203 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
203 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
205 | ERROR | [x] Spaces must be used for mid-line alignment; tabs
| | are not allowed
206 | ERROR | [x] Spaces must be used for mid-line alignment; tabs
| | are not allowed
207 | ERROR | [ ] A gettext call containing placeholders was
| | found, but was not accompanied by a
| | "translators:" comment on the line above to
| | clarify the meaning of the placeholders.
216 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
219 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
219 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
223 | ERROR | [ ] A gettext call containing placeholders was
| | found, but was not accompanied by a
| | "translators:" comment on the line above to
| | clarify the meaning of the placeholders.
235 | ERROR | [ ] Parameter comment must end with a full stop
243 | ERROR | [x] Line indented incorrectly; expected at least 3
| | tabs, found 2
293 | ERROR | [ ] Parameter comment must end with a full stop
295 | ERROR | [ ] Parameter comment must end with a full stop
297 | ERROR | [ ] Parameter comment must end with a full stop
303 | ERROR | [x] No space before closing parenthesis is
| | prohibited
312 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
312 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
314 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
317 | ERROR | [x] Array keys must be surrounded by spaces unless
| | they contain a string or an integer.
321 | WARNING | [ ] wp_remote_get() is highly discouraged, please
| | use vip_safe_wp_remote_get() instead.
323 | ERROR | [x] Expected 1 space between "'sslverify'" and
| | double arrow; 0 found
323 | ERROR | [x] Expected 1 space between double arrow and
| | "false"; 0 found
323 | ERROR | [x] Expected 1 space before "=>"; 0 found
323 | ERROR | [x] Expected 1 space after "=>"; 0 found
323 | ERROR | [x] When an array uses associative keys, each value
| | should start on a new line.
336 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
345 | ERROR | [x] No space after opening parenthesis is prohibited
345 | ERROR | [ ] Use Yoda Condition checks, you must.
345 | ERROR | [x] No space before closing parenthesis is
| | prohibited
355 | ERROR | [x] Block comments must be ended with */
370 | ERROR | [x] Inline control structures are not allowed
370 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
370 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
----------------------------------------------------------------------
PHPCBF CAN FIX THE 50 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: /Users/thejimbirch/Sites/xeno-dashboard/xeno-dashboard.php
----------------------------------------------------------------------
FOUND 30 ERRORS AFFECTING 7 LINES
----------------------------------------------------------------------
30 | ERROR | [ ] Doc comment for parameter "$setting" missing
30 | ERROR | [ ] Doc comment for parameter "$denifed" missing
36 | ERROR | [x] Spaces must be used for mid-line alignment; tabs
| | are not allowed
36 | ERROR | [x] Whitespace found at end of line
49 | ERROR | [x] Expected 1 space between "'dev'" and double arrow;
| | 0 found
49 | ERROR | [x] Expected 1 space between double arrow and
| | "'#aa3333'"; 0 found
49 | ERROR | [x] Expected 1 space before "=>"; 0 found
49 | ERROR | [x] Expected 1 space after "=>"; 0 found
49 | ERROR | [x] Expected 1 space between comma and "'test'"; 0
| | found
49 | ERROR | [x] Expected 1 space between "'test'" and double arrow;
| | 0 found
49 | ERROR | [x] Expected 1 space between double arrow and
| | "'#ceaf01'"; 0 found
49 | ERROR | [x] Expected 1 space before "=>"; 0 found
49 | ERROR | [x] Expected 1 space after "=>"; 0 found
49 | ERROR | [x] Expected 1 space between comma and "'prod'"; 0
| | found
49 | ERROR | [x] Expected 1 space between "'prod'" and double arrow;
| | 0 found
49 | ERROR | [x] Expected 1 space between double arrow and "'rgb(0,
| | 0, 187)'"; 0 found
49 | ERROR | [x] Expected 1 space before "=>"; 0 found
49 | ERROR | [x] Expected 1 space after "=>"; 0 found
49 | ERROR | [x] When an array uses associative keys, each value
| | should start on a new line.
50 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found
50 | ERROR | [ ] Assignments must be the first block of code on a
| | line
50 | ERROR | [ ] Assignments must be the first block of code on a
| | line
53 | ERROR | [x] Expected 1 space before closing PHP tag; 0 found
53 | ERROR | [x] Array keys must be surrounded by spaces unless they
| | contain a string or an integer.
53 | ERROR | [ ] Expected next thing to be an escaping function (see
| | Codex for 'Data Validation'), not '$colors'
53 | ERROR | [x] Array keys must be surrounded by spaces unless they
| | contain a string or an integer.
61 | ERROR | [ ] Function name "sendTestEmail" is not in snake case
| | format, try "send_test_email"
61 | ERROR | [ ] You must use "/**" style comments for a function
| | comment
65 | ERROR | [x] Missing space after array opener.
65 | ERROR | [x] Missing space before array closer.
----------------------------------------------------------------------
PHPCBF CAN FIX THE 23 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: