Skip to content

Fix - invalid course progress percentage (#1972) #210

Fix - invalid course progress percentage (#1972)

Fix - invalid course progress percentage (#1972) #210

Triggered via pull request September 28, 2023 06:26
Status Failure
Total duration 32s
Artifacts

wpcs.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
WPCS: classes/Utils.php#L793
Use placeholders and $wpdb->prepare(); found interpolated variable $in_ids at AND meta_key IN ('{$in_ids}')

WPCS: classes/Utils.php#L886
Use placeholders and $wpdb->prepare(); found interpolated variable $assignment_ids_str at AND comment_post_ID IN({$assignment_ids_str});

WPCS: classes/Utils.php#L1257
Assignments must be the first block of code on a line
WPCS: classes/Utils.php#L1393
Missing parameter comment
WPCS: classes/Utils.php#L1411
Doc comment for parameter "$post_type" missing
WPCS: classes/Utils.php#L1434
Use placeholders and $wpdb->prepare(); found $post_type
WPCS: classes/Utils.php#L1434
Use placeholders and $wpdb->prepare(); found ?
WPCS: classes/Utils.php#L1434
Use placeholders and $wpdb->prepare(); found interpolated variable $post_type at " AND items.post_type='{$post_type}' "
WPCS: classes/Utils.php#L1434
Use placeholders and $wpdb->prepare(); found :
WPCS: classes/Utils.php#L1492
Function return type is not void, but function has no return statement
WPCS
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
WPCS
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/