Enhance cerate reverse withdraw from admin dashboard #2345
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
Annotations
2 errors and 11 warnings
Run PHPCS inspection:
includes/REST/OrderController.php#L769
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#L758
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#L769
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#L790
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#L811
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#L864
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
|