Closed nielslange closed 3 years ago
@nielslange Are you able to elaborate on how you envision the refactoring?
Therefore, it's not possible to run phpcs respectively phpbf to correct the formatting automatically, as this would lead to hundreds of changes.
In case, we decide to reformat the plugin code, instead of a single PR with hundred of change files, we can split them to different PRs.
Therefore, I suggest refactoring the format of the plugin, so that the code can be formatted automatically in the future.
Yeah, I would like to know how we can achieve this "automatically" and specific steps to refactor.
@nielslange Are you able to elaborate on how you envision the refactoring?
I'd run the following command against the repo, to correct all formats:
phpcbf . --standard=WordPress --ignore="/vendor/*,/node_modules/*,/packages/*" --extensions=php -p
This will only set the indents and spacings straight, but will not apply any code changes. At the moment, the formatting is all over the place and the auto formatting option cannot be used as this would change the entire plugin files and not just the updated section.
The following logs shows all warnings and errors that are thrown by PHPCS currently:
$ phpcs . --standard=WordPress-VIP-Go --ignore="/vendor/*,/node_modules/*,/packages/*" --extensions=php -p
EEEEEEEEEEEEEEEEEE 18 / 18 (100%)
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/tests/test-author-queries.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 55 ERRORS AND 37 WARNINGS AFFECTING 87 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [ ] Class file names should be based on the class name with "class-" prepended. Expected class-test-author-queries.php, but found test-author-queries.php.
1 | ERROR | [ ] Missing file doc comment
3 | ERROR | [ ] Missing doc comment for class Test_Author_Queries
5 | ERROR | [ ] Missing doc comment for function test__author_arg__user_is_post_author_query_as_post_author()
6 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
7 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
8 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
8 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
9 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_author'" and double arrow, but found 5.
10 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_status'" and double arrow, but found 5.
11 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'post_type'" and double arrow, but found 7.
12 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
17 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
19 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
22 | ERROR | [x] Array keys must NOT be surrounded by spaces if they only contain a string or an integer.
25 | ERROR | [ ] Missing doc comment for function test__author_arg__user_is_post_author()
26 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
27 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
28 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
28 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
29 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_author'" and double arrow, but found 5.
30 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_status'" and double arrow, but found 5.
31 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'post_type'" and double arrow, but found 7.
32 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
35 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
37 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
40 | ERROR | [x] Array keys must NOT be surrounded by spaces if they only contain a string or an integer.
43 | ERROR | [ ] Missing doc comment for function test__author_name_arg__user_is_post_author()
44 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
45 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
46 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
46 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
47 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_author'" and double arrow, but found 5.
48 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_status'" and double arrow, but found 5.
49 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'post_type'" and double arrow, but found 7.
50 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
53 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
55 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
58 | ERROR | [x] Array keys must NOT be surrounded by spaces if they only contain a string or an integer.
61 | ERROR | [ ] Missing doc comment for function test__author_name_arg__user_is_coauthor()
62 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
63 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
64 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
65 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
67 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
68 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_author'" and double arrow, but found 5.
69 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_status'" and double arrow, but found 5.
70 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'post_type'" and double arrow, but found 7.
71 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
74 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
76 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
79 | ERROR | [x] Array keys must NOT be surrounded by spaces if they only contain a string or an integer.
82 | ERROR | [ ] Missing doc comment for function test__author_arg__user_is_coauthor__author_arg()
83 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
84 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
85 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
86 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
88 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
89 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_author'" and double arrow, but found 5.
90 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_status'" and double arrow, but found 5.
91 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'post_type'" and double arrow, but found 7.
92 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
95 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
97 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
100 | ERROR | [x] Array keys must NOT be surrounded by spaces if they only contain a string or an integer.
103 | ERROR | [ ] Missing doc comment for function test__author_name_arg_plus_tax_query__user_is_post_author()
104 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
105 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
106 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
106 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
107 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_author'" and double arrow, but found 5.
108 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_status'" and double arrow, but found 5.
109 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'post_type'" and double arrow, but found 7.
110 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
114 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
116 | WARNING | [x] Array double arrow not aligned correctly; expected 9 space(s) between "'tag'" and double arrow, but found 1.
117 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
120 | ERROR | [x] Array keys must NOT be surrounded by spaces if they only contain a string or an integer.
123 | ERROR | [ ] Missing doc comment for function tests__author_name_arg_plus_tax_query__is_coauthor()
124 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
125 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
126 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
127 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
129 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
130 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_author'" and double arrow, but found 5.
131 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_status'" and double arrow, but found 5.
132 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'post_type'" and double arrow, but found 7.
133 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
137 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
139 | WARNING | [x] Array double arrow not aligned correctly; expected 9 space(s) between "'tag'" and double arrow, but found 1.
140 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
143 | ERROR | [x] Array keys must NOT be surrounded by spaces if they only contain a string or an integer.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 82 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/tests/coauthorsplus-testcase.php
--------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------
1 | ERROR | Missing file doc comment
7 | ERROR | Missing doc comment for function setUp()
--------------------------------------------------------------------------------------
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/tests/test-author-queried-object.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 10 ERRORS AND 5 WARNINGS AFFECTING 14 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [ ] Class file names should be based on the class name with "class-" prepended. Expected class-test-author-queried-object.php, but found test-author-queried-object.php.
1 | ERROR | [ ] Missing file doc comment
4 | ERROR | [ ] There must be no blank lines after the class comment
15 | ERROR | [ ] Visibility must be declared on method "test__author_queried_object_fix"
23 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
28 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
29 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'post_status'" and double arrow, but found 5.
30 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_content'" and double arrow, but found 4.
31 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'post_title'" and double arrow, but found 6.
32 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'post_author'" and double arrow, but found 5.
33 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
41 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
50 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
60 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
69 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/tests/bootstrap.php
-------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------
1 | ERROR | Missing file doc comment
10 | ERROR | Missing doc comment for function _manually_load_plugin()
-------------------------------------------------------------------------
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/tests/test-coauthors-guest-authors.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 44 ERRORS AND 1 WARNING AFFECTING 32 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [ ] Class file names should be based on the class name with "class-" prepended. Expected class-test-coauthors-guest-authors.php, but found test-coauthors-guest-authors.php.
1 | ERROR | [ ] Missing file doc comment
3 | ERROR | [ ] Missing doc comment for class Test_CoAuthors_Guest_Authors
5 | ERROR | [ ] Missing doc comment for function setUp()
9 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
10 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
11 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
13 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
19 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
119 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
122 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
224 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
227 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
306 | ERROR | [ ] Processing form data without nonce verification.
315 | ERROR | [ ] Detected usage of a possibly undefined superglobal array index: $_POST['id']. Use isset() or empty() to check the index exists before using it
315 | ERROR | [ ] $_POST data not unslashed before sanitization. Use wp_unslash() or similar
315 | ERROR | [ ] Detected usage of a non-sanitized input variable: $_POST['id']
315 | ERROR | [ ] Processing form data without nonce verification.
326 | ERROR | [ ] Detected usage of a possibly undefined superglobal array index: $_POST['id']. Use isset() or empty() to check the index exists before using it
326 | ERROR | [ ] $_POST data not unslashed before sanitization. Use wp_unslash() or similar
326 | ERROR | [ ] Detected usage of a non-sanitized input variable: $_POST['id']
326 | ERROR | [ ] Processing form data without nonce verification.
338 | ERROR | [ ] Detected usage of a possibly undefined superglobal array index: $_POST['id']. Use isset() or empty() to check the index exists before using it
338 | ERROR | [ ] $_POST data not unslashed before sanitization. Use wp_unslash() or similar
338 | ERROR | [ ] Detected usage of a non-sanitized input variable: $_POST['id']
338 | ERROR | [ ] Processing form data without nonce verification.
358 | ERROR | [ ] Processing form data without nonce verification.
405 | ERROR | [ ] Processing form data without nonce verification.
463 | ERROR | [ ] Processing form data without nonce verification.
465 | 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.
517 | ERROR | [ ] Processing form data without nonce verification.
561 | ERROR | [ ] Processing form data without nonce verification.
579 | ERROR | [x] Space after opening control structure is required
579 | ERROR | [x] No space before opening parenthesis is prohibited
579 | ERROR | [x] Expected 1 space(s) after CATCH keyword; 0 found
607 | ERROR | [ ] Processing form data without nonce verification.
644 | WARNING | [ ] This comment is 67% valid code; is this commented out code?
644 | ERROR | [x] No space found before comment text; expected "// $this->assertContains( $guest_author_obj->parent_page, $e->getMessage() );" but found "//$this->assertContains(
| | $guest_author_obj->parent_page, $e->getMessage() );"
670 | ERROR | [ ] Processing form data without nonce verification.
825 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
827 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
849 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
852 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
877 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
880 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 19 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/tests/test-template-tags.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 124 ERRORS AND 1 WARNING AFFECTING 102 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [ ] Class file names should be based on the class name with "class-" prepended. Expected class-test-template-tags.php, but found test-template-tags.php.
1 | ERROR | [ ] Missing file doc comment
3 | ERROR | [ ] Missing doc comment for class Test_Template_Tags
5 | ERROR | [ ] Missing doc comment for function setUp()
14 | ERROR | [x] Parenthesis should always be used when instantiating a new object.
16 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
17 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
19 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
25 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
42 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $GLOBALS['post']
73 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
73 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
73 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
73 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
76 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
76 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
79 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $GLOBALS['post']
96 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $GLOBALS['post']
118 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
118 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
118 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
118 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
121 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
121 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
124 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $GLOBALS['post']
151 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
154 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
154 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
180 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
185 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
185 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
187 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
192 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
244 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
249 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
297 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
306 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
322 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
345 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
360 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
372 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
388 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
411 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
413 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
414 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
414 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
416 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
423 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
439 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
462 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
464 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
465 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
465 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
467 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
474 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
490 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
513 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
515 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
516 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
516 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
518 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
525 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
541 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
562 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
564 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
565 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
565 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
567 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
574 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
589 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
593 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $authordata
593 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
595 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
597 | ERROR | [x] Whitespace found at end of line
601 | ERROR | [x] Whitespace found at end of line
602 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
603 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $authordata
603 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
604 | ERROR | [x] Whitespace found at end of line
616 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $authordata
619 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
634 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
639 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
641 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
644 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $authordata
655 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $authordata
658 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
673 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
684 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $authordata
690 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $authordata
693 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
709 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
730 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
751 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
757 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
810 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
810 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
810 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
813 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
813 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
830 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
833 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
835 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
837 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
851 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
854 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
856 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
856 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
856 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
859 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
859 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
870 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
873 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
887 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
890 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
905 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
909 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
923 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
926 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
969 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
972 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
1003 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
1006 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
1038 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
1041 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 75 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/tests/test-coauthors-plus.php
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 51 ERRORS AND 1 WARNING AFFECTING 51 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [ ] Class file names should be based on the class name with "class-" prepended. Expected class-test-coauthors-plus.php, but found test-coauthors-plus.php.
1 | ERROR | [ ] Missing file doc comment
3 | ERROR | [ ] Missing doc comment for class Test_CoAuthors_Plus
5 | ERROR | [ ] Missing doc comment for function setUp()
9 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
10 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
12 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
18 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
50 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
53 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
139 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
144 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
151 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $GLOBALS['current_screen']
154 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
175 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $GLOBALS['current_screen']
189 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $GLOBALS['current_screen']
200 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $GLOBALS['current_screen']
203 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
205 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
215 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $GLOBALS['current_screen']
233 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
251 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
253 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
264 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $post
292 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
294 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
318 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
320 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
363 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
365 | ERROR | [x] Each array item in a multi-line array declaration must end in a comma
366 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
374 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
376 | ERROR | [x] Each array item in a multi-line array declaration must end in a comma
377 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
430 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
432 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
455 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
457 | ERROR | [x] Each array item in a multi-line array declaration must end in a comma
458 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
489 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
492 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
570 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
573 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
616 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
619 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
628 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
629 | WARNING | [x] Array double arrow not aligned correctly; expected 8 space(s) between "'ID'" and double arrow, but found 9.
631 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
657 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
660 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
669 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
672 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 38 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/tests/test-manage-coauthors.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 50 ERRORS AND 30 WARNINGS AFFECTING 67 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [ ] Class file names should be based on the class name with "class-" prepended. Expected class-test-manage-coauthors.php, but found test-manage-coauthors.php.
1 | ERROR | [ ] Missing file doc comment
3 | ERROR | [ ] Missing doc comment for class Test_Manage_CoAuthors
5 | ERROR | [ ] Missing doc comment for function setUp()
8 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
8 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
9 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
10 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
13 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'post_author'" and double arrow, but found 5.
14 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'post_status'" and double arrow, but found 5.
15 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_content'" and double arrow, but found 4.
16 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'post_title'" and double arrow, but found 6.
17 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'post_type'" and double arrow, but found 7.
23 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'post_author'" and double arrow, but found 5.
24 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'post_status'" and double arrow, but found 5.
25 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_content'" and double arrow, but found 4.
26 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'post_title'" and double arrow, but found 6.
27 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'post_type'" and double arrow, but found 7.
33 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'post_author'" and double arrow, but found 5.
34 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'post_status'" and double arrow, but found 5.
35 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_content'" and double arrow, but found 4.
36 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'post_title'" and double arrow, but found 6.
37 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'post_type'" and double arrow, but found 7.
43 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'post_author'" and double arrow, but found 5.
44 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'post_status'" and double arrow, but found 5.
45 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_content'" and double arrow, but found 4.
46 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'post_title'" and double arrow, but found 6.
47 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'post_type'" and double arrow, but found 7.
53 | WARNING | [ ] Possible useless method overriding detected
53 | ERROR | [ ] Missing doc comment for function tearDown()
66 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
72 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
88 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
93 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
122 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
134 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
161 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
161 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
161 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
161 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
164 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
164 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
166 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
169 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
173 | ERROR | [ ] Assignments must be the first block of code on a line
197 | ERROR | [ ] Assignments must be the first block of code on a line
219 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
222 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
227 | ERROR | [ ] Processing form data without nonce verification.
228 | WARNING | [ ] Processing form data without nonce verification.
230 | WARNING | [x] Empty PHP statement detected: superfluous semi-colon.
230 | ERROR | [x] Each PHP statement must be on a line by itself
231 | WARNING | [x] Equals sign not aligned correctly; expected 1 space but found 10 spaces
235 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
237 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
241 | ERROR | [ ] Assignments must be the first block of code on a line
271 | ERROR | [ ] Assignments must be the first block of code on a line
278 | ERROR | [ ] Processing form data without nonce verification.
279 | WARNING | [ ] Processing form data without nonce verification.
281 | WARNING | [x] Empty PHP statement detected: superfluous semi-colon.
281 | ERROR | [x] Each PHP statement must be on a line by itself
282 | WARNING | [x] Equals sign not aligned correctly; expected 1 space but found 10 spaces
287 | ERROR | [x] Parenthesis should always be used when instantiating a new object.
313 | ERROR | [ ] Processing form data without nonce verification.
314 | WARNING | [ ] Processing form data without nonce verification.
316 | ERROR | [ ] Assignments must be the first block of code on a line
320 | ERROR | [ ] Assignments must be the first block of code on a line
348 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
348 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
348 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
348 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
351 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
351 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
353 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
356 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
380 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
382 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
387 | ERROR | [ ] Processing form data without nonce verification.
388 | WARNING | [ ] Processing form data without nonce verification.
390 | ERROR | [ ] Assignments must be the first block of code on a line
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 53 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/php/class-wp-cli.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 135 ERRORS AND 102 WARNINGS AFFECTING 186 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [ ] Class file names should be based on the class name with "class-" prepended. Expected class-coauthorsplus-command.php, but found class-wp-cli.php.
8 | ERROR | [ ] There must be exactly one blank line after the file comment
11 | ERROR | [ ] Missing doc comment for class CoAuthorsPlus_Command
13 | ERROR | [ ] Doc comment for parameter "$args" missing
13 | ERROR | [ ] Doc comment for parameter "$assoc_args" missing
24 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
25 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
28 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
29 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
30 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
31 | ERROR | [x] Space before opening parenthesis of function call prohibited
56 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
57 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
61 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
61 | WARNING | [x] Array double arrow not aligned correctly; expected 13 space(s) between "'order'" and double arrow, but found 12.
62 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
62 | WARNING | [x] Array double arrow not aligned correctly; expected 11 space(s) between "'orderby'" and double arrow, but found 10.
63 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
64 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
65 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
66 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
67 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
69 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
70 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
71 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
90 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 31 spaces but found 1 space
93 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 31 spaces but found 1 space
118 | ERROR | [ ] Doc comment for parameter "$args" missing
118 | ERROR | [ ] Doc comment for parameter "$assoc_args" missing
129 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
130 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
130 | WARNING | [ ] Detected usage of meta_key, possible slow query.
131 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
132 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
133 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
134 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
135 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
136 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
137 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
140 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
144 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 14 spaces but found 1 space
146 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
147 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
148 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
156 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
157 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
161 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
171 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
172 | WARNING | [ ] Variable assignment found within a condition. Did you mean to do a comparison?
172 | ERROR | [ ] Assignments must be the first block of code on a line
173 | WARNING | [ ] Variable assignment found within a condition. Did you mean to do a comparison?
173 | ERROR | [ ] Assignments must be the first block of code on a line
180 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
206 | ERROR | [ ] Doc comment for parameter "$args" missing
206 | ERROR | [ ] Doc comment for parameter "$assoc_args" missing
218 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
219 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
219 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'user_login'" and double arrow, but found 8.
220 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
220 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'coauthor'" and double arrow, but found 10.
221 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
224 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
236 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
236 | WARNING | [ ] Usage of a direct database call is discouraged.
236 | WARNING | [ ] Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
236 | ERROR | [ ] Use placeholders and $wpdb->prepare(); found interpolated variable $post_types at "SELECT ID FROM $wpdb->posts WHERE post_author=%d AND post_type IN ('$post_types')"
237 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
241 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
242 | 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.
242 | ERROR | [x] Multiple placeholders should be ordered. Expected '%1$d, %2$s', but got %d, %s.
245 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
250 | 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.
250 | ERROR | [x] Multiple placeholders should be ordered. Expected '%1\$s, %2\$d', but got %s, %d.
256 | 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.
260 | ERROR | [ ] Doc comment for parameter "$args" missing
260 | ERROR | [ ] Doc comment for parameter "$assoc_args" missing
277 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
278 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
278 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'author_mapping'" and double arrow, but found 4.
279 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
279 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'old_term'" and double arrow, but found 10.
280 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
280 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'new_term'" and double arrow, but found 10.
281 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
285 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
286 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
288 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
290 | WARNING | [x] "require_once" is a statement not a function; no parentheses are required
292 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead
297 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
300 | ERROR | [x] Array item not aligned correctly; expected 16 spaces but found 20
301 | ERROR | [x] Array closer not aligned correctly; expected 12 space(s) but found 16
305 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
307 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
308 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
308 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'new_term_exists'" and double arrow, but found 1.
309 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
309 | WARNING | [x] Array double arrow not aligned correctly; expected 10 space(s) between "'success'" and double arrow, but found 1.
310 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
317 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
327 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
332 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
332 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'default'" and double arrow, but found 1.
333 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
334 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
339 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
340 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
341 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
356 | ERROR | [ ] Doc comment for parameter "$args" missing
356 | ERROR | [ ] Doc comment for parameter "$assoc_args" missing
369 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
370 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
370 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'from'" and double arrow, but found 6.
371 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
371 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'to'" and double arrow, but found 8.
372 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
375 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 10 spaces but found 1 space
395 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
395 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'name'" and double arrow, but found 9.
396 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
396 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'slug'" and double arrow, but found 9.
397 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
400 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
401 | WARNING | [ ] Usage of a direct database call is discouraged.
411 | ERROR | [ ] Doc comment for parameter "$args" missing
411 | ERROR | [ ] Doc comment for parameter "$assoc_args" missing
424 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
425 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
430 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
430 | WARNING | [x] Equals sign not aligned correctly; expected 1 space but found 24 spaces
432 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
432 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 13 spaces
433 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
433 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 15 spaces
435 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
435 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 4 spaces
436 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
436 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 6 spaces
457 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
457 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'post_type'" and double arrow, but found 9.
458 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
458 | WARNING | [x] Array double arrow not aligned correctly; expected 10 space(s) between "'order'" and double arrow, but found 13.
459 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
459 | WARNING | [x] Array double arrow not aligned correctly; expected 8 space(s) between "'orderby'" and double arrow, but found 11.
460 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
460 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'posts_per_page'" and double arrow, but found 4.
461 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
461 | WARNING | [x] Array double arrow not aligned correctly; expected 10 space(s) between "'paged'" and double arrow, but found 13.
462 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
462 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'tax_query'" and double arrow, but found 9.
462 | WARNING | [ ] Detected usage of tax_query, possible slow query.
464 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
464 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'taxonomy'" and double arrow, but found 2.
465 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
465 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'field'" and double arrow, but found 5.
466 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
466 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'terms'" and double arrow, but found 5.
490 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
499 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
502 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
513 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
526 | ERROR | [ ] Doc comment for parameter "$args" missing
526 | ERROR | [ ] Doc comment for parameter "$assoc_args" missing
537 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
538 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
539 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
540 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
541 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
542 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
542 | WARNING | [ ] Detected high pagination limit, `posts_per_page` is set to `300`
543 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
544 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
545 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
546 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
557 | ERROR | [x] Array item not aligned correctly; expected 24 spaces but found 28
558 | ERROR | [x] Array item not aligned correctly; expected 24 spaces but found 28
559 | ERROR | [x] Array item not aligned correctly; expected 24 spaces but found 28
560 | ERROR | [x] Array item not aligned correctly; expected 24 spaces but found 28
561 | ERROR | [x] Array closer not aligned correctly; expected 20 space(s) but found 24
574 | ERROR | [ ] Doc comment for parameter "$args" missing
574 | ERROR | [ ] Doc comment for parameter "$assoc_args" missing
594 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
595 | WARNING | [ ] Variable assignment found within a condition. Did you mean to do a comparison?
595 | ERROR | [ ] Assignments must be the first block of code on a line
598 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'default'" and double arrow, but found 1.
604 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
607 | ERROR | [x] Array item not aligned correctly; expected 16 spaces but found 20
608 | ERROR | [x] Array closer not aligned correctly; expected 12 space(s) but found 16
627 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
634 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
644 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
701 | WARNING | [ ] Usage of a direct database call is discouraged.
701 | WARNING | [ ] Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
719 | ERROR | [ ] Doc comment for parameter "$args" missing
719 | ERROR | [ ] Doc comment for parameter "$assoc_args" missing
728 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
738 | WARNING | [x] "require_once" is a statement not a function; no parentheses are required
741 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
748 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
756 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'user_login'" and double arrow, but found 1.
757 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'user_email'" and double arrow, but found 1.
758 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'first_name'" and double arrow, but found 1.
759 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'last_name'" and double arrow, but found 1.
760 | WARNING | [x] Array double arrow not aligned correctly; expected 11 space(s) between "'ID'" and double arrow, but found 1.
769 | ERROR | [ ] Doc comment for parameter "$args" missing
769 | ERROR | [ ] Doc comment for parameter "$assoc_args" missing
778 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
787 | WARNING | [ ] File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fopen()
796 | WARNING | [ ] Variable assignment found within a condition. Did you mean to do a comparison?
799 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
801 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
804 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
815 | WARNING | [ ] File operations should use WP_Filesystem methods instead of direct PHP filesystem calls. Found: fclose()
824 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'user_login'" and double arrow, but found 1.
825 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'user_email'" and double arrow, but found 1.
826 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'website'" and double arrow, but found 1.
827 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'description'" and double arrow, but found 1.
828 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'avatar'" and double arrow, but found 1.
835 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
838 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
841 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
850 | ERROR | [ ] Missing doc comment for function create_guest_author()
861 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
863 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'user_login'" and double arrow, but found 1.
864 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'user_email'" and double arrow, but found 1.
865 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'first_name'" and double arrow, but found 1.
866 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'last_name'" and double arrow, but found 1.
867 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'website'" and double arrow, but found 1.
868 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'description'" and double arrow, but found 1.
869 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'avatar'" and double arrow, but found 1.
870 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
894 | WARNING | [ ] This comment is 59% valid code; is this commented out code?
894 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
900 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
901 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 10 spaces but found 1 space
903 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 10 spaces but found 1 space
906 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 165 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/php/class-coauthors-guest-authors.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 419 ERRORS AND 178 WARNINGS AFFECTING 437 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [ ] Missing file doc comment
7 | ERROR | [ ] There must be no blank lines after the class comment
10 | ERROR | [x] Opening brace should be on the same line as the declaration for class CoAuthors_Guest_Authors
12 | ERROR | [ ] Missing member variable doc comment
12 | ERROR | [ ] The var keyword must not be used to declare a property
12 | ERROR | [ ] Visibility must be declared on property "$post_type"
12 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 14 spaces but found 1 space
13 | ERROR | [ ] Missing member variable doc comment
13 | ERROR | [ ] The var keyword must not be used to declare a property
13 | ERROR | [ ] Visibility must be declared on property "$parent_page"
13 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 12 spaces but found 1 space
14 | ERROR | [ ] Missing member variable doc comment
14 | ERROR | [ ] The var keyword must not be used to declare a property
14 | ERROR | [ ] Visibility must be declared on property "$list_guest_authors_cap"
16 | ERROR | [ ] Missing member variable doc comment
21 | ERROR | [ ] Visibility must be declared on method "__construct"
24 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
27 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
28 | WARNING | [x] "require_once" is a statement not a function; no parentheses are required
30 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
33 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
36 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
39 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
43 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
46 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
49 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
52 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
55 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
60 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
63 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
66 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
69 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
70 | ERROR | [x] No space found after comma in argument list
70 | ERROR | [x] Space found before comma in argument list
70 | ERROR | [x] No space found after comma in argument list
72 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
75 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
78 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
81 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
82 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
82 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
83 | WARNING | [x] Array double arrow not aligned correctly; expected 14 space(s) between "'singular'" and double arrow, but found 1.
84 | WARNING | [x] Array double arrow not aligned correctly; expected 16 space(s) between "'plural'" and double arrow, but found 1.
85 | WARNING | [x] Array double arrow not aligned correctly; expected 13 space(s) between "'all_items'" and double arrow, but found 1.
86 | WARNING | [x] Array double arrow not aligned correctly; expected 10 space(s) between "'add_new_item'" and double arrow, but found 1.
87 | WARNING | [x] Array double arrow not aligned correctly; expected 13 space(s) between "'edit_item'" and double arrow, but found 1.
88 | WARNING | [x] Array double arrow not aligned correctly; expected 14 space(s) between "'new_item'" and double arrow, but found 1.
89 | WARNING | [x] Array double arrow not aligned correctly; expected 13 space(s) between "'view_item'" and double arrow, but found 1.
90 | WARNING | [x] Array double arrow not aligned correctly; expected 10 space(s) between "'search_items'" and double arrow, but found 1.
91 | WARNING | [x] Array double arrow not aligned correctly; expected 13 space(s) between "'not_found'" and double arrow, but found 1.
92 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'not_found_in_trash'" and double arrow, but found 1.
93 | WARNING | [x] Array double arrow not aligned correctly; expected 11 space(s) between "'update_item'" and double arrow, but found 1.
94 | WARNING | [x] Array double arrow not aligned correctly; expected 9 space(s) between "'metabox_about'" and double arrow, but found 1.
95 | WARNING | [x] Array double arrow not aligned correctly; expected 8 space(s) between "'featured_image'" and double arrow, but found 1.
96 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'set_featured_image'" and double arrow, but found 1.
97 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'use_featured_image'" and double arrow, but found 1.
99 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
101 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
103 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
103 | WARNING | [x] Array double arrow not aligned correctly; expected 15 space(s) between "'label'" and double arrow, but found 1.
104 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
104 | WARNING | [x] Array double arrow not aligned correctly; expected 14 space(s) between "'labels'" and double arrow, but found 1.
105 | ERROR | [x] Multi-line array item not aligned correctly; expected 20 spaces, but found 24
105 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
106 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
107 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
108 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
109 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
110 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
111 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
112 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
113 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
114 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
115 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
116 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
117 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
118 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
119 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
120 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
121 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
121 | WARNING | [x] Array double arrow not aligned correctly; expected 14 space(s) between "'public'" and double arrow, but found 1.
122 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
122 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'publicly_queryable'" and double arrow, but found 1.
123 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
124 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
124 | WARNING | [x] Array double arrow not aligned correctly; expected 8 space(s) between "'show_in_menu'" and double arrow, but found 1.
125 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
125 | WARNING | [x] Array double arrow not aligned correctly; expected 12 space(s) between "'supports'" and double arrow, but found 1.
126 | ERROR | [x] Multi-line array item not aligned correctly; expected 20 spaces, but found 24
126 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
127 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
128 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
128 | WARNING | [x] Array double arrow not aligned correctly; expected 10 space(s) between "'taxonomies'" and double arrow, but found 1.
129 | ERROR | [x] Multi-line array item not aligned correctly; expected 20 spaces, but found 24
129 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
130 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
131 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
131 | WARNING | [x] Array double arrow not aligned correctly; expected 13 space(s) between "'rewrite'" and double arrow, but found 1.
132 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
132 | WARNING | [x] Array double arrow not aligned correctly; expected 11 space(s) between "'query_var'" and double arrow, but found 1.
133 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
136 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
139 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
145 | ERROR | [ ] Doc comment for parameter "$messages" missing
150 | ERROR | [ ] Visibility must be declared on method "filter_post_updated_messages"
157 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
161 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "0" and double arrow, but found 1.
162 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "1" and double arrow, but found 1.
162 | 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.
163 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "2" and double arrow, but found 1.
164 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "3" and double arrow, but found 1.
165 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "4" and double arrow, but found 1.
167 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "5" and double arrow, but found 1.
167 | WARNING | [ ] Processing form data without nonce verification.
167 | WARNING | [ ] Processing form data without nonce verification.
168 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "6" and double arrow, but found 1.
168 | 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.
169 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "7" and double arrow, but found 1.
170 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "8" and double arrow, but found 1.
170 | 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.
171 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "9" and double arrow, but found 1.
171 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
171 | 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.
172 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
173 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
173 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
174 | 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.
185 | ERROR | [ ] Visibility must be declared on method "handle_create_guest_author_action"
191 | ERROR | [ ] $_GET data not unslashed before sanitization. Use wp_unslash() or similar
191 | ERROR | [ ] Detected usage of a non-sanitized input variable: $_GET['nonce']
201 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
209 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
210 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
222 | ERROR | [ ] Visibility must be declared on method "handle_delete_guest_author_action"
225 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
229 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
230 | ERROR | [ ] $_POST data not unslashed before sanitization. Use wp_unslash() or similar
230 | ERROR | [ ] Detected usage of a non-sanitized input variable: $_POST['_wpnonce']
234 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
239 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
242 | 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.
245 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
248 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
252 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
254 | ERROR | [ ] Detected usage of a possibly undefined superglobal array index: $_POST['leave-assigned-to']. Use isset() or empty() to check the index exists before using it
254 | ERROR | [ ] $_POST data not unslashed before sanitization. Use wp_unslash() or similar
255 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
261 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
273 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
273 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'page'" and double arrow, but found 8.
274 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
283 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
294 | ERROR | [ ] Visibility must be declared on method "handle_ajax_search_coauthors_to_assign"
301 | WARNING | [ ] Processing form data without nonce verification.
301 | ERROR | [ ] Detected usage of a possibly undefined superglobal array index: $_GET['q']. Use isset() or empty() to check the index exists before using it
301 | ERROR | [ ] $_GET data not unslashed before sanitization. Use wp_unslash() or similar
302 | WARNING | [ ] Processing form data without nonce verification.
303 | WARNING | [ ] Processing form data without nonce verification.
309 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
313 | ERROR | [x] Array item not aligned correctly; expected 16 spaces but found 20
313 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'display_name'" and double arrow, but found 7.
314 | ERROR | [x] Array item not aligned correctly; expected 16 spaces but found 20
314 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'user_login'" and double arrow, but found 9.
315 | ERROR | [x] Array item not aligned correctly; expected 16 spaces but found 20
315 | WARNING | [x] Array double arrow not aligned correctly; expected 11 space(s) between "'id'" and double arrow, but found 17.
316 | ERROR | [x] Array closer not aligned correctly; expected 12 space(s) but found 16
323 | ERROR | [ ] Doc comment for parameter "$query" missing
328 | ERROR | [ ] Visibility must be declared on method "action_parse_request"
334 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
340 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
363 | ERROR | [ ] Visibility must be declared on method "action_admin_menu"
374 | ERROR | [ ] Visibility must be declared on method "action_admin_enqueue_scripts"
376 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
377 | WARNING | [ ] Processing form data without nonce verification.
377 | WARNING | [ ] Processing form data without nonce verification.
378 | WARNING | [ ] In footer ($in_footer) is not set explicitly wp_enqueue_script; It is recommended to load scripts in the footer. Please set this value to `true` to load it in the footer, or
| | explicitly `false` if it should be loaded in the header.
382 | WARNING | [ ] In footer ($in_footer) is not set explicitly wp_enqueue_script; It is recommended to load scripts in the footer. Please set this value to `true` to load it in the footer, or
| | explicitly `false` if it should be loaded in the header.
383 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead
383 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument.
383 | ERROR | [ ] Use Yoda Condition checks, you must.
394 | ERROR | [ ] Visibility must be declared on method "change_title_icon"
409 | ERROR | [ ] Visibility must be declared on method "action_admin_notices"
412 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
412 | WARNING | [ ] Processing form data without nonce verification.
416 | WARNING | [ ] Processing form data without nonce verification.
435 | ERROR | [ ] Visibility must be declared on method "action_add_meta_boxes"
438 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
439 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
444 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
456 | ERROR | [ ] Visibility must be declared on method "view_guest_authors_list"
458 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
459 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
460 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
461 | ERROR | [ ] $_GET data not unslashed before sanitization. Use wp_unslash() or similar
461 | ERROR | [ ] Detected usage of a non-sanitized input variable: $_GET['_wpnonce']
465 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
468 | 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.
471 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
477 | 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.
478 | ERROR | [x] Expected 1 spaces after opening parenthesis; 2 found
478 | 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.
480 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
483 | ERROR | [x] Expected 1 space after closing brace; newline found
485 | 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.
485 | ERROR | [x] Multiple placeholders should be ordered. Expected '%1\$s, %2\$s', but got %s, %s.
487 | 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.
487 | ERROR | [x] Multiple placeholders should be ordered. Expected '%1$d, %2$s', but got %d, %s.
488 | ERROR | [x] Expected 1 space after closing brace; newline found
490 | 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.
490 | ERROR | [x] Multiple placeholders should be ordered. Expected '%1$d, %2$s', but got %d, %s.
501 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
506 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
508 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
513 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
516 | 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.
519 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
523 | ERROR | [x] Expected 1 space after closing brace; newline found
528 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
531 | ERROR | [x] Expected 1 space after closing brace; newline found
561 | ERROR | [ ] Visibility must be declared on method "metabox_manage_guest_author_save"
564 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument.
571 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
581 | ERROR | [ ] Visibility must be declared on method "metabox_manage_guest_author_slug"
584 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
591 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
592 | WARNING | [ ] Variable assignment found within a condition. Did you mean to do a comparison?
592 | ERROR | [ ] Assignments must be the first block of code on a line
598 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
599 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
604 | WARNING | [ ] Variable assignment found within a condition. Did you mean to do a comparison?
604 | ERROR | [ ] Assignments must be the first block of code on a line
604 | WARNING | [ ] Not using strict comparison for array_search; supply true for third argument.
609 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
609 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
609 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
611 | WARNING | [x] Array double arrow not aligned correctly; expected 13 space(s) between "'name'" and double arrow, but found 1.
613 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
614 | WARNING | [x] Array double arrow not aligned correctly; expected 9 space(s) between "'selected'" and double arrow, but found 1.
615 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
616 | WARNING | [x] Array double arrow not aligned correctly; expected 10 space(s) between "'exclude'" and double arrow, but found 2.
617 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
617 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
623 | ERROR | [ ] Doc comment for parameter "$output" missing
638 | ERROR | [ ] Visibility must be declared on method "metabox_manage_guest_author_name"
645 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
653 | ERROR | [x] Concat operator must be surrounded by a single space
653 | ERROR | [x] Space found before comma in argument list
656 | ERROR | [x] Concat operator must be surrounded by a single space
656 | ERROR | [x] Concat operator must be surrounded by a single space
657 | ERROR | [x] Terminating statement must be indented to the same level as the CASE body
659 | ERROR | [x] Concat operator must be surrounded by a single space
659 | ERROR | [x] Concat operator must be surrounded by a single space
660 | ERROR | [x] Terminating statement must be indented to the same level as the CASE body
674 | ERROR | [ ] Visibility must be declared on method "metabox_manage_guest_author_contact_info"
681 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
689 | ERROR | [x] Concat operator must be surrounded by a single space
689 | ERROR | [x] Space found before comma in argument list
692 | ERROR | [x] Concat operator must be surrounded by a single space
692 | ERROR | [x] Concat operator must be surrounded by a single space
693 | ERROR | [x] Terminating statement must be indented to the same level as the CASE body
695 | ERROR | [x] Concat operator must be surrounded by a single space
695 | ERROR | [x] Concat operator must be surrounded by a single space
696 | ERROR | [x] Terminating statement must be indented to the same level as the CASE body
710 | ERROR | [ ] Visibility must be declared on method "metabox_manage_guest_author_bio"
717 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
718 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
738 | ERROR | [ ] Doc comment for parameter "$post_data" missing
738 | ERROR | [ ] Doc comment for parameter "$original_args" missing
744 | ERROR | [ ] Visibility must be declared on method "manage_guest_author_filter_post_data"
746 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
751 | ERROR | [ ] $_POST data not unslashed before sanitization. Use wp_unslash() or similar
751 | ERROR | [ ] Detected usage of a non-sanitized input variable: $_POST['guest-author-nonce']
755 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
759 | ERROR | [ ] $_POST data not unslashed before sanitization. Use wp_unslash() or similar
763 | ERROR | [ ] $_POST data not unslashed before sanitization. Use wp_unslash() or similar
766 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
772 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
774 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 10 spaces but found 1 space
777 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
777 | ERROR | [ ] Use Yoda Condition checks, you must.
781 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
783 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
790 | ERROR | [ ] Doc comment for parameter "$post_id" missing
790 | ERROR | [ ] Doc comment for parameter "$post" missing
795 | ERROR | [ ] Visibility must be declared on method "manage_guest_author_save_meta_fields"
798 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
803 | ERROR | [ ] $_POST data not unslashed before sanitization. Use wp_unslash() or similar
803 | ERROR | [ ] Detected usage of a non-sanitized input variable: $_POST['guest-author-nonce']
807 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
813 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
815 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
815 | ERROR | [ ] Detected usage of a possibly undefined superglobal array index: $_POST[$display_name_key]. Use isset() or empty() to check the index exists before using it
815 | ERROR | [ ] $_POST data not unslashed before sanitization. Use wp_unslash() or similar
819 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
845 | ERROR | [ ] $_POST data not unslashed before sanitization. Use wp_unslash() or similar
845 | ERROR | [ ] Detected usage of a non-sanitized input variable: $_POST[$key]
847 | ERROR | [ ] $_POST data not unslashed before sanitization. Use wp_unslash() or similar
852 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
854 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
858 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
862 | ERROR | [ ] Doc comment for parameter "$force" missing
868 | ERROR | [x] Expected 7 spaces after parameter type; 1 found
868 | ERROR | [ ] Parameter comment must end with a full stop
869 | ERROR | [x] Expected 7 spaces after parameter type; 1 found
869 | ERROR | [ ] Parameter comment must end with a full stop
870 | ERROR | [ ] Doc comment for parameter $coauthor does not match actual variable name $force
870 | ERROR | [ ] Parameter comment must end with a full stop
872 | ERROR | [ ] Visibility must be declared on method "get_guest_author_by"
877 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
877 | WARNING | [ ] Variable assignment found within a condition. Did you mean to do a comparison?
877 | ERROR | [ ] Assignments must be the first block of code on a line
878 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
889 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
890 | WARNING | [ ] Usage of a direct database call is discouraged.
890 | ERROR | [ ] Use placeholders and $wpdb->prepare(); found $query
897 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
898 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
899 | WARNING | [ ] Usage of a direct database call is discouraged.
899 | ERROR | [ ] Use placeholders and $wpdb->prepare(); found $query
908 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
911 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
912 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
915 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
916 | WARNING | [ ] Usage of a direct database call is discouraged.
916 | ERROR | [ ] Use placeholders and $wpdb->prepare(); found $query
918 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
919 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
930 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
939 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
942 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 18 spaces but found 1 space
943 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 15 spaces but found 1 space
946 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
949 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
951 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 10 spaces but found 1 space
958 | ERROR | [ ] Doc comment for parameter "$guest_author" missing
958 | ERROR | [ ] Doc comment for parameter "$size" missing
958 | ERROR | [ ] Doc comment for parameter "$class" missing
961 | ERROR | [ ] Missing parameter name
961 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
961 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
962 | ERROR | [ ] Missing parameter name
962 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
962 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
963 | ERROR | [ ] Missing parameter name
963 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
964 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
964 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
966 | ERROR | [ ] Visibility must be declared on method "get_guest_author_thumbnail"
967 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
989 | ERROR | [ ] Doc comment for parameter "$groups" missing
994 | ERROR | [ ] Visibility must be declared on method "get_guest_author_fields"
996 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
998 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
998 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
999 | ERROR | [x] Multi-line array item not aligned correctly; expected 12 spaces, but found 16
1000 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1000 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'key'" and double arrow, but found 6.
1001 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1001 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'label'" and double arrow, but found 4.
1002 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1002 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'group'" and double arrow, but found 4.
1003 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1003 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
1003 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'input'" and double arrow, but found 4.
1004 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
1005 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1005 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1006 | ERROR | [x] Multi-line array item not aligned correctly; expected 12 spaces, but found 16
1007 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1008 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1009 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1010 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1011 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
1012 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1013 | ERROR | [x] Multi-line array item not aligned correctly; expected 20 spaces, but found 24
1013 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1013 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'key'" and double arrow, but found 6.
1014 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1014 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'label'" and double arrow, but found 4.
1015 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1015 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'group'" and double arrow, but found 4.
1016 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
1017 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1018 | ERROR | [x] Multi-line array item not aligned correctly; expected 20 spaces, but found 24
1018 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1018 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'key'" and double arrow, but found 6.
1019 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1019 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'label'" and double arrow, but found 4.
1020 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1020 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'group'" and double arrow, but found 4.
1021 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
1022 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1023 | ERROR | [x] Multi-line array item not aligned correctly; expected 20 spaces, but found 24
1023 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1024 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1025 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1026 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1027 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
1028 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1028 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1029 | ERROR | [x] Multi-line array item not aligned correctly; expected 12 spaces, but found 16
1030 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1030 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'key'" and double arrow, but found 6.
1031 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1031 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'label'" and double arrow, but found 4.
1032 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1032 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'group'" and double arrow, but found 4.
1033 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1033 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
1033 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'input'" and double arrow, but found 4.
1034 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
1035 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1036 | ERROR | [x] Multi-line array item not aligned correctly; expected 20 spaces, but found 24
1036 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1036 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'key'" and double arrow, but found 6.
1037 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1037 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'label'" and double arrow, but found 4.
1038 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1038 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'group'" and double arrow, but found 4.
1039 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
1040 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1041 | ERROR | [x] Multi-line array item not aligned correctly; expected 20 spaces, but found 24
1041 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1041 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'key'" and double arrow, but found 6.
1042 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1042 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'label'" and double arrow, but found 4.
1043 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1043 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'group'" and double arrow, but found 4.
1044 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1044 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
1044 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'input'" and double arrow, but found 4.
1045 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
1046 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1047 | ERROR | [x] Multi-line array item not aligned correctly; expected 20 spaces, but found 24
1047 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1047 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'key'" and double arrow, but found 6.
1048 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1048 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'label'" and double arrow, but found 4.
1049 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1049 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'group'" and double arrow, but found 4.
1050 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
1051 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1052 | ERROR | [x] Multi-line array item not aligned correctly; expected 20 spaces, but found 24
1052 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1052 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'key'" and double arrow, but found 6.
1053 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1053 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'label'" and double arrow, but found 4.
1054 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1054 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'group'" and double arrow, but found 4.
1055 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
1056 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1057 | ERROR | [x] Multi-line array item not aligned correctly; expected 20 spaces, but found 24
1057 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1057 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'key'" and double arrow, but found 6.
1058 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1058 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'label'" and double arrow, but found 4.
1059 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1059 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'group'" and double arrow, but found 4.
1060 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
1061 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1062 | ERROR | [x] Multi-line array item not aligned correctly; expected 20 spaces, but found 24
1062 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1062 | WARNING | [x] Array double arrow not aligned correctly; expected 15 space(s) between "'key'" and double arrow, but found 6.
1063 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1063 | WARNING | [x] Array double arrow not aligned correctly; expected 13 space(s) between "'label'" and double arrow, but found 4.
1064 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1064 | WARNING | [x] Array double arrow not aligned correctly; expected 13 space(s) between "'group'" and double arrow, but found 4.
1065 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1066 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
1067 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
1070 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument.
1079 | ERROR | [ ] Doc comment for parameter "$key" missing
1085 | ERROR | [ ] Visibility must be declared on method "get_post_meta_key"
1097 | ERROR | [ ] Parameter comment must end with a full stop
1098 | ERROR | [ ] Parameter comment must end with a full stop
1102 | ERROR | [ ] Visibility must be declared on method "get_cache_key"
1103 | WARNING | [ ] This comment is 43% valid code; is this commented out code?
1103 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1125 | ERROR | [ ] Doc comment for parameter "$force" missing
1130 | ERROR | [ ] Visibility must be declared on method "get_all_linked_accounts"
1134 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
1137 | WARNING | [ ] Usage of a direct database call is discouraged.
1138 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
1145 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1145 | WARNING | [x] Array double arrow not aligned correctly; expected 9 space(s) between "'ID'" and double arrow, but found 14.
1146 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
1146 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'user_login'" and double arrow, but found 6.
1147 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
1155 | ERROR | [ ] Doc comment for parameter "$retnull" missing
1155 | ERROR | [ ] Doc comment for parameter "$object_id" missing
1155 | ERROR | [ ] Doc comment for parameter "$meta_key" missing
1155 | ERROR | [ ] Doc comment for parameter "$meta_value" missing
1155 | ERROR | [ ] Doc comment for parameter "$prev_value" missing
1161 | ERROR | [ ] Visibility must be declared on method "filter_update_post_metadata"
1163 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
1163 | ERROR | [ ] Use Yoda Condition checks, you must.
1168 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1170 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1174 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1182 | ERROR | [ ] Doc comment for parameter "$id_or_object" missing
1187 | ERROR | [ ] Doc comment for parameter $guest_author does not match actual variable name $id_or_object
1187 | ERROR | [ ] Parameter comment must end with a full stop
1197 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1203 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1205 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead
1205 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1214 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1220 | ERROR | [ ] Doc comment for parameter "$args" missing
1225 | ERROR | [ ] Visibility must be declared on method "create"
1228 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1232 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1234 | 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.
1237 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1238 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1238 | WARNING | [ ] Variable assignment found within a condition. Did you mean to do a comparison?
1238 | ERROR | [ ] Assignments must be the first block of code on a line
1239 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1245 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1247 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1247 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'post_title'" and double arrow, but found 6.
1248 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1248 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'post_name'" and double arrow, but found 7.
1249 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1249 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'post_type'" and double arrow, but found 7.
1250 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
1251 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
1256 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1267 | ERROR | [x] Array keys must NOT be surrounded by spaces if they only contain a string or an integer.
1268 | ERROR | [x] Array keys must NOT be surrounded by spaces if they only contain a string or an integer.
1271 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1276 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1282 | ERROR | [ ] Doc comment for parameter "$id" missing
1287 | ERROR | [x] Expected 4 spaces after parameter type; 1 found
1287 | ERROR | [ ] Doc comment for parameter $post_id does not match actual variable name $id
1287 | ERROR | [ ] Parameter comment must end with a full stop
1288 | ERROR | [ ] Parameter comment must end with a full stop
1303 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1304 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1315 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1316 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
1317 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
1323 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1326 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1337 | ERROR | [ ] Parameter comment must end with a full stop
1340 | ERROR | [ ] Visibility must be declared on method "create_guest_author_from_user_id"
1356 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1360 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
1362 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead
1370 | ERROR | [ ] Doc comment for parameter "$maybe_empty" missing
1370 | ERROR | [ ] Doc comment for parameter "$postarr" missing
1375 | ERROR | [ ] Visibility must be declared on method "filter_wp_insert_post_empty_content"
1377 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
1394 | ERROR | [x] Expected 2 spaces after parameter type; 1 found
1394 | ERROR | [ ] Parameter comment must end with a full stop
1395 | ERROR | [ ] Parameter comment must end with a full stop
1398 | ERROR | [ ] Visibility must be declared on method "filter_user_row_actions"
1405 | WARNING | [ ] Variable assignment found within a condition. Did you mean to do a comparison?
1405 | ERROR | [ ] Assignments must be the first block of code on a line
1406 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 11 spaces but found 1 space
1409 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 15 spaces but found 1 space
1410 | ERROR | [x] Array item not aligned correctly; expected 16 spaces but found 20
1410 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'action'" and double arrow, but found 1.
1411 | ERROR | [x] Array item not aligned correctly; expected 16 spaces but found 20
1412 | ERROR | [x] Array item not aligned correctly; expected 16 spaces but found 20
1412 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'nonce'" and double arrow, but found 1.
1413 | ERROR | [x] Array closer not aligned correctly; expected 12 space(s) but found 16
1423 | ERROR | [ ] Doc comment for parameter "$avatar" missing
1423 | ERROR | [ ] Doc comment for parameter "$id_or_email" missing
1423 | ERROR | [ ] Doc comment for parameter "$size" missing
1423 | ERROR | [ ] Doc comment for parameter "$default" missing
1428 | ERROR | [ ] Visibility must be declared on method "filter_get_avatar"
1433 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1448 | ERROR | [ ] Doc comment for parameter "$link" missing
1448 | ERROR | [ ] Doc comment for parameter "$author_id" missing
1448 | ERROR | [ ] Doc comment for parameter "$author_nicename" missing
1453 | ERROR | [ ] Visibility must be declared on method "filter_author_link"
1456 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1492 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1494 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
1499 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1506 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1509 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
1511 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
1517 | ERROR | [ ] Doc comment for parameter "$exporters" missing
1537 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
1554 | WARNING | [x] Array double arrow not aligned correctly; expected 11 space(s) between "'ID'" and double arrow, but found 14.
1555 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'user_login'" and double arrow, but found 6.
1556 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'display_name'" and double arrow, but found 4.
1557 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'user_email'" and double arrow, but found 6.
1558 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'first_name'" and double arrow, but found 6.
1559 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'last_name'" and double arrow, but found 7.
1560 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'website'" and double arrow, but found 9.
1561 | WARNING | [x] Array double arrow not aligned correctly; expected 10 space(s) between "'aim'" and double arrow, but found 13.
1562 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'yahooim'" and double arrow, but found 9.
1563 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'jabber'" and double arrow, but found 10.
1564 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'description'" and double arrow, but found 5.
1589 | ERROR | [x] Short array syntax is not allowed
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 314 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/php/integrations/amp/meta-author.php
------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------
1 | ERROR | Missing file doc comment
------------------------------------------------------------------------------------------
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/php/integrations/amp.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [ ] Missing file doc comment
4 | ERROR | [ ] Missing doc comment for function cap_add_amp_actions()
9 | ERROR | [ ] Missing doc comment for function cap_update_amp_json_metadata()
16 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'name'" and double arrow, but found 1.
24 | ERROR | [ ] Missing doc comment for function cap_set_amp_author_meta_template()
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/php/class-coauthors-template-filters.php
-----------------------------------------------------------------------------------------------
FOUND 15 ERRORS AFFECTING 10 LINES
-----------------------------------------------------------------------------------------------
1 | ERROR | [ ] Missing file doc comment
5 | ERROR | [ ] There must be no blank lines after the class comment
9 | ERROR | [ ] Missing doc comment for function __construct()
9 | ERROR | [ ] Visibility must be declared on method "__construct"
14 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
15 | ERROR | [x] Expected 1 space after comma in argument list; 2 found
18 | ERROR | [ ] Missing doc comment for function filter_the_author()
18 | ERROR | [ ] Visibility must be declared on method "filter_the_author"
22 | ERROR | [ ] Missing doc comment for function filter_the_author_posts_link()
22 | ERROR | [ ] Visibility must be declared on method "filter_the_author_posts_link"
26 | ERROR | [ ] Missing doc comment for function filter_the_author_rss()
26 | ERROR | [ ] Visibility must be declared on method "filter_the_author_rss"
39 | ERROR | [ ] Missing doc comment for function action_add_rss_guest_authors()
39 | ERROR | [ ] Visibility must be declared on method "action_add_rss_guest_authors"
42 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/php/class-coauthors-wp-list-table.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 82 ERRORS AND 48 WARNINGS AFFECTING 87 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
2 | ERROR | [ ] You must use "/**" style comments for a file comment
2 | ERROR | [x] No space found before comment text; expected "// Our class extends the WP_List_Table class, so we need to make sure that it's there" but found "//Our class extends the
| | WP_List_Table class, so we need to make sure that it's there"
2 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
4 | WARNING | [x] "require_once" is a statement not a function; no parentheses are required
5 | WARNING | [x] "require_once" is a statement not a function; no parentheses are required
12 | ERROR | [ ] Missing member variable doc comment
12 | ERROR | [ ] The var keyword must not be used to declare a property
12 | ERROR | [ ] Visibility must be declared on property "$is_search"
12 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
13 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
13 | ERROR | [ ] Missing member variable doc comment
13 | ERROR | [ ] The var keyword must not be used to declare a property
13 | ERROR | [ ] Visibility must be declared on property "$filters"
13 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
14 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
14 | ERROR | [ ] Missing member variable doc comment
14 | ERROR | [ ] The var keyword must not be used to declare a property
14 | ERROR | [ ] Visibility must be declared on property "$active_filter"
16 | ERROR | [ ] Missing doc comment for function __construct()
16 | ERROR | [ ] Visibility must be declared on method "__construct"
17 | WARNING | [ ] Processing form data without nonce verification.
21 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
22 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'plural'" and double arrow, but found 1.
24 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
30 | ERROR | [ ] Visibility must be declared on method "prepare_items"
33 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
34 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
35 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
36 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
36 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'display_name'" and double arrow, but found 7.
37 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
37 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'first_name'" and double arrow, but found 9.
38 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
38 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'last_name'" and double arrow, but found 10.
39 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
57 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
57 | WARNING | [ ] Processing form data without nonce verification.
57 | WARNING | [ ] Processing form data without nonce verification.
61 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
62 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
63 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
64 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
65 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
66 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
67 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
71 | WARNING | [ ] Processing form data without nonce verification.
72 | WARNING | [ ] Processing form data without nonce verification.
78 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
79 | WARNING | [ ] Detected usage of meta_key, possible slow query.
79 | WARNING | [ ] Processing form data without nonce verification.
79 | ERROR | [ ] $_REQUEST data not unslashed before sanitization. Use wp_unslash() or similar
79 | ERROR | [ ] Detected usage of a non-sanitized input variable: $_REQUEST['orderby']
83 | WARNING | [ ] Processing form data without nonce verification.
83 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument.
83 | WARNING | [ ] Processing form data without nonce verification.
84 | WARNING | [ ] Processing form data without nonce verification.
84 | ERROR | [ ] $_REQUEST data not unslashed before sanitization. Use wp_unslash() or similar
84 | ERROR | [ ] Detected usage of a non-sanitized input variable: $_REQUEST['order']
88 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
88 | WARNING | [x] Array double arrow not aligned correctly; expected 15 space(s) between "'show-all'" and double arrow, but found 16.
89 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
89 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'with-linked-account'" and double arrow, but found 5.
90 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
90 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'without-linked-account'" and double arrow, but found 2.
91 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
93 | WARNING | [ ] Processing form data without nonce verification.
93 | WARNING | [ ] Processing form data without nonce verification.
93 | ERROR | [ ] $_REQUEST data not unslashed before sanitization. Use wp_unslash() or similar
93 | ERROR | [ ] Detected usage of a non-sanitized input variable: $_REQUEST['filter']
94 | WARNING | [ ] Processing form data without nonce verification.
102 | WARNING | [ ] Detected usage of meta_key, possible slow query.
103 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
108 | WARNING | [ ] Detected usage of meta_value, possible slow query.
117 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
128 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
130 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'per_page'" and double arrow, but found 1.
131 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
134 | ERROR | [ ] Missing doc comment for function filter_query_for_search()
134 | ERROR | [ ] Visibility must be declared on method "filter_query_for_search"
136 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
136 | WARNING | [ ] Processing form data without nonce verification.
136 | ERROR | [ ] Detected usage of a possibly undefined superglobal array index: $_REQUEST['s']. Use isset() or empty() to check the index exists before using it
136 | ERROR | [ ] $_REQUEST data not unslashed before sanitization. Use wp_unslash() or similar
144 | ERROR | [ ] Visibility must be declared on method "no_items"
151 | ERROR | [ ] Visibility must be declared on method "get_columns"
153 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
154 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
155 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
156 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
157 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
158 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
159 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
165 | ERROR | [ ] Doc comment for parameter "$item" missing
168 | ERROR | [ ] Visibility must be declared on method "single_row"
170 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
171 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 14 spaces but found 1 space
178 | ERROR | [ ] Doc comment for parameter "$item" missing
178 | ERROR | [ ] Doc comment for parameter "$column_name" missing
181 | ERROR | [ ] Visibility must be declared on method "column_default"
192 | ERROR | [x] Terminating statement must be indented to the same level as the CASE body
196 | ERROR | [ ] Doc comment for parameter "$item" missing
199 | ERROR | [ ] Visibility must be declared on method "column_display_name"
201 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
202 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 13 spaces but found 1 space
203 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
203 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'action'" and double arrow, but found 7.
204 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
204 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'id'" and double arrow, but found 11.
205 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
205 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'_wpnonce'" and double arrow, but found 5.
206 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
208 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
228 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
229 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
234 | ERROR | [ ] Doc comment for parameter "$item" missing
237 | ERROR | [ ] Visibility must be declared on method "column_linked_account"
250 | ERROR | [ ] Doc comment for parameter "$item" missing
253 | ERROR | [ ] Visibility must be declared on method "column_posts"
263 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
263 | ERROR | [x] Whitespace found at end of line
268 | ERROR | [ ] Doc comment for parameter "$which" missing
271 | ERROR | [ ] Visibility must be declared on method "extra_tablenav"
273 | ERROR | [x] Opening PHP tag must be on a line by itself
274 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
281 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
284 | ERROR | [x] Line indented incorrectly; expected 0 tabs, found 2
284 | ERROR | [x] Closing PHP tag must be on a line by itself
284 | ERROR | [x] Opening PHP tag must be on a line by itself
287 | ERROR | [ ] Missing doc comment for function display()
287 | ERROR | [ ] Visibility must be declared on method "display"
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 70 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/upgrade.php
----------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AND 2 WARNINGS AFFECTING 12 LINES
----------------------------------------------------------------------------------------------------------
1 | ERROR | [ ] Missing file doc comment
2 | ERROR | [ ] Missing doc comment for function coauthors_plus_upgrade()
3 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
17 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
18 | WARNING | [ ] Detected usage of meta_key, possible slow query.
18 | ERROR | [x] When a multi-item array uses associative keys, each value should start on a new line.
19 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
20 | ERROR | [x] Whitespace found at end of line
22 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
25 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
27 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
32 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
38 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument.
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/co-authors-plus.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 382 ERRORS AND 142 WARNINGS AFFECTING 393 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [ ] Class file names should be based on the class name with "class-" prepended. Expected class-coauthors-plus.php, but found co-authors-plus.php.
2 | ERROR | [ ] You must use "/**" style comments for a file comment
37 | WARNING | [x] "require_once" is a statement not a function; no parentheses are required
38 | WARNING | [x] "require_once" is a statement not a function; no parentheses are required
40 | WARNING | [x] "require_once" is a statement not a function; no parentheses are required
41 | WARNING | [x] "require_once" is a statement not a function; no parentheses are required
44 | WARNING | [x] "require_once" is a statement not a function; no parentheses are required
47 | ERROR | [ ] Missing doc comment for class CoAuthors_Plus
50 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
51 | ERROR | [ ] You must use "/**" style comments for a member variable comment
51 | ERROR | [ ] The var keyword must not be used to declare a property
51 | ERROR | [ ] Visibility must be declared on property "$coauthor_taxonomy"
53 | ERROR | [ ] Missing member variable doc comment
53 | ERROR | [ ] The var keyword must not be used to declare a property
53 | ERROR | [ ] Visibility must be declared on property "$coreauthors_meta_box_name"
54 | ERROR | [ ] Missing member variable doc comment
54 | ERROR | [ ] The var keyword must not be used to declare a property
54 | ERROR | [ ] Visibility must be declared on property "$coauthors_meta_box_name"
54 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
55 | ERROR | [ ] Missing member variable doc comment
55 | ERROR | [ ] The var keyword must not be used to declare a property
55 | ERROR | [ ] Visibility must be declared on property "$force_guest_authors"
55 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
57 | ERROR | [ ] Missing member variable doc comment
57 | ERROR | [ ] The var keyword must not be used to declare a property
57 | ERROR | [ ] Visibility must be declared on property "$gravatar_size"
59 | WARNING | [ ] Property name "$_pages_whitelist" should not be prefixed with an underscore to indicate visibility
59 | ERROR | [ ] Missing member variable doc comment
59 | ERROR | [ ] The var keyword must not be used to declare a property
59 | ERROR | [ ] Visibility must be declared on property "$_pages_whitelist"
61 | ERROR | [ ] Missing member variable doc comment
61 | ERROR | [ ] The var keyword must not be used to declare a property
61 | ERROR | [ ] Visibility must be declared on property "$supported_post_types"
63 | ERROR | [ ] Missing member variable doc comment
63 | ERROR | [ ] The var keyword must not be used to declare a property
63 | ERROR | [ ] Visibility must be declared on property "$ajax_search_fields"
65 | ERROR | [ ] Missing member variable doc comment
65 | ERROR | [ ] The var keyword must not be used to declare a property
65 | ERROR | [ ] Visibility must be declared on property "$having_terms"
67 | ERROR | [ ] Missing member variable doc comment
67 | ERROR | [ ] The var keyword must not be used to declare a property
67 | ERROR | [ ] Visibility must be declared on property "$to_be_filtered_caps"
72 | ERROR | [ ] Visibility must be declared on method "__construct"
74 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
78 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
81 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
86 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
88 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
91 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
92 | ERROR | [x] Expected 1 space after comma in argument list; 2 found
96 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
99 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
102 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
106 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
109 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
112 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
113 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
116 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
120 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
123 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
126 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
129 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
130 | ERROR | [x] Missing space before array closer.
131 | ERROR | [x] Missing space before array closer.
134 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
135 | ERROR | [x] Missing space before array closer.
137 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
147 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
148 | ERROR | [ ] The parameter "null" at position #2 of load_plugin_textdomain() has been deprecated since WordPress version 2.7.0. Use "" instead.
150 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
152 | WARNING | [x] "require_once" is a statement not a function; no parentheses are required
153 | ERROR | [x] Parenthesis should always be used when instantiating a new object.
159 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
162 | ERROR | [x] Parenthesis should always be used when instantiating a new object.
172 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
175 | WARNING | [x] Array double arrow not aligned correctly; expected 8 space(s) between "'label'" and double arrow, but found 1.
176 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'query_var'" and double arrow, but found 1.
177 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'rewrite'" and double arrow, but found 1.
178 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'public'" and double arrow, but found 1.
179 | WARNING | [x] Array double arrow not aligned correctly; expected 9 space(s) between "'sort'" and double arrow, but found 1.
180 | WARNING | [x] Array double arrow not aligned correctly; expected 9 space(s) between "'args'" and double arrow, but found 1.
181 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'show_ui'" and double arrow, but found 1.
193 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument.
207 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
209 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
212 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
218 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
221 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
225 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
242 | ERROR | [ ] Doc comment for parameter "$force" missing
245 | ERROR | [ ] Parameter comment must end with a full stop
246 | ERROR | [ ] Parameter comment must end with a full stop
251 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
266 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
269 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
272 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
275 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
276 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
276 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
285 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
293 | WARNING | [ ] Code after the RETURN statement on line 292 cannot be executed
305 | ERROR | [ ] Parameter comment must end with a full stop
312 | ERROR | [x] No space before closing parenthesis is prohibited
317 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument.
341 | ERROR | [ ] Doc comment for parameter "$post" missing
356 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
420 | ERROR | [ ] Visibility must be declared on method "remove_quick_edit_authors_box"
423 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
428 | ERROR | [ ] Doc comment for parameter "$posts_columns" missing
431 | ERROR | [ ] Missing parameter comment
431 | ERROR | [ ] Doc comment for parameter $post_columns does not match actual variable name $posts_columns
433 | WARNING | [ ] Method name "_filter_manage_posts_columns" should not be prefixed with an underscore to indicate visibility
433 | ERROR | [ ] Visibility must be declared on method "_filter_manage_posts_columns"
456 | ERROR | [ ] Missing parameter comment
458 | WARNING | [ ] Method name "_filter_manage_posts_custom_column" should not be prefixed with an underscore to indicate visibility
458 | ERROR | [ ] Visibility must be declared on method "_filter_manage_posts_custom_column"
466 | ERROR | [x] Array item not aligned correctly; expected 20 spaces but found 24
467 | ERROR | [x] Array closer not aligned correctly; expected 16 space(s) but found 20
468 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
474 | ERROR | [x] Inline PHP statement must end with a semicolon
475 | ERROR | [x] Inline PHP statement must end with a semicolon
476 | ERROR | [x] Inline PHP statement must end with a semicolon
477 | ERROR | [x] Inline PHP statement must end with a semicolon
478 | ERROR | [x] Inline PHP statement must end with a semicolon
486 | ERROR | [ ] Doc comment for parameter "$columns" missing
489 | WARNING | [ ] Method name "_filter_manage_users_columns" should not be prefixed with an underscore to indicate visibility
489 | ERROR | [ ] Visibility must be declared on method "_filter_manage_users_columns"
492 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
494 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
503 | ERROR | [ ] Doc comment for parameter "$value" missing
503 | ERROR | [ ] Doc comment for parameter "$column_name" missing
503 | ERROR | [ ] Doc comment for parameter "$user_id" missing
506 | WARNING | [ ] Method name "_filter_manage_users_custom_column" should not be prefixed with an underscore to indicate visibility
506 | ERROR | [ ] Visibility must be declared on method "_filter_manage_users_custom_column"
507 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
510 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
512 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
523 | ERROR | [ ] Doc comment for parameter "$column_name" missing
523 | ERROR | [ ] Doc comment for parameter "$post_type" missing
526 | WARNING | [ ] Method name "_action_quick_edit_custom_box" should not be prefixed with an underscore to indicate visibility
526 | ERROR | [ ] Visibility must be declared on method "_action_quick_edit_custom_box"
527 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
532 | ERROR | [x] Inline PHP statement must end with a semicolon
541 | ERROR | [ ] Doc comment for parameter "$tt_ids" missing
541 | ERROR | [ ] Doc comment for parameter "$taxonomy" missing
544 | WARNING | [ ] Method name "_update_users_posts_count" should not be prefixed with an underscore to indicate visibility
544 | ERROR | [ ] Visibility must be declared on method "_update_users_posts_count"
547 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
548 | WARNING | [ ] Usage of a direct database call is discouraged.
548 | WARNING | [ ] Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
548 | ERROR | [ ] Use placeholders and $wpdb->prepare(); found interpolated variable $tt_ids at "SELECT term_id FROM $wpdb->term_taxonomy WHERE term_taxonomy_id IN ($tt_ids)"
559 | ERROR | [ ] Doc comment for parameter "$tt_id" missing
559 | ERROR | [ ] Doc comment for parameter "$taxonomy" missing
568 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
572 | WARNING | [ ] Usage of a direct database call is discouraged.
572 | WARNING | [ ] Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
574 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
588 | ERROR | [ ] Parameter comment must end with a full stop
603 | ERROR | [ ] Assignments must be the first block of code on a line
604 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
614 | ERROR | [ ] Simple placeholders should not be quoted in the query string in $wpdb->prepare(). Found: '%s'.
614 | ERROR | [ ] Use placeholders and $wpdb->prepare(); found interpolated variable $having_terms at " GROUP BY {$wpdb->posts}.ID HAVING MAX( IF ( {$wpdb->term_taxonomy}.taxonomy = '%s', IF (
| | {$having_terms},2,1 ),0 ) ) <> 1 "
616 | WARNING | [ ] Usage of a direct database call is discouraged.
616 | ERROR | [ ] Use placeholders and $wpdb->prepare(); found $query
617 | WARNING | [ ] Usage of a direct database call is discouraged.
622 | ERROR | [ ] Doc comment for parameter "$join" missing
622 | ERROR | [ ] Doc comment for parameter "$query" missing
625 | ERROR | [ ] Visibility must be declared on method "posts_join_filter"
630 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
631 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
632 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
642 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
644 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
662 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
663 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
664 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
665 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
665 | ERROR | [ ] Missing parameter comment
665 | ERROR | [x] Expected 3 spaces after parameter type; 1 found
666 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
666 | ERROR | [ ] Missing parameter comment
667 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
668 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
669 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
670 | ERROR | [ ] Visibility must be declared on method "posts_where_filter"
694 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
696 | WARNING | [ ] Variable assignment found within a condition. Did you mean to do a comparison?
696 | ERROR | [ ] Assignments must be the first block of code on a line
699 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
702 | WARNING | [ ] Variable assignment found within a condition. Did you mean to do a comparison?
702 | ERROR | [ ] Assignments must be the first block of code on a line
708 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
718 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
721 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
721 | ERROR | [x] Concat operator must be surrounded by a single space
721 | ERROR | [x] Concat operator must be surrounded by a single space
721 | ERROR | [x] Concat operator must be surrounded by a single space
721 | ERROR | [x] Concat operator must be surrounded by a single space
721 | ERROR | [x] Concat operator must be surrounded by a single space
721 | ERROR | [x] Concat operator must be surrounded by a single space
722 | ERROR | [x] Concat operator must be surrounded by a single space
722 | ERROR | [x] Concat operator must be surrounded by a single space
722 | ERROR | [x] Concat operator must be surrounded by a single space
726 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
729 | ERROR | [x] No space found before comment text; expected "// If we have an ID but it's not a "real" ID that means that this isn't the first time the filter has fired and the object_id has
| | already been replaced by a previous run of this filter. We therefore need to replace the 0" but found "//If we have an ID but it's not a "real" ID that means that this isn't the
| | first time the filter has fired and the object_id has already been replaced by a previous run of this filter. We therefore need to replace the 0"
732 | ERROR | [ ] Use Yoda Condition checks, you must.
732 | ERROR | [x] Expected 1 space(s) after closing parenthesis; found 0
732 | ERROR | [x] Space between opening control structure and closing parenthesis is required
741 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
744 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
747 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
751 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
757 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
760 | ERROR | [x] Perl-style comments are not allowed; use "// Comment" instead
771 | ERROR | [ ] Doc comment for parameter "$groupby" missing
771 | ERROR | [ ] Doc comment for parameter "$query" missing
774 | ERROR | [ ] Visibility must be declared on method "posts_groupby_filter"
787 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
787 | ERROR | [x] Concat operator must be surrounded by a single space
787 | ERROR | [x] Concat operator must be surrounded by a single space
794 | ERROR | [ ] Doc comment for parameter "$data" missing
794 | ERROR | [ ] Doc comment for parameter "$postarr" missing
797 | ERROR | [ ] Visibility must be declared on method "coauthors_set_post_author_field"
799 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
804 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
809 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
810 | WARNING | [ ] Processing form data without nonce verification.
810 | ERROR | [ ] Processing form data without nonce verification.
810 | ERROR | [ ] Processing form data without nonce verification.
813 | ERROR | [ ] Detected usage of a possibly undefined superglobal array index: $_POST['coauthors'][0]. Use isset() or empty() to check the index exists before using it
813 | ERROR | [ ] $_POST data not unslashed before sanitization. Use wp_unslash() or similar
813 | ERROR | [ ] Processing form data without nonce verification.
818 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
819 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
824 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead
830 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
832 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 16 spaces but found 1 space
836 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
842 | ERROR | [ ] Doc comment for parameter "$post_id" missing
842 | ERROR | [ ] Doc comment for parameter "$post" missing
845 | ERROR | [ ] Missing parameter name
847 | ERROR | [ ] Visibility must be declared on method "coauthors_update_post"
858 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
862 | ERROR | [ ] $_POST data not unslashed before sanitization. Use wp_unslash() or similar
862 | ERROR | [ ] Detected usage of a non-sanitized input variable: $_POST['coauthors']
867 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
877 | ERROR | [ ] Missing doc comment for function has_author_terms()
877 | ERROR | [ ] Visibility must be declared on method "has_author_terms"
882 | ERROR | [ ] Doc comment for parameter "$post_id" missing
882 | ERROR | [ ] Doc comment for parameter "$coauthors" missing
882 | ERROR | [ ] Doc comment for parameter "$append" missing
882 | ERROR | [ ] Doc comment for parameter "$query_type" missing
885 | ERROR | [ ] Missing parameter name
886 | ERROR | [ ] Missing parameter name
887 | ERROR | [ ] Missing parameter name
888 | ERROR | [ ] Missing parameter name
894 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
896 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
907 | ERROR | [x] Space after opening control structure is required
907 | ERROR | [x] No space before opening parenthesis is prohibited
907 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found
914 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
915 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
918 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 14 spaces but found 2 spaces
919 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 13 spaces but found 1 space
921 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 15 spaces but found 1 space
929 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
932 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument.
934 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
939 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
944 | WARNING | [ ] Usage of a direct database call is discouraged.
951 | ERROR | [ ] Doc comment for parameter "$delete_id" missing
955 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
955 | ERROR | [ ] Missing parameter name
957 | ERROR | [ ] Visibility must be declared on method "delete_user_action"
960 | ERROR | [ ] Processing form data without nonce verification.
960 | ERROR | [ ] Processing form data without nonce verification.
962 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
964 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
966 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
968 | WARNING | [ ] Usage of a direct database call is discouraged.
968 | WARNING | [ ] Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
980 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
998 | ERROR | [ ] Doc comment for parameter "$terms" missing
998 | ERROR | [ ] Doc comment for parameter "$object_ids" missing
998 | ERROR | [ ] Doc comment for parameter "$taxonomies" missing
998 | ERROR | [ ] Doc comment for parameter "$args" missing
1004 | ERROR | [ ] Visibility must be declared on method "filter_wp_get_object_terms"
1005 | WARNING | [ ] Processing form data without nonce verification.
1010 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
1011 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
1012 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
1013 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
1013 | ERROR | [ ] Use placeholders and $wpdb->prepare(); found interpolated variable $orderby at "SELECT t.name, t.term_id, tt.term_taxonomy_id FROM $wpdb->terms AS t INNER JOIN
| | $wpdb->term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN $wpdb->term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN (%s) AND
| | tr.object_id IN (%s) $orderby $order"
1013 | ERROR | [ ] Use placeholders and $wpdb->prepare(); found interpolated variable $order at "SELECT t.name, t.term_id, tt.term_taxonomy_id FROM $wpdb->terms AS t INNER JOIN
| | $wpdb->term_taxonomy AS tt ON tt.term_id = t.term_id INNER JOIN $wpdb->term_relationships AS tr ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE tt.taxonomy IN (%s) AND
| | tr.object_id IN (%s) $orderby $order"
1014 | WARNING | [ ] Usage of a direct database call is discouraged.
1014 | WARNING | [ ] Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
1014 | ERROR | [ ] Use placeholders and $wpdb->prepare(); found $query
1015 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
1019 | ERROR | [x] There must be no space before the colon in a CASE statement
1022 | ERROR | [x] There must be no space before the colon in a CASE statement
1028 | ERROR | [x] There must be no space before the colon in a CASE statement
1029 | ERROR | [x] There must be no space before the colon in a DEFAULT statement
1045 | ERROR | [ ] Parameter comment must end with a full stop
1046 | ERROR | [ ] Parameter comment must end with a full stop
1049 | ERROR | [ ] Visibility must be declared on method "filter_count_user_posts"
1070 | ERROR | [ ] Doc comment for parameter "$post" missing
1073 | ERROR | [ ] Visibility must be declared on method "current_user_can_set_authors"
1079 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1082 | ERROR | [x] Expected 1 space after closing brace; newline found
1086 | ERROR | [x] Expected 1 space after closing brace; newline found
1091 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1097 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
1101 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1125 | ERROR | [ ] Parameter comment must end with a full stop
1144 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $authordata
1145 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
1149 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
1153 | ERROR | [ ] Assignments must be the first block of code on a line
1154 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
1154 | ERROR | [ ] Assignments must be the first block of code on a line
1155 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
1166 | ERROR | [ ] Parameter comment must end with a full stop
1176 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1177 | ERROR | [x] Array keys must be surrounded by spaces unless they contain a string or an integer.
1190 | ERROR | [ ] $_REQUEST data not unslashed before sanitization. Use wp_unslash() or similar
1190 | ERROR | [ ] Detected usage of a non-sanitized input variable: $_REQUEST['_wpnonce']
1198 | ERROR | [ ] $_REQUEST data not unslashed before sanitization. Use wp_unslash() or similar
1198 | ERROR | [ ] Detected usage of a non-sanitized input variable: $_REQUEST['q']
1199 | ERROR | [ ] Detected usage of a possibly undefined superglobal array index: $_REQUEST['existing_authors']. Use isset() or empty() to check the index exists before using it
1199 | ERROR | [ ] $_REQUEST data not unslashed before sanitization. Use wp_unslash() or similar
1199 | ERROR | [ ] Detected usage of a non-sanitized input variable: $_REQUEST['existing_authors']
1203 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1204 | ERROR | [x] Space after opening control structure is required
1204 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found
1204 | ERROR | [x] Inline control structures are not allowed
1204 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found 'apply_filters'.
1204 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found
1215 | ERROR | [ ] Doc comment for parameter "$search" missing
1215 | ERROR | [ ] Doc comment for parameter "$ignored_authors" missing
1223 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1224 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
1225 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1225 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'count_total'" and double arrow, but found 1.
1226 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1226 | WARNING | [x] Array double arrow not aligned correctly; expected 9 space(s) between "'search'" and double arrow, but found 1.
1227 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1228 | ERROR | [x] Multi-line array item not aligned correctly; expected 16 spaces, but found 20
1233 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1233 | WARNING | [x] Array double arrow not aligned correctly; expected 9 space(s) between "'fields'" and double arrow, but found 1.
1234 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
1245 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1246 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1246 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'get'" and double arrow, but found 1.
1247 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1248 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
1258 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1265 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
1273 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1276 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1277 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1279 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead
1286 | ERROR | [ ] Doc comment for parameter "$pieces" missing
1291 | ERROR | [ ] Visibility must be declared on method "filter_terms_clauses"
1297 | ERROR | [ ] Doc comment for parameter "$hook_suffix" missing
1300 | ERROR | [ ] Visibility must be declared on method "enqueue_scripts"
1313 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'edit_label'" and double arrow, but found 1.
1314 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'delete_label'" and double arrow, but found 1.
1315 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'confirm_delete'" and double arrow, but found 1.
1318 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'help_text'" and double arrow, but found 1.
1319 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
1325 | ERROR | [ ] Doc comment short description must start with a capital letter
1327 | ERROR | [ ] Visibility must be declared on method "load_edit"
1330 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument.
1335 | ERROR | [ ] Doc comment for parameter "$views" missing
1340 | ERROR | [ ] Visibility must be declared on method "filter_views"
1346 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
1347 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
1349 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1349 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'author_name'" and double arrow, but found 11.
1350 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
1351 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
1354 | WARNING | [ ] Processing form data without nonce verification.
1354 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1354 | WARNING | [ ] Processing form data without nonce verification.
1359 | ERROR | [ ] Assignments must be the first block of code on a line
1362 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
1372 | ERROR | [x] Space found after object operator
1378 | ERROR | [x] Opening PHP tag must be on a line by itself
1382 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'action'" and double arrow, but found 1.
1387 | ERROR | [x] Line indented incorrectly; expected at least 13 tabs, found 4
1387 | ERROR | [x] Closing PHP tag must be on a line by itself
1400 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument.
1413 | ERROR | [x] Space after opening control structure is required
1413 | ERROR | [x] No space before opening parenthesis is prohibited
1413 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found
1414 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1417 | ERROR | [x] Space after opening control structure is required
1417 | ERROR | [x] No space before opening parenthesis is prohibited
1417 | ERROR | [x] Expected 1 space(s) after FOREACH keyword; 0 found
1421 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1431 | ERROR | [ ] Doc comment for parameter "$allcaps" missing
1431 | ERROR | [ ] Doc comment for parameter "$caps" missing
1431 | ERROR | [ ] Doc comment for parameter "$args" missing
1434 | ERROR | [ ] Visibility must be declared on method "filter_user_has_cap"
1436 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
1440 | ERROR | [x] Space after opening control structure is required
1440 | ERROR | [x] No space before opening parenthesis is prohibited
1440 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found
1445 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1449 | ERROR | [x] No space found before comment text; expected "// Even though we bail if cap is not among the to_be_filtered ones, there is a time in early request processing in which that list
| | is not yet available, so the following block is needed" but found "//Even though we bail if cap is not among the to_be_filtered ones, there is a time in early request processing
| | in which that list is not yet available, so the following block is needed"
1449 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1451 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1452 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1452 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1453 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1453 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1454 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1455 | ERROR | [x] Array item not aligned correctly; expected 12 spaces but found 16
1456 | ERROR | [x] Array closer not aligned correctly; expected 8 space(s) but found 12
1457 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument.
1461 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1467 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1470 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1485 | ERROR | [ ] Parameter comment must end with a full stop
1495 | WARNING | [ ] Variable assignment found within a condition. Did you mean to do a comparison?
1495 | ERROR | [ ] Assignments must be the first block of code on a line
1499 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1513 | ERROR | [ ] Parameter comment must end with a full stop
1522 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1529 | WARNING | [ ] Variable assignment found within a condition. Did you mean to do a comparison?
1529 | ERROR | [ ] Assignments must be the first block of code on a line
1530 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
1535 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 10 spaces but found 1 space
1536 | WARNING | [x] Array double arrow not aligned correctly; expected 8 space(s) between "'slug'" and double arrow, but found 10.
1537 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'description'" and double arrow, but found 3.
1551 | ERROR | [ ] Missing parameter comment
1552 | ERROR | [ ] Missing parameter comment
1552 | ERROR | [x] Expected 3 spaces after parameter type; 1 found
1555 | ERROR | [ ] Visibility must be declared on method "filter_ef_calendar_item_information_fields"
1557 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1564 | ERROR | [x] Array keys must be surrounded by spaces unless they contain a string or an integer.
1570 | ERROR | [x] Array keys must be surrounded by spaces unless they contain a string or an integer.
1579 | ERROR | [ ] Missing parameter comment
1580 | ERROR | [ ] Missing parameter comment
1581 | ERROR | [ ] Missing parameter comment
1584 | ERROR | [ ] Visibility must be declared on method "filter_ef_story_budget_term_column_value"
1586 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1587 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
1591 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
1611 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 24 spaces but found 1 space
1620 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead
1630 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1649 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
1653 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
1653 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
1653 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
1655 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'order'" and double arrow, but found 1.
1656 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
1670 | ERROR | [ ] Doc comment for parameter "$post_id" missing
1673 | ERROR | [ ] Missing parameter name
1679 | ERROR | [ ] Doc comment for parameter "$object_id" missing
1679 | ERROR | [ ] Doc comment for parameter "$terms" missing
1679 | ERROR | [ ] Doc comment for parameter "$tt_ids" missing
1679 | ERROR | [ ] Doc comment for parameter "$taxonomy" missing
1679 | ERROR | [ ] Doc comment for parameter "$append" missing
1679 | ERROR | [ ] Doc comment for parameter "$old_tt_ids" missing
1682 | ERROR | [ ] Missing parameter name
1686 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1695 | ERROR | [ ] Doc comment for parameter "$title" missing
1698 | ERROR | [ ] Missing parameter name
1704 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1710 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
1712 | 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.
1743 | ERROR | [ ] Doc comment for parameter "$args" missing
1743 | ERROR | [ ] Doc comment for parameter "$id" missing
1746 | ERROR | [ ] Missing parameter name
1747 | ERROR | [ ] Missing parameter name
1756 | ERROR | [x] Whitespace found at end of line
1778 | ERROR | [x] Expected 4 spaces after parameter type; 1 found
1778 | ERROR | [ ] Parameter comment must end with a full stop
1779 | ERROR | [ ] Parameter comment must end with a full stop
1783 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
1784 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 4 spaces
1788 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1789 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1793 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1794 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1794 | ERROR | [ ] Use Yoda Condition checks, you must.
1798 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
1799 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1803 | WARNING | [ ] Silencing errors is strongly discouraged. Use proper error checking instead. Found: @gethostbyaddr( $comment->...
1813 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1814 | WARNING | [x] Equals sign not aligned correctly; expected 1 space but found 2 spaces
1814 | 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.
1817 | 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.
1818 | 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.
1819 | 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.
1824 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1825 | WARNING | [x] Equals sign not aligned correctly; expected 1 space but found 2 spaces
1825 | 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.
1828 | 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.
1833 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1834 | WARNING | [x] Equals sign not aligned correctly; expected 1 space but found 2 spaces
1834 | 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.
1837 | 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.
1844 | 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.
1846 | 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.
1848 | 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.
1850 | 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.
1852 | ERROR | [ ] Detected usage of a possibly undefined superglobal array index: $_SERVER['SERVER_NAME']. Use isset() or empty() to check the index exists before using it
1852 | ERROR | [ ] $_SERVER data not unslashed before sanitization. Use wp_unslash() or similar
1852 | ERROR | [ ] Detected usage of a non-sanitized input variable: $_SERVER['SERVER_NAME']
1854 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
1856 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
1861 | WARNING | [ ] Found: !=. Use strict comparisons (=== or !==).
1873 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
1874 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
1877 | WARNING | [ ] Silencing errors is strongly discouraged. Use proper error checking instead. Found: @wp_mail( $author->...
1887 | ERROR | [ ] Missing parameter comment
1888 | ERROR | [ ] Missing parameter comment
1888 | ERROR | [x] Expected 3 spaces after parameter type; 1 found
1896 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
1921 | ERROR | [x] File must end with a newline character
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 178 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/template-tags.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 257 ERRORS AND 69 WARNINGS AFFECTING 241 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [ ] Class file names should be based on the class name with "class-" prepended. Expected class-coauthorsiterator.php, but found template-tags.php.
1 | ERROR | [ ] Missing file doc comment
3 | ERROR | [ ] Missing doc comment for function get_coauthors()
7 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
21 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
22 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
27 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead
28 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
31 | WARNING | [ ] Usage of a direct database call is discouraged.
31 | WARNING | [ ] Direct database call without caching detected. Consider using wp_cache_get() / wp_cache_set() or wp_cache_delete().
38 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
46 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
46 | ERROR | [ ] Missing parameter comment
47 | ERROR | [ ] Missing parameter comment
47 | ERROR | [x] Expected 8 spaces after parameter type; 1 found
68 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead
75 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
75 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
82 | ERROR | [ ] Missing doc comment for class CoAuthorsIterator
83 | ERROR | [ ] Missing member variable doc comment
83 | ERROR | [ ] The var keyword must not be used to declare a property
83 | ERROR | [ ] Visibility must be declared on property "$position"
84 | ERROR | [ ] Missing member variable doc comment
84 | ERROR | [ ] The var keyword must not be used to declare a property
84 | ERROR | [ ] Visibility must be declared on property "$original_authordata"
85 | ERROR | [ ] Missing member variable doc comment
85 | ERROR | [ ] The var keyword must not be used to declare a property
85 | ERROR | [ ] Visibility must be declared on property "$current_author"
86 | ERROR | [ ] Missing member variable doc comment
86 | ERROR | [ ] The var keyword must not be used to declare a property
86 | ERROR | [ ] Visibility must be declared on property "$authordata_array"
87 | ERROR | [ ] Missing member variable doc comment
87 | ERROR | [ ] The var keyword must not be used to declare a property
87 | ERROR | [ ] Visibility must be declared on property "$count"
89 | ERROR | [ ] Missing doc comment for function __construct()
89 | ERROR | [ ] Visibility must be declared on method "__construct"
89 | ERROR | [ ] Variable "$postID" is not in valid snake_case format, try "$post_i_d"
91 | ERROR | [ ] Variable "$postID" is not in valid snake_case format, try "$post_i_d"
91 | ERROR | [ ] Variable "$postID" is not in valid snake_case format, try "$post_i_d"
92 | ERROR | [ ] Variable "$postID" is not in valid snake_case format, try "$post_i_d"
93 | ERROR | [ ] Variable "$postID" is not in valid snake_case format, try "$post_i_d"
96 | ERROR | [ ] Variable "$postID" is not in valid snake_case format, try "$post_i_d"
97 | WARNING | [ ] trigger_error() found. Debug code should not normally be used in production.
97 | WARNING | [ ] This comment is 75% valid code; is this commented out code?
97 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
100 | ERROR | [ ] Assignments must be the first block of code on a line
101 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
101 | ERROR | [ ] Variable "$postID" is not in valid snake_case format, try "$post_i_d"
106 | ERROR | [ ] Missing doc comment for function iterate()
106 | ERROR | [ ] Visibility must be declared on method "iterate"
110 | ERROR | [x] No space found before comment text; expected "// At the end of the loop" but found "//At the end of the loop"
110 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
112 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $authordata
112 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
112 | ERROR | [ ] Assignments must be the first block of code on a line
117 | ERROR | [x] No space found before comment text; expected "// At the beginning of the loop" but found "//At the beginning of the loop"
117 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
122 | ERROR | [ ] Overriding WordPress globals is prohibited. Found assignment to $authordata
122 | ERROR | [ ] Assignments must be the first block of code on a line
127 | ERROR | [ ] Missing doc comment for function get_position()
127 | ERROR | [ ] Visibility must be declared on method "get_position"
128 | ERROR | [ ] Use Yoda Condition checks, you must.
133 | ERROR | [ ] Missing doc comment for function is_last()
133 | ERROR | [ ] Visibility must be declared on method "is_last"
134 | ERROR | [x] Language constructs must be followed by a single space; expected 1 space but found "··"
136 | ERROR | [ ] Missing doc comment for function is_first()
136 | ERROR | [ ] Visibility must be declared on method "is_first"
137 | ERROR | [ ] Use Yoda Condition checks, you must.
139 | ERROR | [ ] Missing doc comment for function count()
139 | ERROR | [ ] Visibility must be declared on method "count"
142 | ERROR | [ ] Missing doc comment for function get_all()
142 | ERROR | [ ] Visibility must be declared on method "get_all"
147 | ERROR | [x] No space found before comment text; expected "// Helper function for the following new template tags" but found "//Helper function for the following new template tags"
147 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
148 | ERROR | [ ] You must use "/**" style comments for a function comment
151 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
152 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
153 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
154 | ERROR | [x] Expected 1 space after ":"; 2 found
155 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
172 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
186 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
191 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
192 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
192 | ERROR | [ ] Use Yoda Condition checks, you must.
192 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
194 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
194 | ERROR | [ ] Use Yoda Condition checks, you must.
194 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
204 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$output'.
214 | ERROR | [ ] Parameter comment must end with a full stop
215 | ERROR | [ ] Parameter comment must end with a full stop
216 | ERROR | [ ] Parameter comment must end with a full stop
217 | ERROR | [ ] Parameter comment must end with a full stop
218 | ERROR | [x] Expected 3 spaces after parameter type; 1 found
220 | ERROR | [ ] Variable "$betweenLast" is not in valid snake_case format, try "$between_last"
221 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
221 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
221 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
222 | WARNING | [x] Array double arrow not aligned correctly; expected 5 space(s) between "'between'" and double arrow, but found 1.
223 | ERROR | [ ] Variable "$betweenLast" is not in valid snake_case format, try "$between_last"
224 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'before'" and double arrow, but found 1.
225 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'after'" and double arrow, but found 1.
226 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
226 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
226 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
233 | ERROR | [ ] Parameter comment must end with a full stop
234 | ERROR | [ ] Parameter comment must end with a full stop
235 | ERROR | [ ] Parameter comment must end with a full stop
236 | ERROR | [ ] Parameter comment must end with a full stop
237 | ERROR | [x] Expected 3 spaces after parameter type; 1 found
239 | ERROR | [ ] Variable "$betweenLast" is not in valid snake_case format, try "$between_last"
255 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
255 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
255 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
257 | ERROR | [ ] Variable "$betweenLast" is not in valid snake_case format, try "$between_last"
260 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
260 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
260 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
272 | ERROR | [ ] Missing parameter comment
276 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
285 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
287 | WARNING | [x] Array double arrow not aligned correctly; expected 8 space(s) between "'href'" and double arrow, but found 1.
288 | WARNING | [x] Array double arrow not aligned correctly; expected 9 space(s) between "'rel'" and double arrow, but found 1.
289 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'title'" and double arrow, but found 1.
289 | 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.
290 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'class'" and double arrow, but found 1.
291 | WARNING | [x] Array double arrow not aligned correctly; expected 8 space(s) between "'text'" and double arrow, but found 1.
292 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'after_html'" and double arrow, but found 1.
294 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
309 | ERROR | [ ] Parameter comment must end with a full stop
310 | ERROR | [ ] Parameter comment must end with a full stop
311 | ERROR | [ ] Parameter comment must end with a full stop
312 | ERROR | [ ] Parameter comment must end with a full stop
313 | ERROR | [x] Expected 3 spaces after parameter type; 1 found
315 | ERROR | [ ] Variable "$betweenLast" is not in valid snake_case format, try "$between_last"
316 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
316 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
316 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
317 | WARNING | [x] Array double arrow not aligned correctly; expected 5 space(s) between "'between'" and double arrow, but found 1.
318 | ERROR | [ ] Variable "$betweenLast" is not in valid snake_case format, try "$between_last"
319 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'before'" and double arrow, but found 1.
320 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'after'" and double arrow, but found 1.
321 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
321 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
321 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
327 | ERROR | [ ] Parameter comment must end with a full stop
328 | ERROR | [ ] Parameter comment must end with a full stop
329 | ERROR | [ ] Parameter comment must end with a full stop
330 | ERROR | [ ] Parameter comment must end with a full stop
331 | ERROR | [x] Expected 3 spaces after parameter type; 1 found
333 | ERROR | [ ] Variable "$betweenLast" is not in valid snake_case format, try "$between_last"
334 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
334 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
334 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
335 | WARNING | [x] Array double arrow not aligned correctly; expected 5 space(s) between "'between'" and double arrow, but found 1.
336 | ERROR | [ ] Variable "$betweenLast" is not in valid snake_case format, try "$between_last"
337 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'before'" and double arrow, but found 1.
338 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'after'" and double arrow, but found 1.
339 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
339 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
339 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
345 | ERROR | [ ] Parameter comment must end with a full stop
346 | ERROR | [ ] Parameter comment must end with a full stop
347 | ERROR | [ ] Parameter comment must end with a full stop
348 | ERROR | [ ] Parameter comment must end with a full stop
349 | ERROR | [x] Expected 3 spaces after parameter type; 1 found
351 | ERROR | [ ] Variable "$betweenLast" is not in valid snake_case format, try "$between_last"
352 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
352 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
352 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
353 | WARNING | [x] Array double arrow not aligned correctly; expected 5 space(s) between "'between'" and double arrow, but found 1.
354 | ERROR | [ ] Variable "$betweenLast" is not in valid snake_case format, try "$between_last"
355 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'before'" and double arrow, but found 1.
356 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'after'" and double arrow, but found 1.
357 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
357 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
357 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
363 | ERROR | [ ] Parameter comment must end with a full stop
364 | ERROR | [ ] Parameter comment must end with a full stop
365 | ERROR | [ ] Parameter comment must end with a full stop
366 | ERROR | [ ] Parameter comment must end with a full stop
367 | ERROR | [x] Expected 3 spaces after parameter type; 1 found
369 | ERROR | [ ] Variable "$betweenLast" is not in valid snake_case format, try "$between_last"
385 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
385 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
385 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
387 | ERROR | [ ] Variable "$betweenLast" is not in valid snake_case format, try "$between_last"
390 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
390 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
390 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
402 | ERROR | [ ] Parameter comment must end with a full stop
403 | ERROR | [ ] Parameter comment must end with a full stop
404 | ERROR | [ ] Parameter comment must end with a full stop
405 | ERROR | [ ] Parameter comment must end with a full stop
406 | ERROR | [x] Expected 3 spaces after parameter type; 1 found
408 | ERROR | [ ] Variable "$betweenLast" is not in valid snake_case format, try "$between_last"
409 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
409 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
409 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
410 | WARNING | [x] Array double arrow not aligned correctly; expected 5 space(s) between "'between'" and double arrow, but found 1.
411 | ERROR | [ ] Variable "$betweenLast" is not in valid snake_case format, try "$between_last"
412 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'before'" and double arrow, but found 1.
413 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'after'" and double arrow, but found 1.
414 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
414 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
414 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
420 | ERROR | [ ] Missing parameter comment
425 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
427 | 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.
430 | ERROR | [x] Expected 1 space after closing brace; newline found
432 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
434 | 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.
437 | ERROR | [x] Expected 1 space after closing brace; newline found
446 | ERROR | [ ] Parameter comment must end with a full stop
447 | ERROR | [ ] Parameter comment must end with a full stop
448 | ERROR | [ ] Parameter comment must end with a full stop
449 | ERROR | [ ] Parameter comment must end with a full stop
450 | ERROR | [x] Expected 3 spaces after parameter type; 1 found
452 | ERROR | [ ] Variable "$betweenLast" is not in valid snake_case format, try "$between_last"
453 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
453 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
453 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
454 | WARNING | [x] Array double arrow not aligned correctly; expected 5 space(s) between "'between'" and double arrow, but found 1.
455 | ERROR | [ ] Variable "$betweenLast" is not in valid snake_case format, try "$between_last"
456 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'before'" and double arrow, but found 1.
457 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'after'" and double arrow, but found 1.
458 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
458 | ERROR | [x] Only one argument is allowed per line in a multi-line function call
458 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself
464 | ERROR | [ ] Parameter comment must end with a full stop
465 | ERROR | [ ] Parameter comment must end with a full stop
470 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
472 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
473 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
474 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
474 | ERROR | [x] Expected 1 space after closing brace; newline found
475 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
476 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
477 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
477 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
478 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
479 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
480 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
481 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
483 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
485 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
485 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument.
486 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
487 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
489 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
490 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
492 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
493 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
494 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
495 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
496 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
496 | ERROR | [x] Expected 1 space after closing brace; newline found
497 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
497 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead
498 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
499 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
501 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
502 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
503 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
503 | ERROR | [x] Expected 1 space after closing brace; newline found
504 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
505 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
506 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
507 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
509 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
513 | ERROR | [ ] Missing doc comment for function the_coauthor_meta()
514 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
514 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
515 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
516 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
517 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
518 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed
530 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment
537 | WARNING | [x] Array double arrow not aligned correctly; expected 13 space(s) between "'optioncount'" and double arrow, but found 8.
538 | WARNING | [x] Array double arrow not aligned correctly; expected 11 space(s) between "'show_fullname'" and double arrow, but found 6.
539 | WARNING | [x] Array double arrow not aligned correctly; expected 14 space(s) between "'hide_empty'" and double arrow, but found 9.
540 | WARNING | [x] Array double arrow not aligned correctly; expected 20 space(s) between "'feed'" and double arrow, but found 15.
541 | WARNING | [x] Array double arrow not aligned correctly; expected 14 space(s) between "'feed_image'" and double arrow, but found 9.
542 | WARNING | [x] Array double arrow not aligned correctly; expected 15 space(s) between "'feed_type'" and double arrow, but found 10.
543 | WARNING | [x] Array double arrow not aligned correctly; expected 20 space(s) between "'echo'" and double arrow, but found 15.
544 | WARNING | [x] Array double arrow not aligned correctly; expected 19 space(s) between "'style'" and double arrow, but found 14.
545 | WARNING | [x] Array double arrow not aligned correctly; expected 20 space(s) between "'html'" and double arrow, but found 15.
546 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed
546 | WARNING | [x] Array double arrow not aligned correctly; expected 18 space(s) between "'number'" and double arrow, but found 13.
546 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
547 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'guest_authors_only'" and double arrow, but found 1.
551 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
554 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
555 | ERROR | [x] Array item not aligned correctly; expected 8 spaces but found 12
555 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'orderby'" and double arrow, but found 6.
556 | ERROR | [x] Array item not aligned correctly; expected 8 spaces but found 12
556 | WARNING | [x] Array double arrow not aligned correctly; expected 5 space(s) between "'number'" and double arrow, but found 7.
557 | ERROR | [x] Array item not aligned correctly; expected 8 spaces but found 12
557 | ERROR | [ ] Empty line required before block comment
558 | ERROR | [x] Multi-line array item not aligned correctly; expected 9 spaces, but found 13
561 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'hide_empty'" and double arrow, but found 3.
561 | ERROR | [x] Short form type keywords must be used. Found: (boolean)
562 | ERROR | [x] Array closer not aligned correctly; expected 4 space(s) but found 8
567 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
568 | WARNING | [ ] Variable assignment found within a condition. Did you mean to do a comparison?
568 | ERROR | [ ] Assignments must be the first block of code on a line
574 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
575 | ERROR | [x] Expected 1 space after "||"; 2 found
575 | ERROR | [ ] Use Yoda Condition checks, you must.
577 | ERROR | [x] Expected 1 space after closing brace; newline found
585 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
588 | ERROR | [x] Array keys must be surrounded by spaces unless they contain a string or an integer.
614 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
622 | 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.
658 | ERROR | [x] Concat operator must be surrounded by a single space
662 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
664 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead
674 | ERROR | [ ] All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '$return'.
686 | ERROR | [x] Expected 7 spaces after parameter type; 8 found
687 | ERROR | [x] Expected 10 spaces after parameter type; 11 found
688 | ERROR | [x] Expected 7 spaces after parameter type; 8 found
694 | ERROR | [x] Expected 7 spaces after parameter type; 8 found
695 | ERROR | [x] Expected 1 spaces after parameter type; 2 found
705 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==).
713 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 180 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/nielslange/wpvip/plugins/Co-Authors-Plus/deprecated.php
-------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------
1 | ERROR | There must be no blank lines before the file comment
5 | ERROR | There must be exactly one blank line after the file comment
5 | ERROR | Missing @package tag in file comment
-------------------------------------------------------------------------
Time: 5.25 secs; Memory: 34MB
In case, we decide to reformat the plugin code, instead of a single PR with hundred of change files, we can split them to different PRs.
What would be the benefit of creating separate PRs for each file instead of one PR for all files, if the PR only aims to correct the formating?
I just checked the plugin using cloc and it has 18 PHP files:
$ cloc .
41 text files.
41 unique files.
5 files ignored.
github.com/AlDanial/cloc v 1.88 T=0.17 s (217.5 files/s, 86770.2 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
PHP 18 1773 1920 5217
PO File 7 902 1030 2108
CSS 3 63 30 556
JavaScript 3 88 97 368
Markdown 1 74 0 303
Bourne Shell 1 21 6 85
YAML 1 9 24 36
JSON 1 0 0 27
XML 1 0 0 17
make 1 3 0 6
-------------------------------------------------------------------------------
SUM: 37 2933 3107 8723
-------------------------------------------------------------------------------
This would mean that we need top create 18 PRs, which when not merged simultaniously will be rather useless as we cannot use the auto-formatting option until the last PR had been merged. If we would refactor the files in a way that functionality would be affected, I'd split them. But to correct the formatting, I see creating separate PRs as rather inefficient.
What would be the benefit of creating separate PRs for each file instead of one PR for all files, if the PR only aims to correct the formating?
I am not entirely sure we can 100% be confident regarding PHPCBF. Hence, I think we may still need to review changes manually but quickly.
Also, it's not necessary to have 18 PRs. It might start with the most PHP simple files first then move on. Maybe a few files at one time.
@htdat I just quickly span up a drafted PR to show in how far the files will be affected by running phpcbf
against the repo. You can find the drafted PR on https://github.com/Automattic/Co-Authors-Plus/pull/771.
The reason why I would run that command against the entire repo is to ensure the correct formatting for all files at once. In addition, creating multiple PRs and running the command against single files is more effort than simply running the command against the entire repo at once. That said, it definitely increases the review effort. However, as no functional changes take place, reviewing that PR should be fairly straight-forward.
Agreed with @nielslange. If it's just spacing and formatting changes, I think we can do the entire plugin (rather than several atomic commits) in a PR but test extensively to ensure that nothing has been functionally broken from it. This would make reverting easier (if needed be) rather than reverting many PRs.
At the moment, the code of the plugin is not correctly formatted. Therefore, it's not possible to run
phpcs
respectivelyphpbf
to correct the formatting automatically, as this would lead to hundreds of changes. Therefore, I suggest refactoring the format of the plugin, so that the code can be formatted automatically in the future.@rebeccahum & @htdat: Can I have your thoughts on this suggestion?