Skip to content

enhance: inconsistent format in email templates #619

enhance: inconsistent format in email templates

enhance: inconsistent format in email templates #619

Triggered via pull request August 23, 2024 03:28
Status Failure
Total duration 43s
Artifacts

phpcs.yml

on: pull_request
Run PHPCS inspection
33s
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/Free/Form_Element.php#L435
Opening parenthesis of a multi-line function call must be the last content on the line
Run PHPCS inspection: includes/Free/Form_Element.php#L438
Closing parenthesis of a multi-line function call must be on a line by itself
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
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/Free/Form_Element.php#L68
Found precision alignment of 1 spaces.
Run PHPCS inspection: includes/Free/Form_Element.php#L230
Found precision alignment of 1 spaces.
Run PHPCS inspection: includes/Free/Form_Element.php#L336
Stand-alone post-increment statement found. Use pre-increment instead: ++$count.
Run PHPCS inspection: includes/Free/Form_Element.php#L482
wp_redirect() found. Using wp_safe_redirect(), along with the "allowed_redirect_hosts" filter if needed, can help avoid any chances of malicious redirects within code. It is also important to remember to call exit() after a redirect so that no other unwanted code is executed.
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.