Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gedex/b59d74d31d17488455c39b3a2f1d3de4 to your computer and use it in GitHub Desktop.
Save gedex/b59d74d31d17488455c39b3a2f1d3de4 to your computer and use it in GitHub Desktop.
FILE: ...ing-per-product/includes/class-wc-shipping-per-product-admin.php
----------------------------------------------------------------------
FOUND 48 ERRORS AFFECTING 30 LINES
----------------------------------------------------------------------
1 | ERROR | [ ] Missing file doc comment
7 | ERROR | [ ] Missing class doc comment
35 | ERROR | [x] Each line in an array declaration must end in a
| | comma
49 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
49 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found
49 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
49 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found
49 | ERROR | [x] Expected 1 space before array closer, found 2.
49 | ERROR | [x] When an array uses associative keys, each value
| | should start on a new line.
54 | ERROR | [ ] Doc comment for parameter "$loop" missing
54 | ERROR | [ ] Doc comment for parameter "$variation_data"
| | missing
54 | ERROR | [ ] Doc comment for parameter "$variation" missing
60 | ERROR | [x] String "yes" does not require double quotes; use
| | single quotes instead
64 | ERROR | [ ] Doc comment for parameter "$loop" missing
64 | ERROR | [ ] Doc comment for parameter "$variation_data"
| | missing
64 | ERROR | [ ] Doc comment for parameter "$variation" missing
73 | ERROR | [ ] Doc comment for parameter "$post_id" missing
85 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found
85 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found
85 | ERROR | [x] When an array uses associative keys, each value
| | should start on a new line.
91 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
91 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found
92 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
92 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found
93 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
93 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found
94 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
94 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found
95 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
95 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found
105 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
105 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found
113 | ERROR | [x] Line indented incorrectly; expected 5 tabs, found
| | 6
124 | ERROR | [x] Line indented incorrectly; expected 5 tabs, found
| | 6
132 | ERROR | [ ] Doc comment for parameter "$post_id" missing
138 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
156 | ERROR | [ ] Use Yoda Condition checks, you must.
168 | ERROR | [x] Each line in an array declaration must end in a
| | comma
183 | ERROR | [x] Each line in an array declaration must end in a
| | comma
187 | ERROR | [x] Each line in an array declaration must end in a
| | comma
201 | ERROR | [ ] Missing parameter comment
212 | ERROR | [ ] Doc comment for parameter "$index" missing
214 | ERROR | [x] There must be exactly one blank line before the
| | tags in a doc comment
214 | ERROR | [ ] Parameter comment must end with a full stop
232 | ERROR | [ ] Use Yoda Condition checks, you must.
244 | ERROR | [x] Each line in an array declaration must end in a
| | comma
259 | ERROR | [x] Each line in an array declaration must end in a
| | comma
263 | ERROR | [x] Each line in an array declaration must end in a
| | comma
----------------------------------------------------------------------
PHPCBF CAN FIX THE 32 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...-per-product/includes/class-wc-shipping-per-product-importer.php
----------------------------------------------------------------------
FOUND 61 ERRORS AND 5 WARNINGS AFFECTING 47 LINES
----------------------------------------------------------------------
1 | ERROR | [ ] Missing file doc comment
9 | ERROR | [ ] Missing class doc comment
11 | ERROR | [ ] Missing member variable doc comment
12 | ERROR | [ ] Missing member variable doc comment
13 | ERROR | [ ] Missing member variable doc comment
14 | ERROR | [ ] Missing member variable doc comment
15 | ERROR | [ ] Missing member variable doc comment
15 | ERROR | [ ] Assignments must be the first block of code on a
| | line
16 | ERROR | [ ] Missing member variable doc comment
17 | ERROR | [ ] Missing member variable doc comment
37 | ERROR | [x] Inline control structures are not allowed
40 | ERROR | [x] Inline control structures are not allowed
52 | ERROR | [x] Inline control structures are not allowed
54 | ERROR | [x] Expected 1 space after ELSE keyword; newline
| | found
54 | ERROR | [x] Inline control structures are not allowed
59 | ERROR | [x] Inline control structures are not allowed
62 | WARNING | [ ] Silencing errors is discouraged
62 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
62 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
63 | WARNING | [ ] Silencing errors is discouraged
64 | WARNING | [ ] Silencing errors is discouraged
74 | ERROR | [ ] Doc comment short description must start with a
| | capital letter
77 | ERROR | [ ] Missing parameter comment
78 | ERROR | [ ] Missing parameter comment
79 | ERROR | [ ] Function return type is void, but function
| | contains return statement
82 | ERROR | [ ] Use Yoda Condition checks, you must.
86 | ERROR | [ ] Doc comment short description must start with a
| | capital letter
89 | ERROR | [ ] Missing parameter comment
95 | ERROR | [ ] Assignments must be the first block of code on a
| | line
97 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
97 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
106 | ERROR | [ ] Assignments must be the first block of code on a
| | line
106 | ERROR | [x] String "r" does not require double quotes; use
| | single quotes instead
106 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected
| | "false" but found "FALSE"
114 | ERROR | [ ] Assignments must be the first block of code on a
| | line
114 | ERROR | [x] TRUE, FALSE and NULL must be lowercase; expected
| | "false" but found "FALSE"
121 | ERROR | [x] Inline control structures are not allowed
121 | ERROR | [ ] Use Yoda Condition checks, you must.
123 | ERROR | [x] Inline control structures are not allowed
123 | ERROR | [ ] Use Yoda Condition checks, you must.
125 | ERROR | [x] Inline control structures are not allowed
125 | ERROR | [ ] Use Yoda Condition checks, you must.
129 | ERROR | [x] String "woocommerce_per_product_shipping_rules"
| | does not require double quotes; use single
| | quotes instead
137 | ERROR | [x] Each line in an array declaration must end in a
| | comma
143 | ERROR | [x] Blank line found after control structure
157 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
159 | ERROR | [x] Concat operator must be surrounded by a single
| | space
159 | WARNING | [ ] 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.
159 | ERROR | [x] Multiple placeholders should be ordered.
| | Expected '%1$s, %2$s', but got %s, %s.
159 | ERROR | [x] Concat operator must be surrounded by a single
| | space
204 | ERROR | [x] Blank line found after control structure
212 | ERROR | [ ] Doc comment short description must start with a
| | capital letter
223 | ERROR | [ ] Doc comment short description must start with a
| | capital letter
233 | ERROR | [ ] Doc comment short description must start with a
| | capital letter
242 | ERROR | [x] Concat operator must be surrounded by a single
| | space
252 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
252 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
256 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
256 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
256 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
256 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
267 | WARNING | [ ] 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.
267 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
286 | ERROR | [ ] Doc comment for parameter "$val" missing
288 | ERROR | [x] There must be exactly one blank line before the
| | tags in a doc comment
294 | ERROR | [x] File must end with a newline character
----------------------------------------------------------------------
PHPCBF CAN FIX THE 33 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...-shipping-per-product/includes/class-wc-shipping-per-product.php
----------------------------------------------------------------------
FOUND 40 ERRORS AND 1 WARNING AFFECTING 36 LINES
----------------------------------------------------------------------
1 | ERROR | [ ] Missing file doc comment
28 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
29 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
38 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
40 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
43 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
44 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
45 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
46 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
47 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
51 | ERROR | [x] Each line in an array declaration must end in a
| | comma
58 | ERROR | [x] Each line in an array declaration must end in a
| | comma
76 | ERROR | [x] Each line in an array declaration must end in a
| | comma
84 | ERROR | [x] Each line in an array declaration must end in a
| | comma
92 | ERROR | [x] Each line in an array declaration must end in a
| | comma
99 | ERROR | [x] Each line in an array declaration must end in a
| | comma
100 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
100 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
101 | ERROR | [x] Each line in an array declaration must end in a
| | comma
101 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
101 | ERROR | [x] Expected 1 spaces before closing bracket; 0
| | found
104 | ERROR | [x] Each line in an array declaration must end in a
| | comma
110 | ERROR | [x] Each line in an array declaration must end in a
| | comma
113 | ERROR | [x] Tabs must be used to indent lines; spaces are
| | not allowed
125 | ERROR | [ ] Use Yoda Condition checks, you must.
142 | ERROR | [ ] Use Yoda Condition checks, you must.
149 | ERROR | [ ] Use Yoda Condition checks, you must.
150 | WARNING | [ ] This comment is 50% valid code; is this
| | commented out code?
150 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
153 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
157 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
162 | ERROR | [ ] Use Yoda Condition checks, you must.
167 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
171 | ERROR | [x] Blank line found after control structure
178 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
185 | ERROR | [ ] Use Yoda Condition checks, you must.
190 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
197 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
202 | ERROR | [x] Each line in an array declaration must end in a
| | comma
202 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
205 | ERROR | [x] File must end with a newline character
----------------------------------------------------------------------
PHPCBF CAN FIX THE 24 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...pping-per-product/includes/functions-wc-shipping-per-product.php
----------------------------------------------------------------------
FOUND 20 ERRORS AFFECTING 20 LINES
----------------------------------------------------------------------
1 | ERROR | [ ] Missing file doc comment
7 | ERROR | [ ] Doc comment for parameter "$standalone" missing
8 | ERROR | [ ] Doc comment short description must start with a
| | capital letter
10 | ERROR | [ ] Missing parameter comment
11 | ERROR | [ ] Missing parameter comment
19 | ERROR | [x] Inline control structures are not allowed
22 | ERROR | [x] Inline control structures are not allowed
23 | ERROR | [ ] Inline comments must end in full-stops, exclamation
| | marks, or question marks
29 | 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
41 | ERROR | [ ] Inline comments must end in full-stops, exclamation
| | marks, or question marks
44 | ERROR | [ ] Inline comments must end in full-stops, exclamation
| | marks, or question marks
45 | ERROR | [x] Tabs must be used to indent lines; spaces are not
| | allowed
46 | ERROR | [x] Tabs must be used to indent lines; spaces are not
| | allowed
47 | ERROR | [x] Tabs must be used to indent lines; spaces are not
| | allowed
52 | ERROR | [ ] Use placeholders and $wpdb->prepare(); found
| | $valid_postcodes
56 | ERROR | [x] Tabs must be used to indent lines; spaces are not
| | allowed
57 | ERROR | [x] Tabs must be used to indent lines; spaces are not
| | allowed
59 | ERROR | [x] Tabs must be used to indent lines; spaces are not
| | allowed
60 | ERROR | [x] File must end with a newline character
----------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...p-content/plugins/woocommerce-shipping-per-product/installer.php
----------------------------------------------------------------------
FOUND 16 ERRORS AFFECTING 9 LINES
----------------------------------------------------------------------
1 | ERROR | [ ] Missing file doc comment
13 | ERROR | [x] Expected 1 space after IF keyword; 0 found
13 | ERROR | [x] Space after opening control structure is required
13 | ERROR | [x] No space before opening parenthesis is prohibited
13 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
16 | ERROR | [x] Expected 1 space after IF keyword; 0 found
16 | ERROR | [x] Space after opening control structure is required
16 | ERROR | [x] No space before opening parenthesis is prohibited
16 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
37 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
37 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found
39 | ERROR | [ ] Inline comments must end in full-stops, exclamation
| | marks, or question marks
53 | ERROR | [x] Each line in an array declaration must end in a
| | comma
58 | ERROR | [x] Tabs must be used to indent lines; spaces are not
| | allowed
59 | ERROR | [x] Tabs must be used to indent lines; spaces are not
| | allowed
62 | ERROR | [x] File must end with a newline character
----------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...lugins/woocommerce-shipping-per-product/shipping-per-product.php
----------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
4 | ERROR | [x] Whitespace found at end of line
9 | ERROR | [ ] There must be exactly one blank line after the file
| | comment
9 | ERROR | [ ] Missing @package tag in file comment
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...p-content/plugins/woocommerce-shipping-per-product/uninstall.php
----------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------
4 | ERROR | [ ] There must be exactly one blank line after the file
| | comment
4 | ERROR | [ ] Missing @package tag in file comment
5 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found
5 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found
11 | ERROR | [ ] Inline comments must end in full-stops, exclamation
| | marks, or question marks
12 | ERROR | [x] String "DROP TABLE IF EXISTS " does not require
| | double quotes; use single quotes instead
12 | ERROR | [x] String "woocommerce_per_product_shipping_rules"
| | does not require double quotes; use single quotes
| | instead
12 | ERROR | [x] File must end with a newline character
----------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...mmerce-shipping-per-product/woocommerce-shipping-per-product.php
----------------------------------------------------------------------
FOUND 22 ERRORS AFFECTING 18 LINES
----------------------------------------------------------------------
15 | ERROR | [ ] Missing @package tag in file comment
15 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found
35 | ERROR | [ ] Missing class doc comment
83 | ERROR | [x] There must be exactly one blank line before the
| | tags in a doc comment
83 | ERROR | [x] Expected 2 spaces after parameter type; 1 found
83 | ERROR | [ ] Parameter comment must end with a full stop
84 | ERROR | [ ] Parameter comment must end with a full stop
88 | ERROR | [ ] Use Yoda Condition checks, you must.
90 | ERROR | [x] Expected 1 space after "=>"; 2 found
91 | ERROR | [x] Expected 1 space after "=>"; 2 found
103 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found
129 | ERROR | [ ] Missing parameter comment
137 | ERROR | [ ] Doc comment for parameter "$rates" missing
137 | ERROR | [ ] Doc comment for parameter "$package" missing
139 | ERROR | [x] There must be exactly one blank line before the
| | tags in a doc comment
147 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
148 | ERROR | [ ] Use Yoda Condition checks, you must.
152 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
153 | ERROR | [ ] Use Yoda Condition checks, you must.
170 | ERROR | [ ] Use Yoda Condition checks, you must.
183 | ERROR | [ ] Use Yoda Condition checks, you must.
188 | ERROR | [ ] Inline comments must end in full-stops,
| | exclamation marks, or question marks
----------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
Time: 531ms; Memory: 14Mb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment