Fix the issue reported by phpcs

Created on 18 August 2023, over 1 year ago
Updated 21 August 2023, over 1 year ago
FILE: /Applications/MAMP/htdocs/contribution/contribution/web/themes/nature_trail/css/main.css
------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------
  11 | ERROR | [x] CSS colours must be defined in lowercase; expected #1db954 but found #1DB954
  26 | ERROR | [x] CSS colours must be defined in lowercase; expected #1db954 but found #1DB954
 256 | ERROR | [x] CSS colours must be defined in lowercase; expected #1db954 but found #1DB954
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------


FILE: /Applications/MAMP/htdocs/contribution/contribution/web/themes/nature_trail/css/style.css
------------------------------------------------------------------------------------------------
FOUND 20 ERRORS AFFECTING 20 LINES
------------------------------------------------------------------------------------------------
  11 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
  15 | ERROR | [x] CSS colours must be defined in lowercase; expected #1db954 but found #1DB954
  19 | ERROR | [x] CSS colours must be defined in lowercase; expected #1db954 but found #1DB954
  73 | ERROR | [x] CSS colours must be defined in lowercase; expected #1db954 but found #1DB954
 167 | ERROR | [ ] Style definitions must end with a semicolon
 194 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 221 | ERROR | [x] Blank lines are not allowed in class definitions
 225 | ERROR | [x] CSS colours must be defined in lowercase; expected #1db954 but found #1DB954
 266 | ERROR | [x] CSS colours must be defined in lowercase; expected #1db954 but found #1DB954
 267 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
 287 | ERROR | [x] CSS colours must be defined in lowercase; expected #1db954 but found #1DB954
 306 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 314 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 317 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 318 | ERROR | [x] CSS colours must be defined in lowercase; expected #1db954 but found #1DB954
 320 | ERROR | [x] Whitespace found at end of line
 324 | ERROR | [x] CSS colours must be defined in lowercase; expected #1db954 but found #1DB954
 326 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 340 | ERROR | [x] Whitespace found at end of line
 344 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 19 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------


FILE: /Applications/MAMP/htdocs/contribution/contribution/web/themes/nature_trail/js/bootstrap.bundle.min.js
------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
 1 | WARNING | File appears to be minified and cannot be processed
------------------------------------------------------------------------------------------------------------


FILE: /Applications/MAMP/htdocs/contribution/contribution/web/themes/nature_trail/js/custom.js
----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
 25 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------


FILE: /Applications/MAMP/htdocs/contribution/contribution/web/themes/nature_trail/js/nature.js
----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
 22 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------


FILE: /Applications/MAMP/htdocs/contribution/contribution/web/themes/nature_trail/theme-settings.php
-------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 23 ERRORS AND 7 WARNINGS AFFECTING 20 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------------
   9 | ERROR   | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
  13 | ERROR   | [x] There must be no blank lines after the function comment
  16 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 3
  16 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
  17 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 3
  18 | ERROR   | [x] Array indentation error, expected 5 spaces but found 4
  19 | ERROR   | [x] Array closing indentation error, expected 3 spaces but found 2
  45 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
  45 | ERROR   | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
  51 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
  51 | ERROR   | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
  55 | ERROR   | [x] Whitespace found at end of line
  58 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
  58 | ERROR   | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
  63 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
  63 | ERROR   | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
  68 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
  68 | ERROR   | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
  73 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
  73 | ERROR   | [ ] Concatenating translatable strings is not allowed, use placeholders instead and only one string literal
 121 | ERROR   | [x] Whitespace found at end of line
 125 | WARNING | [x] A comma should follow the last multiline array item. Found: )
 128 | ERROR   | [x] No space found before comment text; expected "// Make the uploaded images permanent." but found "//Make the uploaded images permanent."
 129 | ERROR   | [x] Concat operator must be surrounded by a single space
 129 | ERROR   | [x] Expected one space after the comma, 0 found
 130 | ERROR   | [x] Expected 1 space after IF keyword; 0 found
 130 | ERROR   | [x] Expected 1 space after closing parenthesis; found 0
 140 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 140 | ERROR   | [x] Closing brace indented incorrectly; expected 2 spaces, found 0
 142 | ERROR   | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 18 MARKED SNIFF VIOLATIONS AUTOMATICALLY
🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇮🇳India djsagar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024