Skip to content

Module/form manager #2712

Module/form manager

Module/form manager #2712

Triggered via pull request February 13, 2024 11:45
Status Failure
Total duration 37s
Artifacts

phpcs.yml

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

Annotations

10 errors and 14 warnings
Run PHPCS inspection: includes/Ajax.php#L229
Expected no spaces between $loop and the increment operator; 1 found
Run PHPCS inspection: includes/Ajax.php#L230
Expected no spaces between $file_count and the increment operator; 1 found
Run PHPCS inspection: includes/Ajax.php#L665
The parameter "$drop_down_tags" at position #2 of get_terms() has been deprecated since WordPress version 4.5.0. Instead do not pass the parameter.
Run PHPCS inspection: includes/Product/Manager.php#L585
Blank line found at start of control structure
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#L1110
The shorthand list syntax "[]" to destructure arrays is not available in PHP 7.0 or earlier.
Run PHPCS inspection: includes/functions.php#L1210
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#L1210
$_SERVER['QUERY_STRING'] not unslashed before sanitization. Use wp_unslash() or similar
Run PHPCS inspection: includes/functions.php#L1210
Detected usage of a non-sanitized input variable: $_SERVER['QUERY_STRING']
Run PHPCS inspection: includes/functions.php#L2324
Detected usage of a non-sanitized input variable: $_GET['product_search_name']
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/Product/functions.php#L248
Found unknown capability "edit_private_products" 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/functions.php#L321
Found unknown capability "dokandar" 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/functions.php#L348
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/Product/functions.php#L356
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/functions.php#L372
Found unknown capability "dokan_view_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/REST/Manager.php#L80
The method parameter $object is never used
Run PHPCS inspection: includes/REST/Manager.php#L80
The method parameter $request is never used
Run PHPCS inspection: includes/REST/Manager.php#L80
It is recommended not to use reserved keyword "object" as function parameter name. Found: $object
Run PHPCS inspection: includes/REST/Manager.php#L114
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/REST/Manager.php#L144
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.