Skip to content

enhance: inconsistent format in email templates #620

enhance: inconsistent format in email templates

enhance: inconsistent format in email templates #620

Triggered via pull request August 23, 2024 04:46
Status Failure
Total duration 32s
Artifacts

phpcs.yml

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

Annotations

10 errors and 17 warnings
Run PHPCS inspection: wpuf.php#L243
Unnecessary "echo sprintf(...)" found. Use "printf(...)" instead.
Run PHPCS inspection: wpuf.php#L298
date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.
Run PHPCS inspection: wpuf.php#L392
A file should either contain function declarations or OO structure declarations, but not both. Found 1 function declaration(s) and 1 OO structure declaration(s). The first function declaration was found on line 392; the first OO declaration was found on line 38
Run PHPCS inspection: includes/Frontend/Frontend_Form.php#L176
The shorthand list syntax "[]" to destructure arrays is not available in PHP 7.0 or earlier.
Run PHPCS inspection: includes/Frontend/Frontend_Form.php#L304
The shorthand list syntax "[]" to destructure arrays is not available in PHP 7.0 or earlier.
Run PHPCS inspection: includes/Frontend/Frontend_Form.php#L428
Capabilities should be used instead of roles. Found "administrator" in function call to current_user_can()
Run PHPCS inspection: includes/Frontend/Frontend_Form.php#L429
Capabilities should be used instead of roles. Found "editor" in function call to current_user_can()
Run PHPCS inspection: includes/Frontend/Frontend_Form.php#L430
Capabilities should be used instead of roles. Found "author" in function call to current_user_can()
Run PHPCS inspection: includes/Frontend/Frontend_Form.php#L431
Capabilities should be used instead of roles. Found "contributor" in function call to current_user_can()
Run PHPCS inspection: includes/Free/Form_Element.php#L435
Opening parenthesis of a multi-line function call must be the last content on the line
Run PHPCS inspection
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, pat-s/always-upload-cache@v1.1.4. 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 following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, pat-s/always-upload-cache@v1.1.4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-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 `save-state` 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 `save-state` 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
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: wpuf.php#L225
This comment is 43% valid code; is this commented out code?
Run PHPCS inspection: includes/Frontend/Frontend_Form.php#L55
Processing form data without nonce verification.
Run PHPCS inspection: includes/Frontend/Frontend_Form.php#L55
Processing form data without nonce verification.
Run PHPCS inspection: includes/Frontend/Frontend_Form.php#L110
This comment is 55% valid code; is this commented out code?
Run PHPCS inspection: includes/Frontend/Frontend_Form.php#L124
Processing form data without nonce verification.
Run PHPCS inspection: includes/Frontend/Frontend_Form.php#L124
Processing form data without nonce verification.
Run PHPCS inspection: includes/Frontend/Frontend_Form.php#L168
Silencing errors is strongly discouraged. Use proper error checking instead. Found: @Header( 'Content-Type: application/json; charset=' ...
Run PHPCS inspection: includes/Frontend/Frontend_Form.php#L270
json_encode() is discouraged. Use wp_json_encode() instead.
Run PHPCS inspection: includes/Frontend/Frontend_Form.php#L325
Processing form data without nonce verification.
Run PHPCS inspection: includes/Frontend/Frontend_Form.php#L325
Processing form data without nonce verification.