Fix the issues reported by phpcs

Created on 10 April 2023, over 1 year ago
Updated 1 February 2024, 10 months ago

Running phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig reports the following warnings/errors, which needs to be fixed, where possible.

FILE: /home/gai/drupal-git/drupal/themes/contrib/business/css/style.css
-------------------------------------------------------------------------------------------------
FOUND 232 ERRORS AFFECTING 155 LINES
-------------------------------------------------------------------------------------------------
    9 | ERROR | [x] Multiple selectors should each be on a single line
    9 | ERROR | [x] Multiple selectors should each be on a single line
    9 | ERROR | [x] Multiple selectors should each be on a single line
    9 | ERROR | [x] Multiple selectors should each be on a single line
    9 | ERROR | [x] Multiple selectors should each be on a single line
   10 | ERROR | [x] Multiple selectors should each be on a single line
   10 | ERROR | [x] Multiple selectors should each be on a single line
   10 | ERROR | [x] Multiple selectors should each be on a single line
   10 | ERROR | [x] Multiple selectors should each be on a single line
   10 | ERROR | [x] Multiple selectors should each be on a single line
   10 | ERROR | [x] Multiple selectors should each be on a single line
   10 | ERROR | [x] Multiple selectors should each be on a single line
   10 | ERROR | [x] Multiple selectors should each be on a single line
   11 | ERROR | [x] Multiple selectors should each be on a single line
   11 | ERROR | [x] Multiple selectors should each be on a single line
   11 | ERROR | [x] Multiple selectors should each be on a single line
   12 | ERROR | [x] Multiple selectors should each be on a single line
   12 | ERROR | [x] Multiple selectors should each be on a single line
   12 | ERROR | [x] Multiple selectors should each be on a single line
   12 | ERROR | [x] Multiple selectors should each be on a single line
   12 | ERROR | [x] Multiple selectors should each be on a single line
   12 | ERROR | [x] Multiple selectors should each be on a single line
   12 | ERROR | [x] Multiple selectors should each be on a single line
   13 | ERROR | [x] Multiple selectors should each be on a single line
   13 | ERROR | [x] Multiple selectors should each be on a single line
   13 | ERROR | [x] Multiple selectors should each be on a single line
   13 | ERROR | [x] Multiple selectors should each be on a single line
   14 | ERROR | [x] Multiple selectors should each be on a single line
   15 | ERROR | [x] Multiple selectors should each be on a single line
   15 | ERROR | [x] Multiple selectors should each be on a single line
   15 | ERROR | [x] Multiple selectors should each be on a single line
   15 | ERROR | [x] Multiple selectors should each be on a single line
   15 | ERROR | [x] Multiple selectors should each be on a single line
   16 | ERROR | [x] Multiple selectors should each be on a single line
   16 | ERROR | [x] Multiple selectors should each be on a single line
   16 | ERROR | [x] Multiple selectors should each be on a single line
   17 | ERROR | [x] Multiple selectors should each be on a single line
   17 | ERROR | [x] Multiple selectors should each be on a single line
   17 | ERROR | [x] Multiple selectors should each be on a single line
   17 | ERROR | [x] Multiple selectors should each be on a single line
   17 | ERROR | [x] Multiple selectors should each be on a single line
   17 | ERROR | [x] Multiple selectors should each be on a single line
   17 | ERROR | [x] Multiple selectors should each be on a single line
   18 | ERROR | [x] Multiple selectors should each be on a single line
   18 | ERROR | [x] Multiple selectors should each be on a single line
   18 | ERROR | [x] Multiple selectors should each be on a single line
   18 | ERROR | [x] Multiple selectors should each be on a single line
   18 | ERROR | [x] Multiple selectors should each be on a single line
   19 | ERROR | [x] Multiple selectors should each be on a single line
   19 | ERROR | [x] Multiple selectors should each be on a single line
   19 | ERROR | [x] Multiple selectors should each be on a single line
   19 | ERROR | [x] Multiple selectors should each be on a single line
   19 | ERROR | [x] Multiple selectors should each be on a single line
   19 | ERROR | [x] Multiple selectors should each be on a single line
   20 | ERROR | [x] Multiple selectors should each be on a single line
   20 | ERROR | [x] Multiple selectors should each be on a single line
   20 | ERROR | [x] Multiple selectors should each be on a single line
   30 | ERROR | [x] Multiple selectors should each be on a single line
   30 | ERROR | [x] Multiple selectors should each be on a single line
   30 | ERROR | [x] Multiple selectors should each be on a single line
   30 | ERROR | [x] Multiple selectors should each be on a single line
   31 | ERROR | [x] Multiple selectors should each be on a single line
   31 | ERROR | [x] Multiple selectors should each be on a single line
   31 | ERROR | [x] Multiple selectors should each be on a single line
   31 | ERROR | [x] Multiple selectors should each be on a single line
   31 | ERROR | [x] Multiple selectors should each be on a single line
   32 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
   36 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
   38 | ERROR | [x] Multiple selectors should each be on a single line
   39 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
   40 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
   40 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
   41 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
   41 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
   42 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
   42 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
   43 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
   43 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
   44 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
   44 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
   45 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
   45 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
   48 | ERROR | [x] Multiple selectors should each be on a single line
   49 | ERROR | [x] Multiple selectors should each be on a single line
   50 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
   51 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
   74 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
   75 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
   79 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
   80 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
   81 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
   88 | ERROR | [x] Multiple selectors should each be on a single line
   89 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
   90 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
   94 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
   98 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
   98 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
   99 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
   99 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  100 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  100 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  103 | ERROR | [x] Multiple selectors should each be on a single line
  104 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  109 | ERROR | [x] CSS colours must be defined in lowercase; expected #acacac but found #ACACAC
  144 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  145 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  154 | ERROR | [x] Multiple selectors should each be on a single line
  154 | ERROR | [x] Multiple selectors should each be on a single line
  159 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  160 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  162 | ERROR | [x] Multiple selectors should each be on a single line
  165 | ERROR | [x] Multiple selectors should each be on a single line
  175 | ERROR | [x] CSS colours must be defined in lowercase; expected #eee but found #EEE
  184 | ERROR | [x] CSS colours must be defined in lowercase; expected #2e70b1 but found #2E70B1
  210 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
  283 | ERROR | [x] CSS colours must be defined in lowercase; expected #eee but found #EEE
  286 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
  379 | ERROR | [x] Opening brace should be the last content on the line
  379 | ERROR | [ ] Style definitions must end with a semicolon
  379 | ERROR | [x] Closing brace of class definition must be on new line
  385 | ERROR | [x] Opening brace should be the last content on the line
  385 | ERROR | [ ] Style definitions must end with a semicolon
  385 | ERROR | [x] Closing brace of class definition must be on new line
  410 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
  414 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
  417 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
  418 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
  419 | ERROR | [x] CSS colours must be defined in lowercase; expected #c00 but found #C00
  423 | ERROR | [x] CSS colours must be defined in lowercase; expected #ececee but found #ECECEE
  431 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
  432 | ERROR | [x] CSS colours must be defined in lowercase; expected #ececee but found #ECECEE
  436 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
  516 | ERROR | [x] CSS colours must be defined in lowercase; expected #f9f9f9 but found #F9F9F9
  519 | ERROR | [x] CSS colours must be defined in lowercase; expected #eee but found #EEE
  520 | ERROR | [x] CSS colours must be defined in lowercase; expected #eee but found #EEE
  546 | ERROR | [x] CSS colours must be defined in lowercase; expected #ccc but found #CCC
  547 | ERROR | [x] CSS colours must be defined in lowercase; expected #ccc but found #CCC
  548 | ERROR | [x] CSS colours must be defined in lowercase; expected #ccc but found #CCC
  554 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
  555 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  555 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  575 | ERROR | [x] CSS colours must be defined in lowercase; expected #ccc but found #CCC
  576 | ERROR | [x] CSS colours must be defined in lowercase; expected #ccc but found #CCC
  577 | ERROR | [x] CSS colours must be defined in lowercase; expected #ccc but found #CCC
  602 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  603 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  619 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  624 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  625 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  626 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  627 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  628 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  630 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  631 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  635 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  636 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  637 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  642 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  643 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  647 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  668 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  672 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  693 | ERROR | [x] CSS colours must be defined in lowercase; expected #eee but found #EEE
  704 | ERROR | [x] CSS colours must be defined in lowercase; expected #eee but found #EEE
  724 | ERROR | [x] CSS colours must be defined in lowercase; expected #eee but found #EEE
  734 | ERROR | [x] CSS colours must be defined in lowercase; expected #eee but found #EEE
  736 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  779 | ERROR | [x] CSS colours must be defined in lowercase; expected #dfdddd but found #DFDDDD
  817 | ERROR | [x] Multiple selectors should each be on a single line
  818 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
  880 | ERROR | [x] CSS colours must be defined in lowercase; expected #cf5240 but found #CF5240
  883 | ERROR | [x] Multiple selectors should each be on a single line
  893 | ERROR | [x] Multiple selectors should each be on a single line
  893 | ERROR | [x] Multiple selectors should each be on a single line
  949 | ERROR | [x] Multiple selectors should each be on a single line
  972 | ERROR | [x] Multiple selectors should each be on a single line
  981 | ERROR | [x] Multiple selectors should each be on a single line
  998 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 1009 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 1021 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 1025 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 1025 | ERROR | [ ] Class definition is empty
 1035 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 1075 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 1093 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 1097 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 1105 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 1112 | ERROR | [ ] Class definition is empty
 1130 | ERROR | [ ] Class definition is empty
 1175 | ERROR | [x] Multiple selectors should each be on a single line
 1181 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 1200 | ERROR | [x] Multiple selectors should each be on a single line
 1200 | ERROR | [x] Multiple selectors should each be on a single line
 1211 | ERROR | [x] CSS colours must be defined in lowercase; expected #c9c9c9 but found #C9C9C9
 1212 | ERROR | [x] CSS colours must be defined in lowercase; expected #c9c9c9 but found #C9C9C9
 1219 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
 1220 | ERROR | [x] CSS colours must be defined in lowercase; expected #ececee but found #ECECEE
 1262 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 1266 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 1267 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 1268 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 1272 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 1286 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 1290 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 1294 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 1295 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 1296 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 1297 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 1298 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 1315 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
 1347 | ERROR | [x] CSS colours must be defined in lowercase; expected #eee but found #EEE
 1364 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 1380 | ERROR | [x] CSS colours must be defined in lowercase; expected #dfdddd but found #DFDDDD
 1426 | ERROR | [x] Opening brace should be the last content on the line
 1426 | ERROR | [ ] Style definitions must end with a semicolon
 1426 | ERROR | [x] CSS colours must be defined in lowercase; expected #d8d8d8 but found #D8D8D8
 1426 | ERROR | [x] Closing brace of class definition must be on new line
 1427 | ERROR | [x] Opening brace should be the last content on the line
 1427 | ERROR | [ ] Style definitions must end with a semicolon
 1427 | ERROR | [x] CSS colours must be defined in lowercase; expected #fff but found #FFF
 1427 | ERROR | [x] Closing brace of class definition must be on new line
 1452 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 1452 | ERROR | [x] CSS colours must be defined in lowercase; expected #b81007 but found #B81007
 1454 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 1467 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 1494 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 1499 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 1501 | ERROR | [x] CSS colours must be defined in lowercase; expected #b81007 but found #B81007
 1509 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
 1524 | ERROR | [x] CSS colours must be defined in lowercase; expected #b81007 but found #B81007
 1536 | ERROR | [x] CSS colours must be defined in lowercase; expected #b81007 but found #B81007
 1579 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 225 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/themes/contrib/business/css/orange.css
