Fix the issues reported by phpcs

Created on 23 June 2023, about 1 year ago
Updated 5 March 2024, 4 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 144 ERRORS AND 11 WARNINGS AFFECTING 129 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
8 | 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
26 | ERROR | [x] Expected newline after closing brace
46 | ERROR | [x] Concat operator must be surrounded by a single space
66 | ERROR | [x] No space found before comment text; expected "// Get the IDs for each font family" but found "//Get the IDs for each font family"
66 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
72 | ERROR | [x] No space found before comment text; expected "// Generate the library strings" but found "//Generate the library strings"
72 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
73 | ERROR | [x] Concat operator must be surrounded by a single space
74 | ERROR | [x] Concat operator must be surrounded by a single space
75 | ERROR | [x] Concat operator must be surrounded by a single space
76 | ERROR | [x] Concat operator must be surrounded by a single space
78 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
78 | ERROR | [x] No space found before comment text; expected "// Font families with the following IDs are OS specific and should not load an external font" but found "//Font families with the following IDs are OS
| | specific and should not load an external font"
79 | ERROR | [x] No space found before comment text; expected "// yf: @font-your-face, yf=fyf" but found "//yf: @font-your-face, yf=fyf"
80 | ERROR | [x] No space found before comment text; expected "// 13: Georgia" but found "//13: Georgia"
81 | ERROR | [x] No space found before comment text; expected "// 21: Helvetica Neue" but found "//21: Helvetica Neue"
82 | ERROR | [x] No space found before comment text; expected "// 30: Times" but found "//30: Times"
82 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
83 | ERROR | [x] Short array syntax must be used to define arrays
83 | ERROR | [x] Expected one space after the comma, 0 found
83 | ERROR | [x] Expected one space after the comma, 0 found
83 | ERROR | [x] Expected one space after the comma, 0 found
85 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
85 | ERROR | [x] No space found before comment text; expected "// Directly Load the font family libraries if the IDs are not in the $no_library_array" but found "//Directly Load the font family libraries if the IDs are
| | not in the $no_library_array"
85 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
101 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
104 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
111 | ERROR | [x] No space found before comment text; expected "// Load fixed-header library" but found "//Load fixed-header library"
111 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
118 | ERROR | [x] No space found before comment text; expected "// Load page-container-border" but found "//Load page-container-border"
118 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
125 | ERROR | [x] Concat operator must be surrounded by a single space
127 | ERROR | [x] No space found before comment text; expected "// Load transparent-header library" but found "//Load transparent-header library"
127 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
133 | ERROR | [x] No space found before comment text; expected "// Inverted header state" but found "//Inverted header state"
133 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
140 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
147 | ERROR | [x] Missing function doc comment
147 | ERROR | [x] Expected 1 space before opening brace; found 0
150 | ERROR | [x] Expected 1 space after IF keyword; 0 found
150 | ERROR | [x] Expected 1 space after closing parenthesis; found 0
155 | ERROR | [x] Short array syntax must be used to define arrays
156 | WARNING | [x] A comma should follow the last multiline array item. Found: $page_title
173 | ERROR | [x] Short array syntax must be used to define arrays
177 | ERROR | [x] Short array syntax must be used to define arrays
186 | ERROR | [x] Missing function doc comment
203 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
208 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
213 | ERROR | [x] Expected newline after closing brace
216 | ERROR | [x] Expected 1 space before "/"; 0 found
216 | ERROR | [x] Expected 1 space after "/"; 0 found
219 | WARNING | [x] There must be no blank line following an inline comment
221 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
227 | ERROR | [x] Expected 1 space after IF keyword; 0 found
230 | ERROR | [x] Expected newline after closing brace
235 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
241 | ERROR | [x] Expected 1 space after IF keyword; 0 found
244 | ERROR | [x] Expected newline after closing brace
249 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
261 | ERROR | [x] Expected newline after closing brace
266 | ERROR | [x] Expected newline after closing brace
266 | ERROR | [x] Use "elseif" in place of "else if"
272 | ERROR | [x] Expected newline after closing brace
277 | ERROR | [x] Expected newline after closing brace
286 | ERROR | [x] Expected newline after closing brace
290 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
293 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
296 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
299 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
300 | ERROR | [x] Expected 1 space after IF keyword; 0 found
304 | ERROR | [x] Expected newline after closing brace
308 | ERROR | [x] Expected newline after closing brace
312 | ERROR | [x] Expected newline after closing brace
316 | ERROR | [x] Expected newline after closing brace
322 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
325 | ERROR | [x] Expected 1 space after IF keyword; 0 found
328 | ERROR | [x] Expected newline after closing brace
333 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
336 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
339 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
342 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
345 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
348 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
351 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
354 | ERROR | [x] Expected 1 space after IF keyword; 0 found
358 | ERROR | [x] Expected newline after closing brace
364 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
374 | ERROR | [x] Expected newline after closing brace
381 | ERROR | [x] Expected newline after closing brace
389 | ERROR | [x] Expected newline after closing brace
396 | ERROR | [x] Expected newline after closing brace
399 | ERROR | [x] Expected newline after closing brace
405 | ERROR | [x] Expected newline after closing brace
411 | ERROR | [x] Expected newline after closing brace
418 | ERROR | [x] Expected newline after closing brace
428 | ERROR | [x] Expected newline after closing brace
433 | ERROR | [x] Expected newline after closing brace
438 | ERROR | [x] Expected newline after closing brace
442 | ERROR | [x] No space found before comment text; expected "// Footer Bottom" but found "//Footer Bottom"
442 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
445 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
448 | ERROR | [x] Expected 1 space after IF keyword; 0 found
451 | ERROR | [x] Expected newline after closing brace
456 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
461 | ERROR | [x] Expected newline after closing brace
468 | ERROR | [x] Expected newline after closing brace
475 | ERROR | [x] Expected newline after closing brace
482 | ERROR | [x] Expected newline after closing brace
489 | ERROR | [x] Expected newline after closing brace
496 | ERROR | [x] Expected newline after closing brace
503 | ERROR | [x] Expected newline after closing brace
510 | ERROR | [x] Expected newline after closing brace
517 | ERROR | [x] Expected newline after closing brace
524 | ERROR | [x] Expected newline after closing brace
531 | ERROR | [x] Expected newline after closing brace
538 | ERROR | [x] Expected newline after closing brace
545 | ERROR | [x] Expected newline after closing brace
552 | ERROR | [x] Expected newline after closing brace
559 | ERROR | [x] Expected newline after closing brace
566 | ERROR | [x] Expected newline after closing brace
570 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
587 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
607 | ERROR | [x] No space found before comment text; expected "// Region Separator" but found "//Region Separator"
607 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
622 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
645 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
668 | ERROR | [x] No space found before comment text; expected "// Load to-top library" but found "//Load to-top library"
668 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
675 | ERROR | [x] No space found before comment text; expected "// fixed header" but found "//fixed header"
675 | ERROR | [x] Inline comments must start with a capital letter
675 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
679 | ERROR | [x] Missing function doc comment
681 | ERROR | [x] No space found before comment text; expected "// In page slider" but found "//In page slider"
681 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
686 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
690 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
695 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
696 | ERROR | [x] Expected newline after closing brace
697 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
715 | ERROR | [x] Expected newline after closing brace
722 | ERROR | [x] Missing function doc comment
725 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
776 | 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."
789 | ERROR | [x] Missing function doc comment
791 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters
791 | ERROR | [x] No space found before comment text; expected "// Expose node view_mode to field templates" but found "//Expose node view_mode to field templates"
791 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
791 | ERROR | [x] Comments may not appear after statements
794 | ERROR | [x] Missing function doc comment
798 | ERROR | [x] Missing function doc comment

