Single Product Page and Product Edit Page Enhancements #2451
phpcs.yml
on: pull_request
Run PHPCS inspection
39s
Annotations
9 errors and 13 warnings
Run PHPCS inspection:
templates/products/others.php#L18
Inline PHP statement must end with a semicolon
|
Run PHPCS inspection:
templates/products/others.php#L77
PHP syntax error: syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF)
|
Run PHPCS inspection:
includes/Dashboard/Templates/Products.php#L273
If control structure block found as the only statement within an "else" block. Use elseif instead.
|
Run PHPCS inspection:
includes/Dashboard/Templates/Products.php#L316
If control structure block found as the only statement within an "else" block. Use elseif instead.
|
Run PHPCS inspection:
includes/Dashboard/Templates/Products.php#L607
The closing brace for the class must go on the next line after the body
|
Run PHPCS inspection:
includes/functions.php#L290
Use placeholders and $wpdb->prepare(); found interpolated variable {$exclude_product_types_text} at WHERE tt.taxonomy = 'product_type' AND t.slug NOT IN ({$exclude_product_types_text})
|
Run PHPCS inspection:
includes/functions.php#L1059
The shorthand list syntax "[]" to destructure arrays is not available in PHP 7.0 or earlier.
|
Run PHPCS inspection:
includes/functions.php#L3898
The shorthand list syntax "[]" to destructure arrays is not available in PHP 7.0 or earlier.
|
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:
templates/products/products-listing.php#L68
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:
templates/products/products-listing.php#L280
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/Product/Hooks.php#L206
Found unknown capability "dokan_delete_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/Product/Hooks.php#L262
Found unknown capability "manage_woocommerce" 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/Dashboard/Templates/Products.php#L202
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/Dashboard/Templates/Products.php#L223
The method parameter $action is never used
|
Run PHPCS inspection:
includes/Dashboard/Templates/Products.php#L380
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/Dashboard/Templates/Products.php#L572
Found unknown capability "dokan_delete_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/Admin/Settings.php#L93
Found unknown capability "manage_woocommerce" 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/Admin/Settings.php#L119
Found unknown capability "manage_woocommerce" 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.
|