Fix the issues reported by phpcs

Created on 28 June 2023, about 1 year ago
Updated 6 August 2023, 11 months ago

Problem/Motivation

There are some issues which are reported by PHP code sniffer within the .theme file .

Steps to reproduce

Need to fix the following issues using the php code standard commands.

FOUND 9 ERRORS AND 6 WARNINGS AFFECTING 15 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
111 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
112 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
121 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
122 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
173 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "* Implements hook_foo_BAR_ID_bar() for
| | xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates."
188 | ERROR | [x] Expected newline after closing brace
197 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
199 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
201 | ERROR | [x] Expected 1 blank line after function; 2 found
204 | ERROR | [x] Missing function doc comment
212 | WARNING | [x] A comma should follow the last multiline array item. Found: $logo_url
219 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
220 | ERROR | [x] Array indentation error, expected 8 spaces but found 10
231 | ERROR | [x] Expected 1 newline at end of file; 0 found

๐Ÿ“Œ 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

Comments & Activities

Production build 0.69.0 2024