π fix(OrderController.php): add get_item method to retrieve order details by ID #2581
Annotations
3 errors and 11 warnings
includes/REST/OrderController.php#L212
String "dokan_rest_invalid_order_id" does not require double quotes; use single quotes instead
|
includes/REST/OrderController.php#L791
Capabilities should be used instead of roles. Found "administrator" in function call to current_user_can()
|
|
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/
|
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/
|
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/
|
includes/REST/OrderController.php#L257
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
|
includes/REST/OrderController.php#L352
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
|
includes/REST/OrderController.php#L419
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
|
includes/REST/OrderController.php#L780
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.
|
includes/REST/OrderController.php#L791
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.
|
includes/REST/OrderController.php#L812
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.
|
includes/REST/OrderController.php#L833
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.
|
includes/REST/OrderController.php#L886
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
|
The logs for this run have expired and are no longer available.
Loading