Fix: phpcs --standard=Drupal issues.

Created on 13 June 2022, over 2 years ago
Updated 26 July 2024, 4 months ago

FILE: C:\Users\SI-001\Downloads\creative-responsive-theme\config\install\creative_responsive_theme.settings.yml
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
28 | ERROR | [x] Expected 1 newline at end of file; 0 found
---------------------------------------------------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\creative-responsive-theme\creative_responsive_theme.info.yml
--------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------
30 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\creative-responsive-theme\creative_responsive_theme.libraries.yml
-------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------
32 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\creative-responsive-theme\creative_responsive_theme.theme
-------------------------------------------------------------------------------------------------------------------------------
FOUND 36 ERRORS AND 10 WARNINGS AFFECTING 40 LINES
-------------------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Doc comment short description must end with a full stop
8 | WARNING | [x] Unused use statement
9 | WARNING | [x] Unused use statement
10 | WARNING | [x] Unused use statement
11 | WARNING | [x] Unused use statement
12 | WARNING | [x] Unused use statement
13 | WARNING | [x] Unused use statement
14 | WARNING | [x] Unused use statement
15 | WARNING | [x] Unused use statement
16 | WARNING | [x] Unused use statement
20 | ERROR | [x] There must be no blank lines after the function comment
29 | ERROR | [x] Expected 1 space after ELSEIF keyword; 0 found
41 | ERROR | [x] Use "elseif" in place of "else if"
44 | ERROR | [x] Use "elseif" in place of "else if"
44 | ERROR | [x] Expected 1 space after IF keyword; 0 found
55 | ERROR | [x] Expected 1 space after ELSEIF keyword; 0 found
89 | ERROR | [x] Whitespace found at end of line
97 | ERROR | [x] There should be no white space after an opening "{"
97 | ERROR | [x] Comments may not appear after statements
104 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
105 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6
114 | ERROR | [x] Namespaced classes/interfaces/traits should be referenced with use statements
115 | ERROR | [x] Whitespace found at end of line
116 | ERROR | [x] No space found before comment text; expected "// Social Icon Link" but found "//Social Icon Link"
116 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
117 | ERROR | [x] Short array syntax must be used to define arrays
123 | ERROR | [x] Short array syntax must be used to define arrays
129 | ERROR | [x] Short array syntax must be used to define arrays
134 | ERROR | [x] Short array syntax must be used to define arrays
139 | ERROR | [x] Short array syntax must be used to define arrays
144 | ERROR | [x] Short array syntax must be used to define arrays
149 | ERROR | [x] Short array syntax must be used to define arrays
154 | ERROR | [x] Short array syntax must be used to define arrays
163 | ERROR | [x] No space found before comment text; expected "// Copyright" but found "//Copyright"
163 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
164 | ERROR | [x] Short array syntax must be used to define arrays
170 | ERROR | [x] Short array syntax must be used to define arrays
176 | ERROR | [x] No space found before comment text; expected "// Show/Hide credit" but found "//Show/Hide credit"
176 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
177 | ERROR | [x] Short array syntax must be used to define arrays
183 | ERROR | [x] Short array syntax must be used to define arrays
194 | ERROR | [x] Expected 1 space before opening brace; found 0
195 | ERROR | [x] Expected 1 space after IF keyword; 0 found
195 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
196 | ERROR | [x] Short array syntax must be used to define arrays
198 | WARNING | [x] A comma should follow the last multiline array item. Found: )

📌 Task
Status

Needs review

Version

2.0

Component

Code

Created by

🇮🇳India Rakhi Soni

Live updates comments and jobs are added and updated live.
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.71.5 2024