Skip to content

Enhance cerate reverse withdraw from admin dashboard #2353

Enhance cerate reverse withdraw from admin dashboard

Enhance cerate reverse withdraw from admin dashboard #2353

Triggered via pull request July 11, 2023 09:43
Status Failure
Total duration 44s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

phpcs.yml

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

Annotations

2 errors and 11 warnings
Run PHPCS inspection: includes/REST/OrderController.php#L770
Capabilities should be used instead of roles. Found "administrator" in function call to current_user_can()
Run PHPCS inspection
Process completed with exit code 1.
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/ReverseWithdrawal/Manager.php#L778
It is recommended not to use reserved keyword "var" as function parameter name. Found: $var
Run PHPCS inspection: includes/REST/OrderController.php#L237
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
Run PHPCS inspection: includes/REST/OrderController.php#L332
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
Run PHPCS inspection: includes/REST/OrderController.php#L399
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
Run PHPCS inspection: includes/REST/OrderController.php#L759
Found unknown capability "dokan_view_order_menu" 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/REST/OrderController.php#L770
Found unknown capability "shop_manager" 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/REST/OrderController.php#L791
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/REST/OrderController.php#L812
Found unknown capability "dokan_view_order_report" 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/REST/OrderController.php#L865
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object