Skip to content

fix: error on WC post template #598

fix: error on WC post template

fix: error on WC post template #598

Triggered via pull request August 1, 2024 05:41
Status Failure
Total duration 2m 30s
Artifacts

phpcs.yml

on: pull_request
Run PHPCS inspection
2m 23s
Run PHPCS inspection
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 15 warnings
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L72
Opening parenthesis of a multi-line function call must be the last content on the line
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L74
Closing parenthesis of a multi-line function call must be on a line by itself
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L79
Not using strict comparison for in_array; supply true for $strict argument.
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L84
Opening parenthesis of a multi-line function call must be the last content on the line
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L87
Closing parenthesis of a multi-line function call must be on a line by itself
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L107
Doc comment short description must start with a capital letter
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L115
Assignments must be the first block of code on a line
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L115
Assignments must be the first block of code on a line
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L126
Not using strict comparison for in_array; supply true for $strict argument.
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L154
Not using strict comparison for in_array; supply true for $strict argument.
Run PHPCS inspection
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, pat-s/[email protected]. 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 uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, pat-s/[email protected]. 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 `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/Traits/FieldableTrait.php#L50
This comment is 64% valid code; is this commented out code?
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L72
Words in hook names should be separated using underscores. Expected: 'wpuf_ignore_taxonomies', but found: 'wpuf-ignore-taxonomies'.
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L119
Loose comparisons are not allowed. Expected: "==="; Found: "=="
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L131
Loose comparisons are not allowed. Expected: "==="; Found: "=="
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L136
Loose comparisons are not allowed. Expected: "==="; Found: "=="
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L159
Loose comparisons are not allowed. Expected: "==="; Found: "=="
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L164
Loose comparisons are not allowed. Expected: "==="; Found: "=="
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L208
Loose comparisons are not allowed. Expected: "==="; Found: "=="
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L211
Loose comparisons are not allowed. Expected: "==="; Found: "=="
Run PHPCS inspection: includes/Traits/FieldableTrait.php#L265
Loose comparisons are not allowed. Expected: "==="; Found: "=="