FILE: ...press-7\wp-content\plugins\snap-finance-checkout\snap-finance-checkout.php -------------------------------------------------------------------------------- FOUND 134 ERRORS AND 3 WARNINGS AFFECTING 65 LINES -------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found | | "\r\n" 55 | ERROR | [ ] Missing doc comment for function add_gateway() 66 | ERROR | [x] If control structure block found as the only statement | | within an "else" block. Use elseif instead. 67 | WARNING | [ ] Not using strict comparison for in_array; supply true for | | $strict argument. 67 | ERROR | [ ] A hook was found, but was not accompanied by a docblock | | comment on the line above to clarify the meaning of the | | hook. 85 | ERROR | [ ] Missing doc comment for function | | deactivate_snap_finance_checkout() 99 | ERROR | [ ] Missing doc comment for function | | shiping_round_option_mail() 115 | ERROR | [ ] Missing doc comment for function | | activate_snap_finance_checkout() 127 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 134 | ERROR | [ ] Missing doc comment for function | | snap_finance_checkout_error_notice() 137 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 146 | ERROR | [x] Opening parenthesis of a multi-line function call must be | | the last content on the line 146 | ERROR | [x] Only one argument is allowed per line in a multi-line | | function call 146 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found 147 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 147 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 147 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 148 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 148 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 149 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 150 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 151 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 152 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 153 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 154 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 155 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 156 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 157 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 158 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 159 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 160 | ERROR | [x] Closing parenthesis of a multi-line function call must be | | on a line by itself 162 | ERROR | [x] Opening parenthesis of a multi-line function call must be | | the last content on the line 162 | ERROR | [x] Only one argument is allowed per line in a multi-line | | function call 162 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found 163 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 163 | ERROR | [x] No space after opening parenthesis is prohibited 163 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 163 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 163 | ERROR | [x] No space before closing parenthesis is prohibited 164 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 164 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 164 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 165 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 166 | ERROR | [x] Only one argument is allowed per line in a multi-line | | function call 166 | ERROR | [x] Closing parenthesis of a multi-line function call must be | | on a line by itself 168 | ERROR | [x] Opening parenthesis of a multi-line function call must be | | the last content on the line 168 | ERROR | [x] Only one argument is allowed per line in a multi-line | | function call 169 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 169 | ERROR | [x] Whitespace found at end of line 170 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 170 | ERROR | [x] No space after opening parenthesis is prohibited 170 | ERROR | [x] Expected 1 space before "!"; 0 found 170 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 170 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 170 | ERROR | [x] No space before closing parenthesis is prohibited 171 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 171 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 171 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 172 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 172 | ERROR | [x] Whitespace found at end of line 173 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 175 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 175 | ERROR | [x] Opening parenthesis of a multi-line function call must be | | the last content on the line 175 | ERROR | [x] Only one argument is allowed per line in a multi-line | | function call 175 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 175 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 176 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 177 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 177 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 177 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 178 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 178 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 178 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 179 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 180 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 180 | ERROR | [x] Whitespace found at end of line 181 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 181 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 181 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 182 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 183 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 183 | ERROR | [x] Closing parenthesis of a multi-line function call must be | | on a line by itself 184 | ERROR | [x] Closing parenthesis of a multi-line function call must be | | on a line by itself 186 | ERROR | [x] Opening parenthesis of a multi-line function call must be | | the last content on the line 186 | ERROR | [x] Only one argument is allowed per line in a multi-line | | function call 186 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found 186 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 186 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 187 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 188 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 189 | ERROR | [x] Closing parenthesis of a multi-line function call must be | | on a line by itself 191 | ERROR | [x] Opening parenthesis of a multi-line function call must be | | the last content on the line 191 | ERROR | [x] Only one argument is allowed per line in a multi-line | | function call 191 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found 191 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 191 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 192 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 192 | ERROR | [x] No space after opening parenthesis is prohibited 192 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 192 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 192 | ERROR | [x] No space before closing parenthesis is prohibited 193 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 194 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 195 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 196 | ERROR | [x] Closing parenthesis of a multi-line function call must be | | on a line by itself 200 | ERROR | [ ] Missing doc comment for function | | snap_finance_init_gateway_class() 202 | WARNING | [ ] This comment is 75% valid code; is this commented out | | code? 202 | ERROR | [x] No space found before comment text; expected "// include | | 'config.php';" but found "//include 'config.php';" 202 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 205 | ERROR | [x] "include" is a statement not a function; no parentheses | | are required 205 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 205 | ERROR | [x] Concat operator must be surrounded by a single space 205 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 207 | ERROR | [x] "include" is a statement not a function; no parentheses | | are required 207 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 207 | ERROR | [x] Concat operator must be surrounded by a single space 207 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 209 | ERROR | [x] "include" is a statement not a function; no parentheses | | are required 209 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 209 | ERROR | [x] Concat operator must be surrounded by a single space 209 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 211 | ERROR | [x] "include" is a statement not a function; no parentheses | | are required 211 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 211 | ERROR | [x] Concat operator must be surrounded by a single space 211 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 213 | ERROR | [x] "include" is a statement not a function; no parentheses | | are required 213 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 213 | ERROR | [x] Concat operator must be surrounded by a single space 213 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 215 | ERROR | [x] "include" is a statement not a function; no parentheses | | are required 215 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 215 | ERROR | [x] Concat operator must be surrounded by a single space 215 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 218 | ERROR | [x] "include" is a statement not a function; no parentheses | | are required 218 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 218 | ERROR | [x] Concat operator must be surrounded by a single space 218 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 125 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...ress-7\wp-content\plugins\snap-finance-checkout\snap-finance-functions.php -------------------------------------------------------------------------------- FOUND 178 ERRORS AND 84 WARNINGS AFFECTING 192 LINES -------------------------------------------------------------------------------- 1 | ERROR | [ ] Missing file doc comment 1 | ERROR | [x] End of line character is invalid; expected "\n" but found | | "\r\n" 15 | ERROR | [ ] Missing doc comment for function | | snap_finance_connect_admin_notice() 16 | WARNING | [ ] Found unknown capability "manage_woocommerce" in function | | call to current_user_can(). Please check the spelling of | | the capability. If this is a custom capability, please | | verify the capability is registered with WordPress via a | | call to WP_Role(s)->add_cap(). | | Custom capabilities can be made known to this sniff by | | setting the "custom_capabilities" property in the PHPCS | | ruleset. 31 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 35 | ERROR | [ ] Missing doc comment for function | | action_woocommerce_settings_save_current_tab() 36 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 36 | ERROR | [ ] Processing form data without nonce verification. 39 | WARNING | [x] Empty PHP statement detected: superfluous semicolon. 43 | ERROR | [ ] Missing doc comment for function after_complete_payment() 44 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 44 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 48 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 48 | ERROR | [ ] Use Yoda Condition checks, you must. 57 | ERROR | [x] Function closing brace must go on the next line following | | the body; found 1 blank lines before brace 59 | ERROR | [ ] Missing doc comment for function add_log_message() 63 | WARNING | [ ] file_get_contents() is discouraged. Use wp_remote_get() | | for remote URLs instead. 65 | ERROR | [ ] date() is affected by runtime timezone changes which can | | cause date/time to be incorrectly displayed. Use gmdate() | | instead. 66 | WARNING | [ ] File operations should use WP_Filesystem methods instead | | of direct PHP filesystem calls. Found: | | file_put_contents(). 69 | ERROR | [ ] Missing doc comment for function | | snap_finance_load_textdomain() 74 | WARNING | [x] Loose comparisons are not allowed. Expected: "!=="; Found: | | "!=" 74 | ERROR | [ ] Use Yoda Condition checks, you must. 74 | WARNING | [x] Loose comparisons are not allowed. Expected: "!=="; Found: | | "!=" 74 | ERROR | [ ] Use Yoda Condition checks, you must. 82 | ERROR | [ ] Missing doc comment for function | | snap_finance_title_change() 83 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 83 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 86 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 86 | ERROR | [ ] Use Yoda Condition checks, you must. 94 | WARNING | [ ] The method parameter $tax_display is never used 94 | ERROR | [ ] Missing doc comment for function | | snap_finance_application_id_details() 100 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 100 | ERROR | [ ] Use Yoda Condition checks, you must. 117 | ERROR | [ ] Missing doc comment for function | | snap_finance_enqueue_checkout_state_script() 180 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 194 | ERROR | [ ] Missing doc comment for function wc_snap_finance_style() 195 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 195 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 201 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 201 | ERROR | [ ] Use Yoda Condition checks, you must. 206 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 206 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 212 | WARNING | [ ] This comment is 58% valid code; is this commented out | | code? 215 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 8 spaces but found 20 spaces 219 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 4 spaces but found 5 spaces 220 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 5 spaces but found 6 spaces 221 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 1 space but found 2 spaces 222 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 3 spaces but found 4 spaces 224 | WARNING | [x] Equals sign not aligned correctly; expected 1 space but | | found 2 spaces 226 | WARNING | [x] Equals sign not aligned correctly; expected 1 space but | | found 11 spaces 239 | ERROR | [x] Functions must not contain multiple empty lines in a row; | | found 2 empty lines 241 | WARNING | [x] Loose comparisons are not allowed. Expected: "!=="; Found: | | "!=" 241 | ERROR | [ ] Use Yoda Condition checks, you must. 242 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 248 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 248 | ERROR | [x] No space found after comma in argument list 248 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 256 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 256 | ERROR | [x] Whitespace found at end of line 257 | WARNING | [x] Equals sign not aligned correctly; expected 1 space but | | found 10 spaces 274 | WARNING | [ ] This comment is 59% valid code; is this commented out | | code? 274 | ERROR | [x] No space found before comment text; expected "// | | $total_tax = get_post_meta( $order_id, | | '_order_tax', true );" but found "//$total_tax = | | get_post_meta( $order_id, '_order_tax', true );" 276 | ERROR | [x] Whitespace found at end of line 277 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 278 | ERROR | [x] Whitespace found at end of line 282 | ERROR | [ ] Empty IF statement detected 283 | WARNING | [ ] This comment is 50% valid code; is this commented out | | code? 283 | ERROR | [x] No space found before comment text; expected "// | | $total_tax = $total_tax + $order_shipping_tax;" but found | | "//$total_tax = $total_tax + $order_shipping_tax;" 286 | ERROR | [x] Functions must not contain multiple empty lines in a row; | | found 2 empty lines 287 | ERROR | [x] Whitespace found at end of line 295 | ERROR | [ ] Variable "$defaultAddress" is not in valid snake_case | | format, try "$default_address" 295 | WARNING | [x] Equals sign not aligned correctly; expected 1 space but | | found 0 spaces 295 | ERROR | [x] Expected 1 space before "="; 0 found 295 | ERROR | [x] Expected 1 space after "="; 0 found 295 | ERROR | [x] Short array syntax is not allowed 296 | ERROR | [x] Array item not aligned correctly; expected 16 spaces but | | found 20 297 | ERROR | [x] Array item not aligned correctly; expected 16 spaces but | | found 20 297 | WARNING | [x] Array double arrow not aligned correctly; expected 10 | | space(s) between "'city'" and double arrow, but found 1. 298 | ERROR | [x] Array item not aligned correctly; expected 16 spaces but | | found 20 298 | WARNING | [x] Array double arrow not aligned correctly; expected 9 | | space(s) between "'state'" and double arrow, but found 1. 299 | ERROR | [x] Array item not aligned correctly; expected 16 spaces but | | found 20 299 | WARNING | [x] Array double arrow not aligned correctly; expected 4 | | space(s) between "'postalCode'" and double arrow, but | | found 1. 300 | ERROR | [x] Array item not aligned correctly; expected 16 spaces but | | found 20 300 | WARNING | [x] Array double arrow not aligned correctly; expected 7 | | space(s) between "'country'" and double arrow, but found | | 1. 301 | ERROR | [x] Array closer not aligned correctly; expected 12 space(s) | | but found 16 303 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 304 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 7 spaces but found 1 space 305 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 8 spaces but found 1 space 306 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 2 spaces but found 1 space 307 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 5 spaces but found 1 space 309 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 2 spaces but found 1 space 310 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 4 spaces but found 1 space 311 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 4 spaces but found 1 space 312 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 4 spaces but found 1 space 314 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 315 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 2 spaces but found 1 space 316 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 5 spaces but found 1 space 318 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 2 spaces but found 1 space 319 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 4 spaces but found 1 space 321 | ERROR | [ ] Variable "$defaultAddress" is not in valid snake_case | | format, try "$default_address" 347 | WARNING | [x] Equals sign not aligned correctly; expected 1 space but | | found 4 spaces 365 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 365 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 374 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 374 | ERROR | [ ] Use Yoda Condition checks, you must. 376 | ERROR | [x] Expected 1 space after closing brace; newline found 377 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead 377 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 377 | ERROR | [ ] Use Yoda Condition checks, you must. 379 | ERROR | [x] Expected 1 space after closing brace; newline found 380 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead 380 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 380 | ERROR | [ ] Use Yoda Condition checks, you must. 385 | ERROR | [x] Whitespace found at end of line 429 | ERROR | [ ] Missing doc comment for function | | snap_get_checkout_order_received_url() 433 | ERROR | [ ] A hook was found, but was not accompanied by a docblock | | comment on the line above to clarify the meaning of the | | hook. 436 | ERROR | [ ] Missing doc comment for function | | wc_admin_snap_finance_script() 438 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 438 | ERROR | [ ] Use Yoda Condition checks, you must. 459 | WARNING | [x] Array double arrow not aligned correctly; expected 5 | | space(s) between "'ajaxurl'" and double arrow, but found | | 6. 460 | WARNING | [x] Array double arrow not aligned correctly; expected 7 | | space(s) between "'nonce'" and double arrow, but found 8. 461 | WARNING | [x] Array double arrow not aligned correctly; expected 4 | | space(s) between "'startUrl'" and double arrow, but found | | 5. 462 | WARNING | [x] Array double arrow not aligned correctly; expected 1 | | space(s) between "'settingsUrl'" and double arrow, but | | found 2. 463 | WARNING | [x] Array double arrow not aligned correctly; expected 1 | | space(s) between "'modeFieldId'" and double arrow, but | | found 2. 464 | WARNING | [x] Array double arrow not aligned correctly; expected 10 | | space(s) between "'ui'" and double arrow, but found 11. 465 | WARNING | [x] Array double arrow not aligned correctly; expected 8 | | space(s) between "'popupWidth'" and double arrow, but | | found 9. 466 | WARNING | [x] Array double arrow not aligned correctly; expected 7 | | space(s) between "'popupHeight'" and double arrow, but | | found 8. 467 | WARNING | [x] Array double arrow not aligned correctly; expected 4 | | space(s) between "'pollIntervalMs'" and double arrow, but | | found 5. 468 | WARNING | [x] Array double arrow not aligned correctly; expected 1 | | space(s) between "'successRedirectMs'" and double arrow, | | but found 2. 470 | WARNING | [x] Array double arrow not aligned correctly; expected 4 | | space(s) between "'fieldMap'" and double arrow, but found | | 5. 488 | WARNING | [x] Array double arrow not aligned correctly; expected 8 | | space(s) between "'i18n'" and double arrow, but found 9. 489 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 490 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 491 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 492 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 493 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 494 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 502 | ERROR | [ ] Missing doc comment for function | | wc_snap_details_woocommerce_data() 504 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 505 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 514 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 514 | ERROR | [ ] Use Yoda Condition checks, you must. 516 | ERROR | [ ] Variable "$order_deliveryDate" is not in valid snake_case | | format, try "$order_delivery_date" 522 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'woocommerce'. 526 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 526 | ERROR | [ ] Variable "$order_deliveryDate" is not in valid snake_case | | format, try "$order_delivery_date" 526 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 528 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 528 | ERROR | [ ] Use Yoda Condition checks, you must. 555 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 566 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 566 | ERROR | [ ] Use Yoda Condition checks, you must. 567 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 568 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 568 | ERROR | [ ] Use Yoda Condition checks, you must. 569 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 576 | ERROR | [ ] The $text text string should have translatable content. | | Found: '' 576 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 578 | ERROR | [x] If control structure block found as the only statement | | within an "else" block. Use elseif instead. 580 | ERROR | [ ] The $text text string should have translatable content. | | Found: '' 580 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 588 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 588 | ERROR | [ ] Use Yoda Condition checks, you must. 589 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 591 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 595 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 606 | ERROR | [ ] Missing doc comment for function | | snap_finance_reset_token() 610 | ERROR | [ ] Missing doc comment for function get_snap_finance_token() 611 | ERROR | [ ] Assignments must be the first block of code on a line 611 | ERROR | [ ] Assignments must be the first block of code on a line 611 | ERROR | [ ] Assignments must be the first block of code on a line 619 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 619 | ERROR | [ ] Use Yoda Condition checks, you must. 621 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 628 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead 628 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 628 | ERROR | [ ] Use Yoda Condition checks, you must. 630 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 637 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead 637 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 637 | ERROR | [ ] Use Yoda Condition checks, you must. 639 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 658 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 659 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 13 spaces but found 12 spaces 660 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 8 spaces but found 7 spaces 661 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 6 spaces but found 5 spaces 663 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 667 | ERROR | [ ] date() is affected by runtime timezone changes which can | | cause date/time to be incorrectly displayed. Use gmdate() | | instead. 668 | ERROR | [ ] date() is affected by runtime timezone changes which can | | cause date/time to be incorrectly displayed. Use gmdate() | | instead. 674 | ERROR | [x] Functions must not contain multiple empty lines in a row; | | found 2 empty lines 677 | ERROR | [ ] Logical operator "or" is prohibited; use "||" instead 677 | WARNING | [ ] Variable assignment found within a condition. Did you mean | | to do a comparison ? 677 | ERROR | [ ] Assignments must be the first block of code on a line 677 | ERROR | [ ] Logical operator "or" is prohibited; use "||" instead 677 | ERROR | [x] Expected 1 space after open parenthesis; 0 found 677 | ERROR | [x] Expected 1 space before close parenthesis; 0 found 689 | WARNING | [ ] json_encode() is discouraged. Use wp_json_encode() | | instead. 689 | ERROR | [x] Opening parenthesis of a multi-line function call must be | | the last content on the line 694 | ERROR | [x] Closing parenthesis of a multi-line function call must be | | on a line by itself 700 | ERROR | [x] Whitespace found at end of line 708 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 1 space but found 2 spaces 712 | WARNING | [ ] json_encode() is discouraged. Use wp_json_encode() | | instead. 712 | ERROR | [x] Opening parenthesis of a multi-line function call must be | | the last content on the line 717 | ERROR | [x] Closing parenthesis of a multi-line function call must be | | on a line by itself 721 | ERROR | [x] Whitespace found at end of line 724 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 743 | ERROR | [ ] Missing doc comment for function wp_decode_jwt_no_verify() 744 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 745 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 746 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 747 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 748 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 749 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 749 | WARNING | [ ] base64_decode() can be used to obfuscate code which is | | strongly discouraged. Please verify that the function is | | used for benign reasons. 750 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 754 | WARNING | [ ] The method parameter $args is never used 754 | WARNING | [ ] The method parameter $template_path is never used 754 | WARNING | [ ] The method parameter $default_path is never used 754 | ERROR | [ ] Missing doc comment for function | | wc_snap_finance_payment_template() 755 | WARNING | [ ] Not using strict comparison for in_array; supply true for | | $strict argument. 755 | ERROR | [ ] A hook was found, but was not accompanied by a docblock | | comment on the line above to clarify the meaning of the | | hook. 758 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 758 | ERROR | [ ] Use Yoda Condition checks, you must. 769 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 769 | ERROR | [x] Whitespace found at end of line 770 | ERROR | [x] Opening parenthesis of a multi-line function call must be | | the last content on the line 770 | ERROR | [x] Only one argument is allowed per line in a multi-line | | function call 770 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found 771 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 771 | ERROR | [x] Whitespace found at end of line 772 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 773 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 773 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 774 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found 1 775 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 776 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 777 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 780 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 781 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 782 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 783 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 784 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 785 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 786 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 787 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 789 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 790 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 792 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 793 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 795 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 797 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 799 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 800 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 802 | WARNING | [x] Found precision alignment of 3 spaces. 802 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 818 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 819 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 820 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 821 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 822 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 823 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 824 | ERROR | [x] Closing parenthesis of a multi-line function call must be | | on a line by itself -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 167 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...-7\wp-content\plugins\snap-finance-checkout\snap-finance-payment-class.php -------------------------------------------------------------------------------- FOUND 398 ERRORS AND 24 WARNINGS AFFECTING 174 LINES -------------------------------------------------------------------------------- 1 | ERROR | [ ] Class file names should be based on the class name with | | "class-" prepended. Expected | | class-wc-snap-finance-gateway.php, but found | | snap-finance-payment-class.php. 1 | ERROR | [ ] Missing file doc comment 1 | ERROR | [x] End of line character is invalid; expected "\n" but found | | "\r\n" 3 | ERROR | [ ] Missing doc comment for class WC_snap_finance_Gateway 3 | ERROR | [ ] Class name is not valid; consider WC_Snap_Finance_Gateway | | instead 4 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 9 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 10 | ERROR | [ ] You must use "/**" style comments for a member variable | | comment 10 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 11 | ERROR | [ ] You must use "/**" style comments for a member variable | | comment 11 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 12 | ERROR | [ ] You must use "/**" style comments for a member variable | | comment 12 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 13 | ERROR | [ ] You must use "/**" style comments for a member variable | | comment 14 | ERROR | [ ] Missing member variable doc comment 14 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 15 | ERROR | [ ] You must use "/**" style comments for a member variable | | comment 15 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 16 | ERROR | [ ] You must use "/**" style comments for a member variable | | comment 16 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 28 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 29 | ERROR | [x] Whitespace found at end of line 30 | ERROR | [x] Short array syntax is not allowed 31 | ERROR | [x] Functions must not contain multiple empty lines in a row; | | found 2 empty lines 33 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 35 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 46 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 46 | ERROR | [ ] Use Yoda Condition checks, you must. 53 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead 53 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 53 | ERROR | [ ] Use Yoda Condition checks, you must. 60 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead 60 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 60 | ERROR | [ ] Use Yoda Condition checks, you must. 91 | ERROR | [x] Function closing brace must go on the next line following | | the body; found 1 blank lines before brace 113 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 118 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 119 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 125 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 127 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 132 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 134 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 138 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 142 | WARNING | [x] Array double arrow not aligned correctly; expected 5 | | space(s) between "'dev'" and double arrow, but found 1. 142 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 143 | WARNING | [x] Array double arrow not aligned correctly; expected 6 | | space(s) between "'qa'" and double arrow, but found 1. 143 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 144 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 145 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 148 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 149 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 155 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 159 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 163 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 170 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 174 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 177 | ERROR | [x] Whitespace found at end of line 178 | WARNING | [x] Array double arrow not aligned correctly; expected 18 | | space(s) between "'snap_finance_client_dev_id'" and double | | arrow, but found 17. 179 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 182 | WARNING | [x] Array double arrow not aligned correctly; expected 14 | | space(s) between "'snap_finance_client_dev_secret'" and | | double arrow, but found 13. 183 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 186 | WARNING | [x] Array double arrow not aligned correctly; expected 5 | | space(s) between | | "'snap_finance_client_dev_checkout_option'" and double | | arrow, but found 1. 187 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 193 | WARNING | [x] Array double arrow not aligned correctly; expected 19 | | space(s) between "'snap_finance_client_qa_id'" and double | | arrow, but found 17. 194 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 197 | WARNING | [x] Array double arrow not aligned correctly; expected 15 | | space(s) between "'snap_finance_client_qa_secret'" and | | double arrow, but found 13. 198 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 201 | WARNING | [x] Array double arrow not aligned correctly; expected 6 | | space(s) between | | "'snap_finance_client_qa_checkout_option'" and double | | arrow, but found 1. 202 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 208 | WARNING | [ ] This comment is 60% valid code; is this commented out | | code? 208 | ERROR | [ ] Empty line required before block comment 215 | ERROR | [ ] Comment closer must be on a new line 217 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 239 | ERROR | [ ] Missing doc comment for function get_icon() 241 | WARNING | [x] Loose comparisons are not allowed. Expected: "!=="; Found: | | "!=" 241 | ERROR | [ ] Use Yoda Condition checks, you must. 242 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'woocommerce'. 245 | ERROR | [ ] A hook was found, but was not accompanied by a docblock | | comment on the line above to clarify the meaning of the | | hook. 256 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 286 | ERROR | [x] No space found before comment text; expected "// | | do_action( 'woocommerce_credit_card_form_start', $this->id | | );" but found "//do_action( | | 'woocommerce_credit_card_form_start', $this->id );" 286 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 288 | WARNING | [ ] This comment is 59% valid code; is this commented out | | code? 288 | ERROR | [x] No space found before comment text; expected "// | | do_action( 'woocommerce_credit_card_form_end', $this->id | | );" but found "//do_action( | | 'woocommerce_credit_card_form_end', $this->id );" 288 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 297 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 319 | ERROR | [ ] Doc comment for parameter "$order_id" missing 323 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 323 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 325 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 325 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 327 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 327 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found 1 328 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 328 | ERROR | [x] Line indented incorrectly; expected at least 3 tabs, found | | 2 329 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 329 | ERROR | [x] Line indented incorrectly; expected at least 3 tabs, found | | 2 330 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 330 | ERROR | [x] Line indented incorrectly; expected 3 tabs, found 2 331 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 331 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found | | 3 332 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 332 | ERROR | [x] Line indented incorrectly; expected 3 tabs, found 2 333 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 333 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found 1 335 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 335 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 337 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 337 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 337 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 338 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 338 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found 1 339 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 339 | ERROR | [x] Line indented incorrectly; expected at least 3 tabs, found | | 2 339 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 340 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 340 | ERROR | [x] Line indented incorrectly; expected at least 3 tabs, found | | 2 341 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 342 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 343 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 343 | ERROR | [x] Line indented incorrectly; expected at least 3 tabs, found | | 2 344 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 344 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found 1 346 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 346 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 346 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 347 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 347 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 347 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 7 spaces but found 1 space 348 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 348 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 348 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 348 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 349 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 349 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found 1 349 | ERROR | [x] No space after opening parenthesis is prohibited 349 | WARNING | [x] Loose comparisons are not allowed. Expected: "!=="; Found: | | "!=" 349 | ERROR | [ ] Use Yoda Condition checks, you must. 349 | ERROR | [x] No space before closing parenthesis is prohibited 350 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 350 | ERROR | [x] Line indented incorrectly; expected at least 3 tabs, found | | 2 351 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 351 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found 1 352 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 352 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 352 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 5 spaces but found 1 space 353 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 353 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 355 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 355 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 356 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 357 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 358 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 358 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 359 | ERROR | [x] Line indented incorrectly; expected 1 tabs, found 0 362 | ERROR | [x] Line indented incorrectly; expected 1 tabs, found 0 362 | ERROR | [ ] Missing doc comment for function process_admin_options() 364 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 364 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 364 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 365 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 365 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 366 | ERROR | [x] Functions must not contain multiple empty lines in a row; | | found 2 empty lines 367 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 367 | ERROR | [x] Whitespace found at end of line 368 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 368 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 368 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 368 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 369 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 369 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 369 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 370 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 370 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 370 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 372 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 372 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 372 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 373 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 373 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 373 | ERROR | [x] Expected 1 space after the array opener in a single line | | array. Found: no spaces 373 | ERROR | [x] Short array syntax is not allowed 373 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 373 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 373 | ERROR | [x] Expected 1 space before the array closer in a single line | | array. Found: no spaces 375 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 375 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found 1 375 | ERROR | [x] No space after opening parenthesis is prohibited 375 | ERROR | [x] Expected 1 space before "!"; 0 found 375 | ERROR | [x] Expected 1 space after "!"; 0 found 375 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 375 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 375 | ERROR | [x] No space before closing parenthesis is prohibited 376 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 376 | ERROR | [x] Line indented incorrectly; expected at least 3 tabs, found | | 2 376 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 376 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 377 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 377 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found 1 379 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 379 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 379 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 380 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 380 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found 1 380 | ERROR | [x] No space after opening parenthesis is prohibited 380 | ERROR | [x] No space before closing parenthesis is prohibited 382 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 382 | ERROR | [x] Line indented incorrectly; expected 3 tabs, found 2 382 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 382 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 383 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 383 | ERROR | [x] Line indented incorrectly; expected 3 tabs, found 2 384 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 384 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found | | 3 384 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 384 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 385 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 385 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found | | 3 385 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 385 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 386 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found | | 3 386 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 5 spaces but found 1 space 386 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 386 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 386 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 386 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 386 | ERROR | [x] Whitespace found at end of line 387 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 387 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found | | 3 387 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 387 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 387 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 387 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 388 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 390 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 390 | ERROR | [x] Line indented incorrectly; expected 3 tabs, found 2 391 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 391 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found | | 3 391 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 391 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 392 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 392 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found | | 3 392 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 392 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 393 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found | | 3 393 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 5 spaces but found 1 space 393 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 393 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 393 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 393 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 393 | ERROR | [x] Whitespace found at end of line 394 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 394 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found | | 3 394 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 394 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 394 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 394 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 395 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 397 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 397 | ERROR | [x] Line indented incorrectly; expected 3 tabs, found 2 398 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 398 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found | | 3 398 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 398 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 399 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 399 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found | | 3 399 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 399 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 400 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found | | 3 400 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 5 spaces but found 1 space 400 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 400 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 400 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 400 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 400 | ERROR | [x] Whitespace found at end of line 401 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 401 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found | | 3 401 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 401 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 401 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 401 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 402 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 404 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 404 | ERROR | [x] Line indented incorrectly; expected 3 tabs, found 2 405 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 405 | ERROR | [x] Line indented incorrectly; expected 3 tabs, found 2 406 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 406 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found | | 3 406 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 406 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 407 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 407 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found | | 3 407 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 407 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 408 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found | | 3 408 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 5 spaces but found 1 space 408 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 408 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 408 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 408 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 408 | ERROR | [x] Whitespace found at end of line 409 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 409 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found | | 3 409 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 409 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 409 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 409 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 410 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 411 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 411 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found 1 413 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found 1 413 | ERROR | [x] No space after opening parenthesis is prohibited 413 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 413 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 413 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 413 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 413 | ERROR | [x] No space before closing parenthesis is prohibited 414 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 414 | ERROR | [x] Line indented incorrectly; expected at least 3 tabs, found | | 2 414 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 414 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 414 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'textdomain'. 414 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 414 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 415 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 415 | ERROR | [x] Line indented incorrectly; expected at least 3 tabs, found | | 2 416 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 416 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found 1 417 | ERROR | [x] Functions must not contain multiple empty lines in a row; | | found 2 empty lines 418 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 418 | ERROR | [x] Whitespace found at end of line 419 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 419 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 419 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 421 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 421 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 421 | ERROR | [x] Opening parenthesis of a multi-line function call must be | | the last content on the line 421 | ERROR | [x] Only one argument is allowed per line in a multi-line | | function call 421 | ERROR | [x] Short array syntax is not allowed 422 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 422 | ERROR | [x] Expected 1 space after the array opener in a single line | | array. Found: no spaces 422 | ERROR | [x] Short array syntax is not allowed 422 | ERROR | [x] Expected 1 space before the array closer in a single line | | array. Found: no spaces 423 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 423 | WARNING | [ ] json_encode() is discouraged. Use wp_json_encode() | | instead. 423 | ERROR | [x] Opening parenthesis of a multi-line function call must be | | the last content on the line 423 | ERROR | [x] Short array syntax is not allowed 424 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 425 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 426 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 427 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 428 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 428 | ERROR | [x] Closing parenthesis of a multi-line function call must be | | on a line by itself 429 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 430 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 431 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 431 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 431 | ERROR | [x] Closing parenthesis of a multi-line function call must be | | on a line by itself 432 | ERROR | [x] Functions must not contain multiple empty lines in a row; | | found 2 empty lines 434 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 434 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 434 | ERROR | [x] No space found before comment text; expected "// HANDLE | | RESPONSE ERRORS" but found "//HANDLE RESPONSE ERRORS" 434 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 436 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 436 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found 1 436 | ERROR | [x] No space after opening parenthesis is prohibited 436 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 436 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 436 | ERROR | [x] No space before closing parenthesis is prohibited 437 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 437 | ERROR | [x] Line indented incorrectly; expected at least 3 tabs, found | | 2 437 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 437 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 437 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'textdomain'. 437 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 437 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 438 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 438 | ERROR | [x] Line indented incorrectly; expected at least 3 tabs, found | | 2 439 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 439 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found 1 441 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 441 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 441 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 441 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 442 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 442 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 442 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 442 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 442 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 442 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 444 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 444 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found 1 444 | ERROR | [x] No space after opening parenthesis is prohibited 444 | ERROR | [ ] Use Yoda Condition checks, you must. 444 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 444 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 444 | ERROR | [x] No space before closing parenthesis is prohibited 445 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 445 | ERROR | [x] Line indented incorrectly; expected at least 3 tabs, found | | 2 445 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 445 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 445 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'textdomain'. 445 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 445 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 446 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 446 | ERROR | [x] Line indented incorrectly; expected at least 3 tabs, found | | 2 447 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 447 | ERROR | [x] Line indented incorrectly; expected 2 tabs, found 1 448 | ERROR | [x] Functions must not contain multiple empty lines in a row; | | found 2 empty lines 449 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 449 | ERROR | [x] Whitespace found at end of line 450 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 450 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 450 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 450 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 450 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'textdomain'. 450 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 450 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 452 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 452 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found | | 1 453 | ERROR | [x] Line indented incorrectly; expected 1 tabs, found 0 455 | ERROR | [x] Expected 1 newline at end of file; 0 found 455 | ERROR | [x] The closing brace for the class must go on the next line | | after the body -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 344 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...press-7\wp-content\plugins\snap-finance-checkout\snap-finance-wc-order.php -------------------------------------------------------------------------------- FOUND 334 ERRORS AND 44 WARNINGS AFFECTING 163 LINES -------------------------------------------------------------------------------- 1 | ERROR | [ ] Missing file doc comment 1 | ERROR | [x] End of line character is invalid; expected "\n" but found | | "\r\n" 25 | ERROR | [ ] Missing doc comment for function snap_finance_add_notes() 26 | WARNING | [x] Equals sign not aligned correctly; expected 1 space but | | found 0 spaces 26 | ERROR | [x] Expected 1 space before "="; 0 found 26 | ERROR | [x] Expected 1 space after "="; 0 found 32 | ERROR | [ ] Variable "$onNotification" is not in valid snake_case | | format, try "$on_notification" 33 | ERROR | [ ] Variable "$onNotification" is not in valid snake_case | | format, try "$on_notification" 41 | ERROR | [ ] Variable "$onNotification" is not in valid snake_case | | format, try "$on_notification" 53 | ERROR | [ ] Missing doc comment for function | | snap_finance_complete_payment_url() 63 | ERROR | [ ] Missing doc comment for function | | snap_finance_update_status() 75 | ERROR | [ ] Missing doc comment for function | | snap_finance_order_failed() 78 | ERROR | [ ] Variable "$applicationId" is not in valid snake_case | | format, try "$application_id" 80 | ERROR | [ ] Variable "$applicationId" is not in valid snake_case | | format, try "$application_id" 81 | ERROR | [ ] Variable "$applicationId" is not in valid snake_case | | format, try "$application_id" 94 | ERROR | [ ] Missing doc comment for function | | snap_finance_complete_payment() 95 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 95 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 95 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 96 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 96 | ERROR | [x] No space after opening parenthesis is prohibited 96 | ERROR | [x] Expected 1 space before "!"; 0 found 96 | ERROR | [x] Expected 1 space after "!"; 0 found 96 | ERROR | [x] No space before closing parenthesis is prohibited 97 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 97 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 97 | ERROR | [x] Expected 1 space after the array opener in a single line | | array. Found: no spaces 97 | ERROR | [x] Expected 1 space before the array closer in a single line | | array. Found: no spaces 97 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 98 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 99 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 101 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 101 | ERROR | [ ] Variable "$applicationId" is not in valid snake_case | | format, try "$application_id" 101 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 2 spaces but found 1 space 101 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 101 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 101 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 101 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 102 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 102 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 4 spaces but found 3 spaces 102 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 102 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 102 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 102 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 103 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 105 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 105 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 106 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 106 | ERROR | [x] No space after opening parenthesis is prohibited 106 | ERROR | [ ] Variable "$applicationId" is not in valid snake_case | | format, try "$application_id" 106 | ERROR | [x] No space before closing parenthesis is prohibited 107 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 107 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 107 | ERROR | [ ] Variable "$applicationId" is not in valid snake_case | | format, try "$application_id" 107 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 108 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 108 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 108 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 109 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 109 | ERROR | [ ] Variable "$applicationId" is not in valid snake_case | | format, try "$application_id" 110 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 111 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 111 | ERROR | [x] No space after opening parenthesis is prohibited 111 | ERROR | [x] No space before closing parenthesis is prohibited 112 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 112 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 112 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 113 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 114 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 116 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 116 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 116 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 117 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 117 | ERROR | [x] No space after opening parenthesis is prohibited 117 | ERROR | [x] Expected 1 space before "!"; 0 found 117 | ERROR | [x] Expected 1 space after "!"; 0 found 117 | ERROR | [x] No space before closing parenthesis is prohibited 118 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 118 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 118 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 119 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 119 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 119 | ERROR | [x] Expected 1 space after the array opener in a single line | | array. Found: no spaces 119 | ERROR | [x] Expected 1 space before the array closer in a single line | | array. Found: no spaces 119 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 120 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 121 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 123 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 123 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 123 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 124 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 126 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 126 | ERROR | [x] No space after opening parenthesis is prohibited 126 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 126 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 126 | ERROR | [x] No space before closing parenthesis is prohibited 127 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 127 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 127 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 128 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 128 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 128 | ERROR | [x] Expected 1 space after the array opener in a single line | | array. Found: no spaces 128 | ERROR | [x] Expected 1 space before the array closer in a single line | | array. Found: no spaces 128 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 129 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 130 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 132 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 132 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 133 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 134 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 134 | ERROR | [x] No space after opening parenthesis is prohibited 134 | ERROR | [x] No space before closing parenthesis is prohibited 135 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 136 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 136 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 136 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 137 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 138 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 139 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 139 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 139 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 140 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 141 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 142 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 142 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 142 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 143 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 144 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 145 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 145 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 145 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 146 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 148 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 149 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 150 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 151 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 152 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 153 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 154 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 155 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 157 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 157 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 157 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 158 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 158 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 158 | WARNING | [ ] print_r() found. Debug code should not normally be used in | | production. 158 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 158 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 158 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 160 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 160 | ERROR | [x] No space after opening parenthesis is prohibited 160 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 160 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 160 | ERROR | [x] No space before closing parenthesis is prohibited 161 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 161 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 161 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 162 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 162 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 162 | ERROR | [x] Expected 1 space after the array opener in a single line | | array. Found: no spaces 162 | ERROR | [x] Expected 1 space before the array closer in a single line | | array. Found: no spaces 162 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 163 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 164 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 166 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 166 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 10 spaces but found 1 space 166 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 166 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 167 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 167 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 167 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 169 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 169 | ERROR | [x] No space after opening parenthesis is prohibited 169 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 169 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 169 | ERROR | [x] Expected 1 space after "!"; 0 found 169 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 169 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 169 | ERROR | [x] No space before closing parenthesis is prohibited 170 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 170 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 170 | WARNING | [ ] print_r() found. Debug code should not normally be used in | | production. 170 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 170 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 170 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 172 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 172 | ERROR | [ ] Variable "$cartInfo" is not in valid snake_case format, | | try "$cart_info" 173 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 173 | ERROR | [x] No space after opening parenthesis is prohibited 173 | ERROR | [ ] Variable "$cartInfo" is not in valid snake_case format, | | try "$cart_info" 173 | ERROR | [x] No space before closing parenthesis is prohibited 174 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 174 | ERROR | [ ] Variable "$taxAmount" is not in valid snake_case format, | | try "$tax_amount" 174 | ERROR | [ ] Variable "$cartInfo" is not in valid snake_case format, | | try "$cart_info" 174 | ERROR | [ ] Object property "$taxAmount" is not in valid snake_case | | format, try "$tax_amount" 175 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 175 | ERROR | [ ] Variable "$totalAmount" is not in valid snake_case format, | | try "$total_amount" 175 | ERROR | [ ] Variable "$cartInfo" is not in valid snake_case format, | | try "$cart_info" 175 | ERROR | [ ] Object property "$totalAmount" is not in valid snake_case | | format, try "$total_amount" 177 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 177 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 178 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 178 | ERROR | [x] No space after opening parenthesis is prohibited 178 | ERROR | [ ] Variable "$taxAmount" is not in valid snake_case format, | | try "$tax_amount" 178 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 178 | ERROR | [ ] Use Yoda Condition checks, you must. 178 | ERROR | [x] No space before closing parenthesis is prohibited 180 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 180 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 181 | ERROR | [x] No space after opening parenthesis is prohibited 181 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 181 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 181 | ERROR | [x] No space before closing parenthesis is prohibited 182 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 182 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 184 | ERROR | [x] Whitespace found at end of line 185 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 186 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 186 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 186 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 187 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 187 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 187 | ERROR | [ ] Variable "$taxAmount" is not in valid snake_case format, | | try "$tax_amount" 187 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 188 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 188 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 188 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 189 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 191 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 191 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 192 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 192 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 192 | ERROR | [ ] Variable "$totalAmount" is not in valid snake_case format, | | try "$total_amount" 192 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 193 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 194 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 196 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 196 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 197 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 197 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 197 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 198 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 200 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 200 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 201 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 203 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 203 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 203 | ERROR | [x] Expected 1 space after the array opener in a single line | | array. Found: no spaces 203 | ERROR | [x] Expected 1 space before the array closer in a single line | | array. Found: no spaces 203 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 207 | ERROR | [ ] Missing doc comment for function | | snap_finance_cancelled_order() 209 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 10 spaces but found 1 space 210 | ERROR | [x] Whitespace found at end of line 213 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 213 | ERROR | [ ] Use Yoda Condition checks, you must. 219 | WARNING | [ ] This comment is 64% valid code; is this commented out | | code? 224 | WARNING | [ ] This comment is 56% valid code; is this commented out | | code? 225 | ERROR | [ ] Block comments must start with a capital letter 237 | ERROR | [ ] Comment closer must be on a new line 241 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 241 | ERROR | [ ] Use Yoda Condition checks, you must. 243 | ERROR | [x] Expected 1 space after closing brace; newline found 244 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead 244 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 244 | ERROR | [ ] Use Yoda Condition checks, you must. 246 | ERROR | [x] Expected 1 space after closing brace; newline found 247 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead 247 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 247 | ERROR | [ ] Use Yoda Condition checks, you must. 254 | WARNING | [ ] json_encode() is discouraged. Use wp_json_encode() | | instead. 296 | ERROR | [ ] Function name "set_order_deliveryDate" is not in snake | | case format, try "set_order_delivery_date" 296 | ERROR | [ ] Missing doc comment for function set_order_deliveryDate() 298 | ERROR | [x] Space after opening control structure is required 298 | ERROR | [x] No space before opening parenthesis is prohibited 298 | ERROR | [x] No space after opening parenthesis is prohibited 298 | ERROR | [x] Expected 1 space after IF keyword; 0 found 298 | ERROR | [ ] Processing form data without nonce verification. 298 | ERROR | [x] No space before closing parenthesis is prohibited 298 | ERROR | [x] Expected 1 space after closing parenthesis; found 0 298 | ERROR | [x] Space between opening control structure and closing | | parenthesis is required 299 | ERROR | [ ] Variable "$order_deliveryDate" is not in valid snake_case | | format, try "$order_delivery_date" 299 | WARNING | [x] Equals sign not aligned correctly; expected 1 space but | | found 0 spaces 299 | ERROR | [x] Expected 1 space before "="; 0 found 299 | ERROR | [x] Expected 1 space after "="; 0 found 299 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 299 | ERROR | [ ] Processing form data without nonce verification. 299 | ERROR | [ ] $_POST['order_deliveryDate'] not unslashed before | | sanitization. Use wp_unslash() or similar 299 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 301 | ERROR | [ ] Processing form data without nonce verification. 301 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 301 | ERROR | [x] No space found after comma in argument list 301 | ERROR | [ ] Variable "$order_deliveryDate" is not in valid snake_case | | format, try "$order_delivery_date" 301 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 301 | ERROR | [x] No space before closing parenthesis is prohibited 303 | ERROR | [ ] Variable "$order_deliveryDate" is not in valid snake_case | | format, try "$order_delivery_date" 308 | ERROR | [ ] Missing doc comment for function | | action_woocommerce_admin_order_data_after_order_details() 310 | ERROR | [x] Function closing brace must go on the next line following | | the body; found 1 blank lines before brace 310 | WARNING | [x] Empty PHP statement detected: superfluous semicolon. 312 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, | | or question marks 315 | ERROR | [ ] Missing doc comment for function | | snap_finance_complete_order() 316 | WARNING | [ ] Processing form data without nonce verification. 317 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 317 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 317 | WARNING | [ ] Processing form data without nonce verification. 317 | ERROR | [ ] $_REQUEST['order_id'] not unslashed before sanitization. | | Use wp_unslash() or similar 317 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 319 | ERROR | [ ] Variable "$deliveryDate" is not in valid snake_case | | format, try "$delivery_date" 320 | WARNING | [ ] Processing form data without nonce verification. 321 | ERROR | [ ] Variable "$deliveryDate" is not in valid snake_case | | format, try "$delivery_date" 321 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 321 | WARNING | [ ] Processing form data without nonce verification. 321 | ERROR | [ ] $_REQUEST['deliver_date'] not unslashed before | | sanitization. Use wp_unslash() or similar 321 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 322 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead 322 | ERROR | [x] Space after opening control structure is required 322 | ERROR | [x] No space before opening parenthesis is prohibited 322 | ERROR | [x] No space after opening parenthesis is prohibited 322 | ERROR | [x] Expected 1 space after IF keyword; 0 found 322 | ERROR | [ ] Processing form data without nonce verification. 322 | ERROR | [x] No space before closing parenthesis is prohibited 323 | ERROR | [ ] Variable "$deliveryDate" is not in valid snake_case | | format, try "$delivery_date" 323 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 323 | ERROR | [ ] Processing form data without nonce verification. 323 | ERROR | [ ] $_POST['order_deliveryDate'] not unslashed before | | sanitization. Use wp_unslash() or similar 323 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 326 | WARNING | [ ] This comment is 59% valid code; is this commented out | | code? 326 | ERROR | [x] No space found before comment text; expected "// | | $payment_method = get_post_meta( $order_id, | | '_payment_method', true );" but found "//$payment_method = | | get_post_meta( $order_id, '_payment_method', true );" 328 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 10 spaces but found 1 space 329 | ERROR | [x] Whitespace found at end of line 331 | ERROR | [ ] Variable "$deliveryDate" is not in valid snake_case | | format, try "$delivery_date" 331 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 331 | ERROR | [x] No space found after comma in argument list 331 | ERROR | [ ] Variable "$deliveryDate" is not in valid snake_case | | format, try "$delivery_date" 331 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 331 | ERROR | [x] No space before closing parenthesis is prohibited 332 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 332 | ERROR | [ ] Use Yoda Condition checks, you must. 339 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 339 | ERROR | [ ] Use Yoda Condition checks, you must. 341 | ERROR | [x] Expected 1 space after closing brace; newline found 342 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead 342 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 342 | ERROR | [ ] Use Yoda Condition checks, you must. 344 | ERROR | [x] Expected 1 space after closing brace; newline found 345 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead 345 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 345 | ERROR | [ ] Use Yoda Condition checks, you must. 350 | ERROR | [x] Functions must not contain multiple empty lines in a row; | | found 2 empty lines 363 | ERROR | [ ] Variable "$NeedToCheck" is not in valid snake_case format, | | try "$need_to_check" 368 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 368 | ERROR | [ ] Use Yoda Condition checks, you must. 369 | ERROR | [ ] Variable "$NeedToCheck" is not in valid snake_case format, | | try "$need_to_check" 373 | ERROR | [x] Whitespace found at end of line 373 | ERROR | [x] Functions must not contain multiple empty lines in a row; | | found 2 empty lines 375 | ERROR | [ ] Variable "$NeedToCheck" is not in valid snake_case format, | | try "$need_to_check" 377 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 377 | ERROR | [ ] Use Yoda Condition checks, you must. 379 | ERROR | [x] Expected 1 space after closing brace; newline found 380 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead 380 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 380 | ERROR | [ ] Use Yoda Condition checks, you must. 382 | ERROR | [x] Expected 1 space after closing brace; newline found 383 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead 383 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 383 | ERROR | [ ] Use Yoda Condition checks, you must. 389 | ERROR | [ ] Variable "$deliveryDate" is not in valid snake_case | | format, try "$delivery_date" 389 | WARNING | [x] Loose comparisons are not allowed. Expected: "!=="; Found: | | "!=" 389 | ERROR | [ ] Use Yoda Condition checks, you must. 390 | ERROR | [ ] Variable "$deliveryDate" is not in valid snake_case | | format, try "$delivery_date" 391 | WARNING | [ ] json_encode() is discouraged. Use wp_json_encode() | | instead. 404 | WARNING | [x] Equals sign not aligned correctly; expected 1 space but | | found 2 spaces 405 | ERROR | [x] Whitespace found at end of line 446 | WARNING | [ ] Processing form data without nonce verification. 450 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 450 | ERROR | [ ] Use Yoda Condition checks, you must. 459 | WARNING | [x] Loose comparisons are not allowed. Expected: "==="; Found: | | "==" 459 | ERROR | [ ] Use Yoda Condition checks, you must. 505 | ERROR | [x] Expected 1 newline at end of file; 0 found -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 286 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...mpp\htdocs\wordpress-7\wp-content\plugins\snap-finance-checkout\config.php -------------------------------------------------------------------------------- FOUND 21 ERRORS AFFECTING 20 LINES -------------------------------------------------------------------------------- 1 | ERROR | [ ] Missing file doc comment 1 | ERROR | [x] End of line character is invalid; expected "\n" but found | | "\r\n" 66 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_CONNECT_OAUTH_CLIENT_ID' but found | | 'SNAP_Finance_CONNECT_OAUTH_CLIENT_ID' 70 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_CONNECT_OAUTH_SCOPE' but found | | 'SNAP_Finance_CONNECT_OAUTH_SCOPE' 74 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_CONNECT_AUTHORIZE_URL' but found | | 'SNAP_Finance_CONNECT_AUTHORIZE_URL' 78 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_CONNECT_HTTP_TIMEOUT_TOKEN' but found | | 'SNAP_Finance_CONNECT_HTTP_TIMEOUT_TOKEN' 82 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_CONNECT_HTTP_TIMEOUT_VERIFY' but found | | 'SNAP_Finance_CONNECT_HTTP_TIMEOUT_VERIFY' 86 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_CONNECT_ACCESS_TOKEN_TTL' but found | | 'SNAP_Finance_CONNECT_ACCESS_TOKEN_TTL' 90 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_CONNECT_POPUP_WIDTH' but found | | 'SNAP_Finance_CONNECT_POPUP_WIDTH' 94 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_CONNECT_POPUP_HEIGHT' but found | | 'SNAP_Finance_CONNECT_POPUP_HEIGHT' 98 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_CONNECT_POPUP_POLL_MS' but found | | 'SNAP_Finance_CONNECT_POPUP_POLL_MS' 102 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_CONNECT_SUCCESS_REDIRECT_MS' but found | | 'SNAP_Finance_CONNECT_SUCCESS_REDIRECT_MS' 106 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_CONNECT_CALLBACK_CLOSE_MS' but found | | 'SNAP_Finance_CONNECT_CALLBACK_CLOSE_MS' 110 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_SANDBOX_CONNECT_AUTHORIZE_URL' but found | | 'SNAP_Finance_SANDBOX_CONNECT_AUTHORIZE_URL' 114 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_LIVE_CONNECT_AUTHORIZE_URL' but found | | 'SNAP_Finance_LIVE_CONNECT_AUTHORIZE_URL' 118 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_SANDBOX_CONNECT_TOKEN_URL' but found | | 'SNAP_Finance_SANDBOX_CONNECT_TOKEN_URL' 122 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_LIVE_CONNECT_TOKEN_URL' but found | | 'SNAP_Finance_LIVE_CONNECT_TOKEN_URL' 126 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_DEV_CONNECT_AUTHORIZE_URL' but found | | 'SNAP_Finance_DEV_CONNECT_AUTHORIZE_URL' 130 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_DEV_CONNECT_TOKEN_URL' but found | | 'SNAP_Finance_DEV_CONNECT_TOKEN_URL' 134 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_QA_CONNECT_AUTHORIZE_URL' but found | | 'SNAP_Finance_QA_CONNECT_AUTHORIZE_URL' 138 | ERROR | [ ] Constants must be uppercase; expected | | 'SNAP_FINANCE_QA_CONNECT_TOKEN_URL' but found | | 'SNAP_Finance_QA_CONNECT_TOKEN_URL' -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...\htdocs\wordpress-7\wp-content\plugins\snap-finance-checkout\uninstall.php -------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found | | "\r\n" -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...ress-7\wp-content\plugins\snap-finance-checkout\checkout\order-receipt.php -------------------------------------------------------------------------------- FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES -------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found | | "\r\n" 50 | WARNING | [ ] Not using strict comparison for in_array; supply true for | | $strict argument. 66 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'woocommerce'. 70 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'woocommerce'. 74 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'woocommerce'. 79 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'woocommerce'. 85 | ERROR | [ ] A hook was found, but was not accompanied by a docblock | | comment on the line above to clarify the meaning of the | | hook. -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...nt\plugins\snap-finance-checkout\includes\class-snap-address-validator.php -------------------------------------------------------------------------------- FOUND 57 ERRORS AND 15 WARNINGS AFFECTING 30 LINES -------------------------------------------------------------------------------- 1 | ERROR | [ ] Class file names should be based on the class name with | | "class-" prepended. Expected | | class-snap-finance-address-validator.php, but found | | class-snap-address-validator.php. 1 | ERROR | [x] End of line character is invalid; expected "\n" but found | | "\r\n" 23 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 3 spaces but found 2 spaces 24 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 5 spaces but found 4 spaces 26 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 4 spaces but found 3 spaces 27 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 2 spaces but found 1 space 36 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 36 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 36 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 36 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 36 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 36 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 36 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 36 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 36 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 37 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 37 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 37 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 37 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 37 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 37 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 37 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 37 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 37 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 38 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 38 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 38 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 38 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 38 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 38 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 38 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 38 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 38 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 39 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 39 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 39 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 39 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 39 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 39 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 39 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 39 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 39 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 40 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 40 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 40 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 40 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 40 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 40 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 40 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 40 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 40 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 40 | ERROR | [x] Each item in a multi-line array must be on a new line. | | Found: 1 space 127 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 129 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 131 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 133 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 135 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 137 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 154 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 155 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 260 | ERROR | [ ] Parameter comment must end with a full stop 324 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 2 spaces but found 1 space 325 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 4 spaces but found 3 spaces 354 | WARNING | [x] Array double arrow not aligned correctly; expected 11 | | space(s) between "'billing_country'" and double arrow, but | | found 12. 355 | WARNING | [x] Array double arrow not aligned correctly; expected 13 | | space(s) between "'billing_state'" and double arrow, but | | found 14. 356 | WARNING | [x] Array double arrow not aligned correctly; expected 10 | | space(s) between "'shipping_country'" and double arrow, | | but found 11. 357 | WARNING | [x] Array double arrow not aligned correctly; expected 12 | | space(s) between "'shipping_state'" and double arrow, but | | found 13. 358 | WARNING | [x] Array double arrow not aligned correctly; expected 1 | | space(s) between "'ship_to_different_address'" and double | | arrow, but found 2. 369 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 3 spaces but found 2 spaces 370 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 5 spaces but found 4 spaces 371 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 2 spaces but found 1 space 372 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 4 spaces but found 3 spaces -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 62 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...ent\plugins\snap-finance-checkout\includes\class-snap-amount-formatter.php -------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 1 LINE -------------------------------------------------------------------------------- 1 | ERROR | [ ] Class file names should be based on the class name with | | "class-" prepended. Expected | | class-snap-finance-amount-formatter.php, but found | | class-snap-amount-formatter.php. 1 | ERROR | [x] End of line character is invalid; expected "\n" but found | | "\r\n" -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...-7\wp-content\plugins\snap-finance-checkout\includes\class-snap-blocks.php -------------------------------------------------------------------------------- FOUND 93 ERRORS AND 9 WARNINGS AFFECTING 54 LINES -------------------------------------------------------------------------------- 1 | ERROR | [ ] Class file names should be based on the class name with | | "class-" prepended. Expected class-wc-snap-blocks.php, but | | found class-snap-blocks.php. 1 | ERROR | [ ] Missing file doc comment 1 | ERROR | [x] End of line character is invalid; expected "\n" but found | | "\r\n" 5 | ERROR | [ ] Missing doc comment for class WC_Snap_Blocks 6 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 6 | ERROR | [ ] Missing member variable doc comment 7 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 7 | ERROR | [ ] Missing member variable doc comment 9 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 9 | ERROR | [ ] Missing doc comment for function initialize() 10 | WARNING | [x] Found precision alignment of 1 spaces. 10 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 10 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 5 spaces but found 1 space 11 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 11 | ERROR | [x] Whitespace found at end of line 12 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 14 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 14 | ERROR | [x] Whitespace found at end of line 15 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 15 | ERROR | [ ] Missing doc comment for function | | get_payment_method_script_handles() 16 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 16 | ERROR | [x] Whitespace found at end of line 17 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 18 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 19 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 19 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 19 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 20 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 20 | ERROR | [x] Expected 1 space after the array opener in a single line | | array. Found: no spaces 20 | ERROR | [x] Short array syntax is not allowed 20 | ERROR | [x] Expected 1 space before the array closer in a single line | | array. Found: no spaces 21 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 22 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 23 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 25 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 25 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 2 spaces but found 1 space 26 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 26 | WARNING | [x] Equals sign not aligned with surrounding assignments; | | expected 1 space but found 0 spaces 26 | ERROR | [x] Expected 1 space before "="; 0 found 26 | ERROR | [x] Expected 1 space after "="; 0 found 26 | ERROR | [x] String "" does not require double quotes; use single quotes | | instead 27 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 28 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 29 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 30 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 30 | ERROR | [x] Whitespace found at end of line 31 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 32 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 33 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 33 | ERROR | [x] Opening parenthesis of a multi-line function call must be | | the last content on the line 33 | ERROR | [x] Short array syntax is not allowed 34 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 34 | WARNING | [x] Array double arrow not aligned correctly; expected 7 | | space(s) between "'title'" and double arrow, but found 1. 35 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 36 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 36 | WARNING | [x] Array double arrow not aligned correctly; expected 3 | | space(s) between "'ariaLabel'" and double arrow, but found | | 1. 37 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 37 | ERROR | [x] Whitespace found at end of line 38 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 38 | ERROR | [x] Closing parenthesis of a multi-line function call must be | | on a line by itself 39 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 40 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 41 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 41 | ERROR | [x] Expected 1 space after the array opener in a single line | | array. Found: no spaces 41 | ERROR | [x] Short array syntax is not allowed 41 | ERROR | [x] Expected 1 space before the array closer in a single line | | array. Found: no spaces 42 | 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 44 | ERROR | [ ] Missing doc comment for function get_payment_method_data() 45 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 45 | ERROR | [x] Short array syntax is not allowed 46 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 46 | WARNING | [x] Array double arrow not aligned correctly; expected 7 | | space(s) between "'title'" and double arrow, but found 1. 46 | ERROR | [x] Expected 1 space after "=>"; 0 found 47 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 48 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 48 | WARNING | [x] Array double arrow not aligned correctly; expected 3 | | space(s) between "'ariaLabel'" and double arrow, but found | | 1. 49 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 49 | WARNING | [x] Array double arrow not aligned correctly; expected 4 | | space(s) between "'supports'" and double arrow, but found | | 1. 49 | ERROR | [x] Short array syntax is not allowed 50 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 51 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 51 | ERROR | [x] Line indented incorrectly; expected 1 tabs, found 2 54 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 54 | ERROR | [x] Line indented incorrectly; expected 1 tabs, found 2 54 | ERROR | [ ] Missing doc comment for function | | enqueue_payment_method_script() 55 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 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 57 | ERROR | [x] Expected 1 spaces after opening parenthesis; 0 found 57 | ERROR | [x] Expected 1 spaces before closing parenthesis; 0 found 58 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 58 | ERROR | [x] Expected 1 space after the array opener in a single line | | array. Found: no spaces 58 | ERROR | [x] Short array syntax is not allowed 58 | ERROR | [x] Expected 1 space before the array closer in a single line | | array. Found: no spaces 59 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 60 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 61 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 62 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed 62 | ERROR | [x] Line indented incorrectly; expected 1 tabs, found 2 64 | ERROR | [x] Expected 1 newline at end of file; 0 found 64 | ERROR | [x] The closing brace for the class must go on the next line | | after the body -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 93 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...7\wp-content\plugins\snap-finance-checkout\includes\class-snap-connect.php -------------------------------------------------------------------------------- FOUND 35 ERRORS AND 11 WARNINGS AFFECTING 43 LINES -------------------------------------------------------------------------------- 1 | ERROR | [ ] Class file names should be based on the class name with | | "class-" prepended. Expected | | class-snap-finance-connect.php, but found | | class-snap-connect.php. 1 | ERROR | [x] End of line character is invalid; expected "\n" but found | | "\r\n" 219 | ERROR | [ ] Docblock comment was found for the hook but does not | | contain a "@since" versioning. 226 | WARNING | [ ] Found unknown capability "manage_woocommerce" in function | | call to current_user_can(). Please check the spelling of | | the capability. If this is a custom capability, please | | verify the capability is registered with WordPress via a | | call to WP_Role(s)->add_cap(). | | Custom capabilities can be made known to this sniff by | | setting the "custom_capabilities" property in the PHPCS | | ruleset. 227 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 252 | WARNING | [ ] Found unknown capability "manage_woocommerce" in function | | call to current_user_can(). Please check the spelling of | | the capability. If this is a custom capability, please | | verify the capability is registered with WordPress via a | | call to WP_Role(s)->add_cap(). | | Custom capabilities can be made known to this sniff by | | setting the "custom_capabilities" property in the PHPCS | | ruleset. 253 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 263 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 270 | WARNING | [ ] Found unknown capability "manage_woocommerce" in function | | call to current_user_can(). Please check the spelling of | | the capability. If this is a custom capability, please | | verify the capability is registered with WordPress via a | | call to WP_Role(s)->add_cap(). | | Custom capabilities can be made known to this sniff by | | setting the "custom_capabilities" property in the PHPCS | | ruleset. 274 | WARNING | [ ] Processing form data without nonce verification. 274 | WARNING | [ ] Processing form data without nonce verification. 295 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 338 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 342 | ERROR | [ ] Use Yoda Condition checks, you must. 343 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 370 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 397 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 418 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 435 | ERROR | [ ] Detected usage of a possibly undefined superglobal array | | index: $_GET[$key]. Check that the array index exists | | before using it. 463 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 466 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 489 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 494 | WARNING | [x] Array double arrow not aligned correctly; expected 3 | | space(s) between "'grant_type'" and double arrow, but | | found 4. 495 | WARNING | [x] Array double arrow not aligned correctly; expected 9 | | space(s) between "'code'" and double arrow, but found 10. 496 | WARNING | [x] Array double arrow not aligned correctly; expected 1 | | space(s) between "'redirect_uri'" and double arrow, but | | found 2. 497 | WARNING | [x] Array double arrow not aligned correctly; expected 4 | | space(s) between "'client_id'" and double arrow, but found | | 5. 498 | WARNING | [x] Array double arrow not aligned correctly; expected 5 | | space(s) between "'platform'" and double arrow, but found | | 6. 499 | WARNING | [x] Array double arrow not aligned correctly; expected 4 | | space(s) between "'store_url'" and double arrow, but found | | 5. 508 | ERROR | [ ] Docblock comment was found for the hook but does not | | contain a "@since" versioning. 523 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 531 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 539 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 560 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 738 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 748 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 788 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 882 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 883 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 888 | ERROR | [ ] A function call to __() with texts containing placeholders | | was found, but was not accompanied by a "translators:" | | comment on the line above to clarify the meaning of the | | placeholders. 888 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 894 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 899 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 910 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 916 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 920 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. 927 | ERROR | [ ] Mismatched text domain. Expected 'my-project-text-domain' | | but got 'snap-finance-checkout'. -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- FILE: ...ent\plugins\snap-finance-checkout\includes\class-snap-marketing-assets.php -------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 1 LINE -------------------------------------------------------------------------------- 1 | ERROR | [ ] Class file names should be based on the class name with | | "class-" prepended. Expected | | class-snap-finance-marketing-assets.php, but found | | class-snap-marketing-assets.php. 1 | ERROR | [x] End of line character is invalid; expected "\n" but found | | "\r\n" -------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------- Time: 13.53 secs; Memory: 34MB