Fix the issues reported by phpcs

Created on 1 July 2023, over 1 year ago
Updated 22 November 2023, about 1 year ago

Problem/Motivation

There are some issues which are reported by PHP code sniffer.

FOUND 3 ERRORS AND 13 WARNINGS AFFECTING 15 LINES
-------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
4 | WARNING | [x] Unused use statement
18 | WARNING | [x] '@TODO use the limit from the config settings.' should match the format '@todo Fix problem X here.'
111 | WARNING | [x] '@TODO load these dynamically from the target reference field.' should match the format '@todo Fix problem X here.'
115 | WARNING | [x] '@TODO this is going to render header/footer/etc but really we only want the values' should match the format '@todo Fix problem X here.'
116 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
129 | WARNING | [x] '@TODO allow configuration of the prompt main prompt.' should match the format '@todo Fix problem X here.'
139 | WARNING | [ ] The use of function dvm() is discouraged
142 | WARNING | [ ] The use of function dvm() is discouraged
146 | WARNING | [x] '@TODO allow configuration of the text shortening prompt.' should match the format '@todo Fix problem X here.'
151 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
161 | WARNING | [x] '@TODO use the service and model selected in the' should match the format '@todo Fix problem X here.'
195 | WARNING | [ ] The use of function dvm() is discouraged
197 | ERROR | [x] Expected newline after closing brace
198 | WARNING | [ ] The use of function dvm() is discouraged
-------------------------------------------------------------------------------------------------------------------------------
FILE: D:\xampp\htdocs\know-how\modules\custom\scotteuser-3371366\config\install\ai_autoreference.settings.yml
-------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------------------

FILE: D:\xampp\htdocs\know-how\modules\custom\scotteuser-3371366\config\schema\ai_autoreference.schema.yml
----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
19 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------

FILE: D:\xampp\htdocs\know-how\modules\custom\scotteuser-3371366\README.md
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
1 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------

FILE: D:\xampp\htdocs\know-how\modules\custom\scotteuser-3371366\src\Form\SettingsForm.php
------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
89 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
------------------------------------------------------------------------------------------

Proposed resolution

Need to fix these issues by running php code standard commands.

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Prachi6824

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024