------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------
  7 | ERROR | [x] Multiple selectors should each be on a single line
  7 | ERROR | [x] Multiple selectors should each be on a single line
 37 | ERROR | [x] Opening brace should be the last content on the line
 37 | ERROR | [ ] Style definitions must end with a semicolon
 37 | ERROR | [x] Closing brace of class definition must be on new line
------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/themes/contrib/business/css/green.css
-----------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------
  7 | ERROR | [x] Multiple selectors should each be on a single line
  7 | ERROR | [x] Multiple selectors should each be on a single line
 15 | ERROR | [x] CSS colours must be defined in lowercase; expected #2c9d3a but found #2C9D3A
 18 | ERROR | [x] CSS colours must be defined in lowercase; expected #2c9d3a but found #2C9D3A
 37 | ERROR | [x] Opening brace should be the last content on the line
 37 | ERROR | [ ] Style definitions must end with a semicolon
 37 | ERROR | [x] Closing brace of class definition must be on new line
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/themes/contrib/business/css/yellow.css
------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------
  7 | ERROR | [x] Multiple selectors should each be on a single line
  7 | ERROR | [x] Multiple selectors should each be on a single line
 37 | ERROR | [x] Opening brace should be the last content on the line
 37 | ERROR | [ ] Style definitions must end with a semicolon
 37 | ERROR | [x] Closing brace of class definition must be on new line
