Enhancement/commission restructure #2696
phpcs.yml
on: pull_request
Run PHPCS inspection
38s
Annotations
10 errors and 14 warnings
Run PHPCS inspection:
includes/Admin/Settings.php#L501
Mismatched text domain. Expected 'dokan-lite' but got 'dokan'.
|
Run PHPCS inspection:
includes/Admin/Settings.php#L506
Mismatched text domain. Expected 'dokan-lite' but got 'dokan'.
|
Run PHPCS inspection:
includes/Admin/Settings.php#L509
Mismatched text domain. Expected 'dokan-lite' but got 'dokan'.
|
Run PHPCS inspection:
includes/Admin/Settings.php#L516
Mismatched text domain. Expected 'dokan-lite' but got 'dokan'.
|
Run PHPCS inspection:
includes/Admin/Settings.php#L519
Mismatched text domain. Expected 'dokan-lite' but got 'dokan'.
|
Run PHPCS inspection:
includes/Admin/Settings.php#L528
Mismatched text domain. Expected 'dokan-lite' but got 'dokan'.
|
Run PHPCS inspection:
includes/functions.php#L303
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#L1103
The shorthand list syntax "[]" to destructure arrays is not available in PHP 7.0 or earlier.
|
Run PHPCS inspection:
includes/functions.php#L1203
Detected usage of a possibly undefined superglobal array index: $_SERVER['QUERY_STRING']. Use isset() or empty() to check the index exists before using it
|
Run PHPCS inspection:
includes/functions.php#L1203
$_SERVER['QUERY_STRING'] not unslashed before sanitization. Use wp_unslash() or similar
|
Run PHPCS inspection
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
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/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.
|
Run PHPCS inspection:
includes/functions.php#L49
Found unknown capability "vendor_staff" 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/functions.php#L71
Found unknown capability "dokandar" in function call to 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/functions.php#L86
Found unknown capability "customer" in function call to 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/functions.php#L867
The method parameter $key is never used
|
Run PHPCS inspection:
includes/functions.php#L867
The method parameter $array is never used
|
Run PHPCS inspection:
includes/functions.php#L867
It is recommended not to use reserved keyword "array" as function parameter name. Found: $array
|
Run PHPCS inspection:
includes/functions.php#L880
The method parameter $key is never used
|
Run PHPCS inspection:
includes/functions.php#L977
The method parameter $pro is never used
|