Skip to content

🪓 fix: Product stock not updating by canceling sub-order from vendor dashboard #2364

🪓 fix: Product stock not updating by canceling sub-order from vendor dashboard

🪓 fix: Product stock not updating by canceling sub-order from vendor dashboard #2364

Triggered via pull request July 19, 2023 14:48
Status Failure
Total duration 44s
Artifacts

phpcs.yml

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

Annotations

3 errors and 13 warnings
Run PHPCS inspection: includes/Ajax.php#L268
Expected no spaces between $loop and the increment operator; 1 found
Run PHPCS inspection: includes/Ajax.php#L269
Expected no spaces between $file_count 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/Ajax.php#L70
Found unknown capability "dokan_add_product" 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/Ajax.php#L85
Found unknown capability "dokan_edit_product" 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/Ajax.php#L159
Found unknown capability "dokandar" 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/Ajax.php#L194
Found unknown capability "dokandar" 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/Ajax.php#L229
Found unknown capability "dokandar" 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/Ajax.php#L268
Stand-alone post-increment statement found. Use pre-increment instead: ++$loop .
Run PHPCS inspection: includes/Ajax.php#L269
Stand-alone post-increment statement found. Use pre-increment instead: ++$file_count .
Run PHPCS inspection: includes/Ajax.php#L286
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/Ajax.php#L401
Found unknown capability "dokandar" 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/Ajax.php#L427
Found unknown capability "dokan_manage_order_note" 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.