------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/themes/contrib/business/css/flexslider.css
-------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------
 90 | ERROR | [x] Expected 1 space before opening brace of class definition; 2 found
-------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/themes/contrib/business/css/brown.css
------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------
  7 | ERROR | [x] Multiple selectors should each be on a single line
  7 | ERROR | [x] Multiple selectors should each be on a single line
 37 | ERROR | [x] Opening brace should be the last content on the line
 37 | ERROR | [ ] Style definitions must end with a semicolon
 37 | ERROR | [x] Closing brace of class definition must be on new line
------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/themes/contrib/business/css/red.css
-----------------------------------------------------------------------------------------------
FOUND 15 ERRORS AFFECTING 11 LINES
-----------------------------------------------------------------------------------------------
  2 | ERROR | [x] CSS colours must be defined in lowercase; expected #b81007 but found #B81007
  7 | ERROR | [x] Multiple selectors should each be on a single line
  7 | ERROR | [x] Multiple selectors should each be on a single line
 14 | ERROR | [x] CSS colours must be defined in lowercase; expected #b81007 but found #B81007
 15 | ERROR | [x] CSS colours must be defined in lowercase; expected #9d4d2c but found #9D4D2C
 18 | ERROR | [x] CSS colours must be defined in lowercase; expected #b81007 but found #B81007
 23 | ERROR | [x] CSS colours must be defined in lowercase; expected #b81007 but found #B81007
 26 | ERROR | [x] CSS colours must be defined in lowercase; expected #b81007 but found #B81007
 31 | ERROR | [x] CSS colours must be defined in lowercase; expected #b81007 but found #B81007
 34 | ERROR | [x] Opening brace should be the last content on the line
 34 | ERROR | [ ] Style definitions must end with a semicolon
 34 | ERROR | [x] CSS colours must be defined in lowercase; expected #b81007 but found #B81007
 34 | ERROR | [x] Closing brace of class definition must be on new line
 36 | ERROR | [x] CSS colours must be defined in lowercase; expected #b81007 but found #B81007
 39 | ERROR | [x] CSS colours must be defined in lowercase; expected #b81007 but found #B81007
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/themes/contrib/business/css/blue.css
------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------
  7 | ERROR | [x] Multiple selectors should each be on a single line
  7 | ERROR | [x] Multiple selectors should each be on a single line
 37 | ERROR | [x] Opening brace should be the last content on the line
 37 | ERROR | [ ] Style definitions must end with a semicolon
 37 | ERROR | [x] Closing brace of class definition must be on new line
