Skip to content

Refactor: High Performance Order Storage #2361

Refactor: High Performance Order Storage

Refactor: High Performance Order Storage #2361

Triggered via pull request July 19, 2023 05:34
Status Failure
Total duration 49s
Artifacts

phpcs.yml

on: pull_request
Run PHPCS inspection
39s
Run PHPCS inspection
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 13 warnings
Run PHPCS inspection: includes/Tracker.php#L26
Additional blank lines found at end of doc comment
Run PHPCS inspection: includes/Tracker.php#L37
Additional blank lines found at end of doc comment
Run PHPCS inspection: includes/Tracker.php#L80
Additional blank lines found at end of doc comment
Run PHPCS inspection: dokan.php#L585
A file should either contain function declarations or OO structure declarations, but not both. Found 1 function declaration(s) and 1 OO structure declaration(s). The first function declaration was found on line 585; the first OO declaration was found on line 58
Run PHPCS inspection: includes/functions.php#L289
Use placeholders and $wpdb->prepare(); found interpolated variable {$exclude_product_types_text} at WHERE tt.taxonomy = 'product_type' AND t.slug NOT IN ({$exclude_product_types_text})
Run PHPCS inspection: includes/functions.php#L1030
The shorthand list syntax "[]" to destructure arrays is not available in PHP 7.0 or earlier.
Run PHPCS inspection: includes/functions.php#L3865
The shorthand list syntax "[]" to destructure arrays is not available in PHP 7.0 or earlier.
Run PHPCS inspection: includes/wc-functions.php#L121
Expected no spaces between $i and the increment operator; 1 found
Run PHPCS inspection: includes/wc-functions.php#L357
Expected no spaces between $i and the increment operator; 1 found
Run PHPCS inspection
Process completed with exit code 1.
Run PHPCS inspection
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Run PHPCS inspection
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Run PHPCS inspection
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Run PHPCS inspection: includes/functions-compatibility.php#L37
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
Run PHPCS inspection: includes/functions-compatibility.php#L59
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
Run PHPCS inspection: includes/wc-legacy-functions.php#L16
The method parameter $parent_order_id is never used
Run PHPCS inspection: includes/wc-legacy-functions.php#L31
The method parameter $parent_order is never used
Run PHPCS inspection: includes/wc-legacy-functions.php#L31
The method parameter $seller_id is never used
Run PHPCS inspection: includes/wc-legacy-functions.php#L31
The method parameter $seller_products is never used
Run PHPCS inspection: includes/Order/Frontend/Hooks.php#L38
Found unknown capability "dokan_manage_order" 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.
Run PHPCS inspection: includes/Order/Admin/Hooks.php#L114
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.
Run PHPCS inspection: includes/Order/Admin/Hooks.php#L179
It is recommended not to use reserved keyword "class" as function parameter name. Found: $class
Run PHPCS inspection: includes/Order/Admin/Hooks.php#L184
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.