Fix the issues reported by phpcs

Created on 13 June 2022, about 2 years ago
Updated 3 March 2023, over 1 year ago

$ phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml at_corolla/

FILE: C:\Users\SI-001\Downloads\at_corolla\color\color.inc
------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 18 ERRORS AFFECTING 17 LINES
------------------------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
11 | ERROR | [x] There must be one blank line after the last USE statement; 0 found;
12 | ERROR | [x] PHP keywords must be lowercase; expected "new" but found "New"
12 | ERROR | [x] Calling class constructors must always include parentheses
17 | ERROR | [x] Short array syntax must be used to define arrays
19 | ERROR | [x] Short array syntax must be used to define arrays
27 | ERROR | [x] Short array syntax must be used to define arrays
28 | ERROR | [x] Short array syntax must be used to define arrays
30 | ERROR | [x] Short array syntax must be used to define arrays
38 | ERROR | [x] Short array syntax must be used to define arrays
40 | ERROR | [x] Short array syntax must be used to define arrays
48 | ERROR | [x] Short array syntax must be used to define arrays
50 | ERROR | [x] Short array syntax must be used to define arrays
61 | ERROR | [x] Short array syntax must be used to define arrays
67 | ERROR | [x] Short array syntax must be used to define arrays
73 | ERROR | [x] Short array syntax must be used to define arrays
76 | ERROR | [x] 8 spaces found before inline comment; expected "// 'base' => '#292929'," but found "// 'base' => '#292929',"
80 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\at_corolla\corolla.info.yml
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
-------------------------------------------------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\at_corolla\corolla.theme
-----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
40 | ERROR | [x] Concat operator must be surrounded by a single space
-----------------------------------------------------------------------

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India Rakhi Soni

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

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024