------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/themes/contrib/business/includes/bootstrap/css/bootstrap.css
-------------------------------------------------------------------------------------------------
FOUND 62 ERRORS AFFECTING 60 LINES
-------------------------------------------------------------------------------------------------
   46 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
   83 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 7
  190 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
  191 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
  253 | ERROR | [x] Expected 1 space before opening brace of class definition; 2 found
  293 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
  294 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
  367 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 1651 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
 1652 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 1660 | ERROR | [x] Blank lines are not allowed in class definitions
 1721 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 1723 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 1730 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 1852 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 1858 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 1875 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 1881 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 1898 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 1904 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 2003 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
 2004 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
 2005 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 7
 2006 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 2026 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 2037 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 2299 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 2363 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 2383 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 3241 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 3295 | ERROR | [ ] Style definitions must end with a semicolon
 3517 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 4106 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 4106 | ERROR | [x] CSS colours must be defined in lowercase; expected #b81007 but found #B81007
 4123 | ERROR | [x] Expected 1 space after colon in style definition; 0 found
 4123 | ERROR | [x] CSS colours must be defined in lowercase; expected #b81007 but found #B81007
 4297 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 4338 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
 4969 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 5128 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 5140 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 5142 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 5155 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
 5156 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
 5157 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 7
 5158 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 5325 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 5548 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 5618 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
 5619 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 5621 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 5
 5622 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 7
 5623 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 5628 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 6
 5629 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 5648 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 5742 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 12
 5875 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 6011 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 10
 6080 | ERROR | [ ] Style definitions must end with a semicolon
 6091 | ERROR | [ ] Style definitions must end with a semicolon
 6807 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 59 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/themes/contrib/business/includes/bootstrap/js/bootstrap.min.js
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
 1 | WARNING | File appears to be minified and cannot be processed
