Skip to content

fix lint

fix lint #134

Triggered via push February 21, 2024 13:29
Status Failure
Total duration 14s
Artifacts

php-lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 5 warnings
PHPCS: class-gwiz-gf-openai.php#L1449
Expected 1 space after "!"; 0 found
PHPCS: class-gwiz-gf-openai.php#L1478
Each array item in a multi-line array declaration must end in a comma
PHPCS: class-gwiz-gf-openai.php#L1478
Whitespace found at end of line
PHPCS: class-gwiz-gf-openai.php#L1490
Each array item in a multi-line array declaration must end in a comma
PHPCS: class-gwiz-gf-openai.php#L1496
Tabs must be used to indent lines; spaces are not allowed
PHPCS
Process completed with exit code 1.
PHPCS
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHPCS
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/
PHPCS: class-gwiz-gf-openai.php#L869
Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
PHPCS: class-gwiz-gf-openai.php#L1382
A gettext call containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.
PHPCS: class-gwiz-gf-openai.php#L1449
Not using strict comparison for in_array; supply true for third argument.