📌 Task
Status

Needs work

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

  • Issue created by @Prachi6824
  • Assigned to Prachi6824
  • Status changed to Needs review about 1 year ago
  • 🇮🇳India Prachi6824

    Hello,

    I have created a patch to solve all the errors related to phpcs code standard within the .theme file .
    Please review and apply it

  • Issue was unassigned.
  • Status changed to Needs work 4 months ago
  • 🇮🇳India Ashutosh Ahirwal India

    Hi, I have applied patch but there are still so many errors found.
    Moving to Need work

    Used command:- ./vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,css,js,yml web/modules/custom/topplus_lite

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/css/components/dropdowns.css
    ------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------
    36 | ERROR | Style definitions must end with a semicolon
    ------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/css/components/inverted-header.css
    ------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------
    42 | ERROR | Style definitions must end with a semicolon
    ------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/css/components/social-links.css
    ---------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------
    41 | ERROR | Style definitions must end with a semicolon
    ---------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/css/components/forms.css
    --------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------
    167 | ERROR | Style definitions must end with a semicolon
    --------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/css/components/menu.css
    -------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------
    819 | ERROR | Class definition is empty
    -------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/css/components/owl-carousel-global.css
    ----------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------
    69 | ERROR | Style definitions must end with a semicolon
    ----------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/css/theme/local-theme.css
    ---------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------
    1 | ERROR | [x] Additional whitespace found at start of file
    ---------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ---------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/popper/popper.min.js
    -------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------
    1 | WARNING | File appears to be minified and cannot be processed
    -------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/waypoints/shortcuts/inview.min.js
    --------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------
    1 | WARNING | File appears to be minified and cannot be processed
    --------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/waypoints/shortcuts/sticky.min.js
    --------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------
    1 | WARNING | File appears to be minified and cannot be processed
    --------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/waypoints/jquery.waypoints.min.js
    --------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------
    1 | WARNING | File appears to be minified and cannot be processed
    --------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/magnific-popup/magnific-popup.css
    --------------------------------------------------------------------------------------------------------------------------
    FOUND 162 ERRORS AFFECTING 135 LINES
    --------------------------------------------------------------------------------------------------------------------------
    11 | ERROR | [x] Closing brace of class definition must be on new line
    21 | ERROR | [x] Closing brace of class definition must be on new line
    31 | ERROR | [x] Closing brace of class definition must be on new line
    37 | ERROR | [x] Closing brace of class definition must be on new line
    40 | ERROR | [x] Closing brace of class definition must be on new line
    48 | ERROR | [x] Closing brace of class definition must be on new line
    53 | ERROR | [x] Closing brace of class definition must be on new line
    56 | ERROR | [x] Closing brace of class definition must be on new line
    58 | ERROR | [x] Multiple selectors should each be on a single line
    61 | ERROR | [x] Closing brace of class definition must be on new line
    67 | ERROR | [x] Closing brace of class definition must be on new line
    70 | ERROR | [x] Closing brace of class definition must be on new line
    78 | ERROR | [x] Closing brace of class definition must be on new line
    81 | ERROR | [x] Closing brace of class definition must be on new line
    84 | ERROR | [x] Closing brace of class definition must be on new line
    87 | ERROR | [x] CSS colours must be defined in lowercase; expected #ccc but found #CCC
    95 | ERROR | [x] Closing brace of class definition must be on new line
    96 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    97 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    97 | ERROR | [x] CSS colours must be defined in lowercase; expected #ccc but found #CCC
    97 | ERROR | [x] Closing brace of class definition must be on new line
    98 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 4
    99 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
    99 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
    99 | ERROR | [x] Closing brace of class definition must be on new line
    102 | ERROR | [x] Closing brace of class definition must be on new line
    105 | ERROR | [x] Closing brace of class definition must be on new line
    119 | ERROR | [x] Closing brace of class definition must be on new line
    123 | ERROR | [x] Closing brace of class definition must be on new line
    136 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
    139 | ERROR | [x] Closing brace of class definition must be on new line
    140 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    141 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    142 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    142 | ERROR | [x] Closing brace of class definition must be on new line
    143 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    144 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    144 | ERROR | [x] Closing brace of class definition must be on new line
    147 | ERROR | [x] Closing brace of class definition must be on new line
    151 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
    155 | ERROR | [x] Closing brace of class definition must be on new line
    161 | ERROR | [x] CSS colours must be defined in lowercase; expected #ccc but found #CCC
    164 | ERROR | [x] Closing brace of class definition must be on new line
    175 | ERROR | [x] Closing brace of class definition must be on new line
    176 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    177 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    177 | ERROR | [x] Closing brace of class definition must be on new line
    178 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    179 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    180 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    180 | ERROR | [x] Closing brace of class definition must be on new line
    181 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    182 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    183 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    184 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    185 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    186 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    187 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    188 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    189 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    190 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    191 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    192 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    192 | ERROR | [x] Closing brace of class definition must be on new line
    193 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    194 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    195 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    196 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    196 | ERROR | [x] Closing brace of class definition must be on new line
    197 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    198 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    199 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    200 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    200 | ERROR | [x] Closing brace of class definition must be on new line
    203 | ERROR | [x] Closing brace of class definition must be on new line
    204 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    205 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    205 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
    206 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    206 | ERROR | [x] Closing brace of class definition must be on new line
    207 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    208 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    209 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    209 | ERROR | [x] CSS colours must be defined in lowercase; expected #3f3f3f but found #3F3F3F
    209 | ERROR | [x] Closing brace of class definition must be on new line
    212 | ERROR | [x] Closing brace of class definition must be on new line
    213 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    214 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    214 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
    215 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    215 | ERROR | [x] Closing brace of class definition must be on new line
    216 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    217 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    217 | ERROR | [x] CSS colours must be defined in lowercase; expected #3f3f3f but found #3F3F3F
    217 | ERROR | [x] Closing brace of class definition must be on new line
    221 | ERROR | [x] Closing brace of class definition must be on new line
    222 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    223 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    224 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    225 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    225 | ERROR | [x] Closing brace of class definition must be on new line
    226 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    227 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    227 | ERROR | [x] Closing brace of class definition must be on new line
    233 | ERROR | [x] Closing brace of class definition must be on new line
    234 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    235 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    236 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    237 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    238 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    239 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    240 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    241 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    242 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    242 | ERROR | [x] Closing brace of class definition must be on new line
    253 | ERROR | [x] Closing brace of class definition must be on new line
    257 | ERROR | [x] Closing brace of class definition must be on new line
    258 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    259 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    260 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    261 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    262 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    263 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    264 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    265 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    266 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    267 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    268 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    269 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    270 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    270 | ERROR | [x] Closing brace of class definition must be on new line
    271 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    272 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    272 | ERROR | [x] CSS colours must be defined in lowercase; expected #bdbdbd but found #BDBDBD
    273 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    274 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    275 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    275 | ERROR | [x] Closing brace of class definition must be on new line
    276 | ERROR | [x] Line indented incorrectly; expected 0 spaces, found 2
    277 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    277 | ERROR | [x] Closing brace of class definition must be on new line
    285 | ERROR | [x] Closing brace of class definition must be on new line
    290 | ERROR | [x] CSS colours must be defined in lowercase; expected #f3f3f3 but found #F3F3F3
    292 | ERROR | [x] Closing brace of class definition must be on new line
    295 | ERROR | [x] Closing brace of class definition must be on new line
    298 | ERROR | [x] Closing brace of class definition must be on new line
    302 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
    303 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0
    306 | ERROR | [x] Closing brace of class definition must be on new line
    308 | ERROR | [x] Closing brace of class definition must be on new line
    311 | ERROR | [x] Closing brace of class definition must be on new line
    314 | ERROR | [x] Closing brace of class definition must be on new line
    322 | ERROR | [x] Closing brace of class definition must be on new line
    323 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
    324 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6
    324 | ERROR | [x] Closing brace of class definition must be on new line
    327 | ERROR | [x] Closing brace of class definition must be on new line
    337 | ERROR | [x] Closing brace of class definition must be on new line
    342 | ERROR | [x] Closing brace of class definition must be on new line
    345 | ERROR | [x] Closing brace of class definition must be on new line
    348 | ERROR | [x] Closing brace of class definition must be on new line
    351 | ERROR | [x] Closing brace of class definition must be on new line
    --------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 162 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/magnific-popup/jquery.magnific-popup.min.js
    ------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------------------
    1 | WARNING | File appears to be minified and cannot be processed
    ------------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/magnific-popup/jquery.magnific-popup.js
    --------------------------------------------------------------------------------------------------------------------------------
    FOUND 10 ERRORS AFFECTING 10 LINES
    --------------------------------------------------------------------------------------------------------------------------------
    1106 | ERROR | String concat is not required here; use a single string instead
    1107 | ERROR | String concat is not required here; use a single string instead
    1108 | ERROR | String concat is not required here; use a single string instead
    1109 | ERROR | String concat is not required here; use a single string instead
    1110 | ERROR | String concat is not required here; use a single string instead
    1113 | ERROR | String concat is not required here; use a single string instead
    1114 | ERROR | String concat is not required here; use a single string instead
    1115 | ERROR | String concat is not required here; use a single string instead
    1116 | ERROR | String concat is not required here; use a single string instead
    1544 | ERROR | String concat is not required here; use a single string instead
    --------------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/slideout/slideout.min.js
    -----------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------
    1 | WARNING | File appears to be minified and cannot be processed
    -----------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/mt-modernizr/mt-modernizr.js
    ---------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------
    1 | WARNING | File appears to be minified and cannot be processed
    ---------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/flexslider/jquery.flexslider-min.js
    ----------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------------------
    1 | WARNING | File appears to be minified and cannot be processed
    ----------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/flexslider/changelog.txt
    -----------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    -----------------------------------------------------------------------------------------------------------------
    13 | WARNING | Line exceeds 80 characters; contains 103 characters
    33 | WARNING | Line exceeds 80 characters; contains 96 characters
    36 | WARNING | Line exceeds 80 characters; contains 111 characters
    -----------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/flexslider/jquery.flexslider.js
    ------------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 3 LINES
    ------------------------------------------------------------------------------------------------------------------------
    885 | ERROR | [ ] Blank lines are not allowed after DEFAULT statements
    1115 | ERROR | [x] Inline control structures are not allowed
    1136 | ERROR | [x] Inline control structures are not allowed
    ------------------------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/owl-carousel/README.md
    ---------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
    ---------------------------------------------------------------------------------------------------------------
    37 | WARNING | Line exceeds 80 characters; contains 92 characters
    41 | WARNING | Line exceeds 80 characters; contains 96 characters
    44 | WARNING | Line exceeds 80 characters; contains 114 characters
    61 | WARNING | Line exceeds 80 characters; contains 166 characters
    74 | WARNING | Line exceeds 80 characters; contains 116 characters
    95 | WARNING | Line exceeds 80 characters; contains 81 characters
    98 | WARNING | Line exceeds 80 characters; contains 100 characters
    ---------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/js/owl-carousel/owl.carousel.min.js
    -------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------
    1 | WARNING | File appears to be minified and cannot be processed
    -------------------------------------------------------------------------------------------------------------------------

    FILE: /Users/ashutoshahirwal/Sites/lando/contribution/web/modules/custom/topplus_lite/theme-settings.php
    --------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
    --------------------------------------------------------------------------------------------------------
    3 | ERROR | Missing short description in doc comment
    7 | ERROR | Doc comment is empty
    121 | WARNING | Avoid backslash escaping in translatable strings when possible, use "" quotes instead
    --------------------------------------------------------------------------------------------------------

    Time: 2.55 secs; Memory: 54MB

Production build 0.69.0 2024