------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/themes/contrib/business/includes/bootstrap/js/bootstrap.js
----------------------------------------------------------------------------------------------------------------
FOUND 229 ERRORS AFFECTING 208 LINES
----------------------------------------------------------------------------------------------------------------
   28 | ERROR | [x] Expected 1 space after "+"; 0 found
   52 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
   53 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
   54 | ERROR | [x] Inline control structures are not allowed
   85 | ERROR | [x] Expected 1 space after "+"; 0 found
  106 | ERROR | [x] Inline control structures are not allowed
  114 | ERROR | [x] Inline control structures are not allowed
  128 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
  140 | ERROR | [x] Inline control structures are not allowed
  141 | ERROR | [x] Inline control structures are not allowed
  146 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
  155 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
  184 | ERROR | [x] Expected 1 space after "+"; 0 found
  206 | ERROR | [x] Inline control structures are not allowed
  225 | ERROR | [x] Inline control structures are not allowed
  230 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
  243 | ERROR | [x] Inline control structures are not allowed
  245 | ERROR | [x] Inline control structures are not allowed
  246 | ERROR | [x] Inline control structures are not allowed
  251 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
  260 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
  267 | ERROR | [x] Inline control structures are not allowed
  294 | ERROR | [x] Expected 1 space after "+"; 0 found
  307 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
  317 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
  320 | ERROR | [x] Expected 1 space after "="; 2 found
  321 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  343 | ERROR | [x] Inline control structures are not allowed
  345 | ERROR | [x] Inline control structures are not allowed
  346 | ERROR | [x] Inline control structures are not allowed
  352 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
  356 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
  365 | ERROR | [x] Inline control structures are not allowed
  370 | ERROR | [x] Inline control structures are not allowed
  383 | ERROR | [x] Inline control structures are not allowed
  387 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
  393 | ERROR | [x] Inline control structures are not allowed
  405 | ERROR | [x] Inline control structures are not allowed
  414 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  420 | ERROR | [x] Inline control structures are not allowed
  423 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  431 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
  445 | ERROR | [x] Inline control structures are not allowed
  446 | ERROR | [x] Inline control structures are not allowed
  447 | ERROR | [x] Inline control structures are not allowed
  448 | ERROR | [x] Inline control structures are not allowed
  453 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
  462 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
  468 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 24 spaces but found 3 spaces
  469 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 22 spaces but found 1 space
  470 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 22 spaces but found 1 space
  471 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 19 spaces but found 1 space
  472 | ERROR | [x] Inline control structures are not allowed
  472 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  512 | ERROR | [x] Expected 1 space after "+"; 0 found
  520 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
  522 | ERROR | [x] Inline control structures are not allowed
  523 | ERROR | [x] Inline control structures are not allowed
  527 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
  536 | ERROR | [x] Inline control structures are not allowed
  540 | ERROR | [x] Inline control structures are not allowed
  546 | ERROR | [x] Inline control structures are not allowed
  548 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
  569 | ERROR | [x] Inline control structures are not allowed
  580 | ERROR | [x] Inline control structures are not allowed
  584 | ERROR | [x] Inline control structures are not allowed
  607 | ERROR | [x] Inline control structures are not allowed
  618 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
  631 | ERROR | [x] Inline control structures are not allowed
  632 | ERROR | [x] Inline control structures are not allowed
  637 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
  646 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
  652 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 3 spaces
  653 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 2 spaces
  663 | ERROR | [x] Inline control structures are not allowed
  692 | ERROR | [x] Expected 1 space after "+"; 0 found
  706 | ERROR | [x] Inline control structures are not allowed
  721 | ERROR | [x] Inline control structures are not allowed
  730 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  734 | ERROR | [x] Inline control structures are not allowed
  741 | ERROR | [x] Inline control structures are not allowed
  747 | ERROR | [x] Inline control structures are not allowed
  753 | ERROR | [x] Inline control structures are not allowed
  757 | ERROR | [x] Inline control structures are not allowed
  758 | ERROR | [x] Inline control structures are not allowed
  759 | ERROR | [x] Inline control structures are not allowed
  759 | ERROR | [x] Expected 1 space before "="; 0 found
  759 | ERROR | [x] Expected 1 space after "="; 0 found
  768 | ERROR | [x] Inline control structures are not allowed
  770 | ERROR | [x] Inline control structures are not allowed
  787 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
  799 | ERROR | [x] Inline control structures are not allowed
  800 | ERROR | [x] Inline control structures are not allowed
  805 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
  814 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
  847 | ERROR | [x] Expected 1 space after "+"; 0 found
  856 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
  858 | ERROR | [x] Inline control structures are not allowed
  862 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
  863 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
  864 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
  877 | ERROR | [x] Inline control structures are not allowed
  879 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
  900 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  917 | ERROR | [x] Inline control structures are not allowed
  923 | ERROR | [x] Inline control structures are not allowed
  925 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
  933 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
  974 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
  988 | ERROR | [x] Inline control structures are not allowed
  994 | ERROR | [x] Inline control structures are not allowed
  998 | ERROR | [x] Inline control structures are not allowed
 1009 | ERROR | [x] Expected 1 space before "?"; 0 found
 1019 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 1032 | ERROR | [x] Inline control structures are not allowed
 1033 | ERROR | [x] Inline control structures are not allowed
 1034 | ERROR | [x] Inline control structures are not allowed
 1039 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 1048 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 1057 | ERROR | [x] Expected 1 space before ":"; 0 found
 1095 | ERROR | [x] Expected 1 space after "+"; 0 found
 1106 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 1112 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 1114 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 1119 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 1120 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 1124 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 1140 | ERROR | [x] Expected 1 space before "+"; 2 found
 1172 | ERROR | [x] Inline control structures are not allowed
 1186 | ERROR | [x] Inline control structures are not allowed
 1189 | ERROR | [x] Inline control structures are not allowed
 1201 | ERROR | [x] Inline control structures are not allowed
 1204 | ERROR | [x] Inline control structures are not allowed
 1209 | ERROR | [x] Expected 1 space before "+"; 0 found
 1214 | ERROR | [x] Inline control structures are not allowed
 1220 | ERROR | [x] Inline control structures are not allowed
 1228 | ERROR | [x] Inline control structures are not allowed
 1246 | ERROR | [x] Expected 1 space before ":"; 2 found
 1250 | ERROR | [x] Expected 1 space before "+"; 3 found
 1250 | ERROR | [x] Expected 1 space before "+"; 2 found
 1250 | ERROR | [x] Expected 1 space before "?"; 2 found
 1250 | ERROR | [x] Expected 1 space before ":"; 4 found
 1251 | ERROR | [x] Expected 1 space before "-"; 3 found
 1251 | ERROR | [x] Expected 1 space before "-"; 3 found
 1251 | ERROR | [x] Expected 1 space before "?"; 25 found
 1252 | ERROR | [x] Expected 1 space before "?"; 30 found
 1252 | ERROR | [x] Expected 1 space before ":"; 3 found
 1253 | ERROR | [x] Expected 1 space before "-"; 2 found
 1253 | ERROR | [x] Expected 1 space before "?"; 31 found
 1253 | ERROR | [x] Expected 1 space before ":"; 2 found
 1268 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 1279 | ERROR | [x] Inline control structures are not allowed
 1280 | ERROR | [x] Inline control structures are not allowed
 1282 | ERROR | [x] Expected 1 space before "+"; 2 found
 1294 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 1316 | ERROR | [x] Inline control structures are not allowed
 1319 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 1337 | ERROR | [x] Inline control structures are not allowed
 1342 | ERROR | [x] Inline control structures are not allowed
 1377 | ERROR | [x] Expected 1 space before ":"; 0 found
 1377 | ERROR | [x] Expected 1 space before ":"; 0 found
 1378 | ERROR | [x] Expected 1 space before "?"; 4 found
 1378 | ERROR | [x] Expected 1 space before ":"; 0 found
 1378 | ERROR | [x] Expected 1 space before ":"; 0 found
 1379 | ERROR | [x] Expected 1 space before "?"; 3 found
 1379 | ERROR | [x] Expected 1 space before ":"; 0 found
 1379 | ERROR | [x] Expected 1 space before ":"; 0 found
 1389 | ERROR | [x] Expected 1 space after ":"; 2 found
 1405 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 1406 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 1411 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
 1415 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 1430 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 1443 | ERROR | [x] Inline control structures are not allowed
 1444 | ERROR | [x] Inline control structures are not allowed
 1449 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 1481 | ERROR | [x] Expected 1 space after "+"; 0 found
 1490 | ERROR | [x] Inline control structures are not allowed
 1498 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 1523 | ERROR | [x] Inline control structures are not allowed
 1545 | ERROR | [x] Inline control structures are not allowed
 1548 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 1561 | ERROR | [x] Inline control structures are not allowed
 1562 | ERROR | [x] Inline control structures are not allowed
 1567 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 1599 | ERROR | [x] Expected 1 space after "+"; 0 found
 1606 | ERROR | [x] Equals sign not aligned correctly; expected 1 space but found 2 spaces
 1613 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
 1615 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 8 spaces
 1616 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 8 spaces
 1617 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 3 spaces
 1617 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 1643 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 1696 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 1709 | ERROR | [x] Inline control structures are not allowed
 1710 | ERROR | [x] Inline control structures are not allowed
 1715 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 1724 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 1758 | ERROR | [x] Expected 1 space after "+"; 0 found
 1777 | ERROR | [x] Inline control structures are not allowed
 1786 | ERROR | [x] Inline control structures are not allowed
 1835 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 1847 | ERROR | [x] Inline control structures are not allowed
 1848 | ERROR | [x] Inline control structures are not allowed
 1853 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 1862 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 1894 | ERROR | [x] Expected 1 space after "+"; 0 found
 1907 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 1923 | ERROR | [x] Inline control structures are not allowed
 1932 | ERROR | [x] Inline control structures are not allowed
 1933 | ERROR | [x] Inline control structures are not allowed
 1934 | ERROR | [x] Inline control structures are not allowed
 1936 | ERROR | [x] Expected 1 space before "!="; 3 found
 1936 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 1936 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 1937 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 1938 | ERROR | [x] Expected 1 space before "!="; 4 found
 1938 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 1938 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
 1940 | ERROR | [x] Inline control structures are not allowed
 1941 | ERROR | [x] Inline control structures are not allowed
 1944 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
 1952 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 1965 | ERROR | [x] Inline control structures are not allowed
 1966 | ERROR | [x] Inline control structures are not allowed
 1971 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 1980 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
 1992 | ERROR | [x] Inline control structures are not allowed
 1993 | ERROR | [x] Inline control structures are not allowed
