Skip to content

πŸ› fix(OrderController.php): add get_item method to retrieve order details by ID #2581

πŸ› fix(OrderController.php): add get_item method to retrieve order details by ID

πŸ› fix(OrderController.php): add get_item method to retrieve order details by ID #2581

Triggered via pull request November 8, 2023 03:14
Status Failure
Total duration 41s
Artifacts

phpcs.yml

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

Annotations

3 errors and 11 warnings
Run PHPCS inspection: includes/REST/OrderController.php#L212
String "dokan_rest_invalid_order_id" does not require double quotes; use single quotes instead
Run PHPCS inspection: includes/REST/OrderController.php#L791
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 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/REST/OrderController.php#L257
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
Run PHPCS inspection: includes/REST/OrderController.php#L352
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
Run PHPCS inspection: includes/REST/OrderController.php#L419
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
Run PHPCS inspection: 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.
Run PHPCS inspection: 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.
Run PHPCS inspection: 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.
Run PHPCS inspection: 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.
Run PHPCS inspection: includes/REST/OrderController.php#L886
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object