----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 229 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------


FILE: /home/gai/drupal-git/drupal/themes/contrib/business/js/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: /home/gai/drupal-git/drupal/themes/contrib/business/js/custom.js
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
 2 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 8 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

📌 Task
Status

Needs work

Version

9.1

Component

Code

Created by

🇮🇳India Akshay kashyap

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 @Akshay kashyap
  • 🇮🇳India chaitanyadessai Goa

    Adding patch, please review.

  • Status changed to Needs review over 1 year ago
  • 🇮🇳India Akshay kashyap

    @chaitanyadessai

    Thanks for the Work.

    Verified and tested patch #2 on Business theme 9.1. x-dev Applied cleanly, but it gives errors.

    git apply -v 3353194-2-Drupal_Coding_Standard_As_Per_phpcs.patch
    3353194-2-Drupal_Coding_Standard_As_Per_phpcs.patch:1646: trailing whitespace.
          if (!data) $this.data('bs.button', (data = new Button(this, options))) 
    Checking patch css/blue.css...
    Checking patch css/brown.css...
    Checking patch css/flexslider.css...
    Checking patch css/green.css...
    Checking patch css/orange.css...
    Checking patch css/red.css...
    Checking patch css/style.css...
    Checking patch css/yellow.css...
    Checking patch includes/bootstrap/css/bootstrap.css...
    Checking patch includes/bootstrap/js/bootstrap.js...
    Checking patch js/custom.js...
    Applied patch css/blue.css cleanly.
    Applied patch css/brown.css cleanly.
    Applied patch css/flexslider.css cleanly.
    Applied patch css/green.css cleanly.
    Applied patch css/orange.css cleanly.
    Applied patch css/red.css cleanly.
    Applied patch css/style.css cleanly.
    Applied patch css/yellow.css cleanly.
    Applied patch includes/bootstrap/css/bootstrap.css cleanly.
    Applied patch includes/bootstrap/js/bootstrap.js cleanly.
    Applied patch js/custom.js cleanly.
    warning: 1 line adds whitespace errors.
    

    Please check.

  • 🇮🇳India Akshay kashyap

    Create a patch Please Review it. I have attached a interdiff for the same.

  • Status changed to Needs work over 1 year ago
  • 🇵🇭Philippines paraderojether

    Hi Akshay kashyap

    I reviewed patch #5, and there are still remaining errors shown below:

    FILE: /Users/studenttrainees/New/drupalorgsite/docroot/themes/contrib/business/includes/bootstrap/css/bootstrap.css
    -------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 3 LINES
    -------------------------------------------------------------------------------------------------------------------
    3294 | ERROR | Style definitions must end with a semicolon
    6079 | ERROR | Style definitions must end with a semicolon
    6090 | ERROR | Style definitions must end with a semicolon
    -------------------------------------------------------------------------------------------------------------------

    Time: 1.71 secs; Memory: 50.01MB

    Please check.
    Thank You.

  • 🇮🇳India Akshay kashyap

    Added patch again to fix the remaining issue please check.

  • Status changed to Needs review over 1 year ago
  • Status changed to Needs work over 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    The issue summary should always describe what the issue is trying to fix and, in the case, of coding standards issues, show which command and arguments have been used, and which report that command shown.

  • Status changed to Needs review over 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • 🇮🇳India keshavv India

    Tested the #7 patch, confirmed it will fix all issues.

  • Status changed to RTBC over 1 year ago
  • Status changed to Needs review over 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    The Reviewed & tested by the community status can be set by somebody who didn't provide the last patch.

  • Status changed to Needs work over 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
    -      '#title' => t('Slide '.$i),
    +      '#title' = t('Slide @number Title', ['@number' => $i]);

    Using a placeholder is correct, but there is no need to add Title, which is also misspelled, since it is not at the beginning of the title.

    -    if (e) e.preventDefault()
    +    if (e) { e.preventDefault()
     
         if (!$parent.length) {
           $parent = $this.hasClass('alert') ? $this : $this.parent()
         }
    +    }

    That code is not correctly indented.

    -    if (e.isDefaultPrevented()) return
    +    if (e.isDefaultPrevented()) { return
     
         $parent.removeClass('in')
     
         function removeElement() {
           $parent.trigger('closed.bs.alert').remove()
         }
    +    }

    The changed code is the following one.

        if (e.isDefaultPrevented()) { return
     
         $parent.removeClass('in')
     
         function removeElement() {
           $parent.trigger('closed.bs.alert').remove()
         }
        }
    

    That is wrong for at least two reasons, considering the existing code is the following one.

       if (e.isDefaultPrevented()) return
     
         $parent.removeClass('in')
     
         function removeElement() {
           $parent.trigger('closed.bs.alert').remove()
         }
    
    -      if (!data) $this.data('bs.alert', (data = new Alert(this)))
    -      if (typeof option == 'string') data[option].call($this)
    -    })
    +      if (!data) { $this.data('bs.alert', (data = new Alert(this)))
    +      if (typeof option == 'string') { data[option].call($this)
    +    }
    +      }
    +      })
    
    -    if (!data.resetText) $el.data('resetText', $el[val]())
    +    if (!data.resetText) { $el.data('resetText', $el[val]())
     
         $el[val](data[state] || this.options[state])
    
    -      if ($input.prop('type') === 'radio') $parent.find('.active').removeClass('active')
    +      if ($input.prop('type') === 'radio') { $parent.find('.active').removeClass('active')
         }
    +      }
    
    -      if (!data) $this.data('bs.button', (data = new Button(this, options)))
    +      if (!data) $this.data('bs.button', (data = new Button(this, options))) 
     
           if (option == 'toggle') data.toggle()
    -      else if (option) data.setState(option)
    -    })
    +      else if (option) { data.setState(option)
    +    }
    +      })
    
    -    if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
    +    if (!$btn.hasClass('btn')) { $btn = $btn.closest('.btn')
         $btn.button('toggle')
         e.preventDefault()
    -  })
    +  }
    +    })
    
    -    if (pos > (this.$items.length - 1) || pos < 0) return
    +    if (pos > (this.$items.length - 1) || pos < 0) { return
     
    -    if (this.sliding)       return this.$element.one('slid', function () { that.to(pos) })
    -    if (activeIndex == pos) return this.pause().cycle()
    +    if (this.sliding) {       return this.$element.one('slid', function () { that.to(pos) })
    +    if (activeIndex == pos) { return this.pause().cycle()
     
         return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos]))
       }
    +    }
    +    }
    +    }
    
       Carousel.prototype.next = function () {
    -    if (this.sliding) return
    +    if (this.sliding) { return
         return this.slide('next')
       }
    +    }
    

    Those are other wrong changes. The changed code lines are not even equivalent to the existing lines.

  • Status changed to Needs review over 1 year ago
  • 🇮🇳India amit.rawat777

    please review I have resolved some issues.

  • Status changed to Needs work 10 months ago
  • Hi, In patch #17, the changes suggested in comment #16 have not been fully addressed; there are still pending changes that need to be addressed.
    Thankyou.

Production build 0.71.5 2024