Fix the issues reported by phpcs

Created on 17 November 2022, about 2 years ago
Updated 14 March 2024, 8 months ago

Hi, While reviewing the module for best practices and standards. I have found this with the help of PHPCS:

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

FILE: /var/www/html/dContri/responsive_menus/responsive_menus.services.yml
--------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------
 4 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/responsive_menus.api.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 39 ERRORS AND 3 WARNINGS AFFECTING 39 LINES
-------------------------------------------------------------------------------------------------------------------------
  18 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
  45 | ERROR   | [x] Short array syntax must be used to define arrays
  46 | ERROR   | [x] Short array syntax must be used to define arrays
  51 | ERROR   | [x] Short array syntax must be used to define arrays
  55 | ERROR   | [x] Short array syntax must be used to define arrays
  78 | ERROR   | [x] Short array syntax must be used to define arrays
  84 | ERROR   | [x] Short array syntax must be used to define arrays
  89 | ERROR   | [x] Short array syntax must be used to define arrays
 108 | ERROR   | [x] Short array syntax must be used to define arrays
 129 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 130 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 131 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 132 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 133 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 134 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
 134 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 135 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 136 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 137 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 138 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 139 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 140 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 141 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 143 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 148 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 149 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 150 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 151 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
 151 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 152 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 154 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 155 | ERROR   | [x] Parameter comment indentation must be 3 spaces, found 1 spaces
 157 | ERROR   | [x] Additional blank lines found at end of doc comment
 158 | ERROR   | [ ] Type hint "array" missing for $styles
 163 | ERROR   | [x] Short array syntax must be used to define arrays
 166 | ERROR   | [x] Short array syntax must be used to define arrays
 170 | ERROR   | [x] Short array syntax must be used to define arrays
 180 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
 183 | ERROR   | [x] Short array syntax must be used to define arrays
 185 | ERROR   | [x] Short array syntax must be used to define arrays
 185 | ERROR   | [x] Comma not allowed after last value in single-line array declaration
 186 | ERROR   | [x] Short array syntax must be used to define arrays
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 37 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/src/Form/ResponsiveMenusAdminForm.php
-----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 26 ERRORS AND 11 WARNINGS AFFECTING 17 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------
  15 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
  81 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
  81 | ERROR   | [ ] Comment indentation error, expected only 1 spaces
  82 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
  82 | ERROR   | [ ] Comment indentation error, expected only 4 spaces
  83 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
  84 | WARNING | [ ] Line exceeds 80 characters; contains 133 characters
  84 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
  85 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
  86 | WARNING | [x] There must be no blank line following an inline comment
  86 | WARNING | [ ] There must be no blank line following an inline comment
  86 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
  86 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
  95 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
  95 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
  95 | ERROR   | [x] 4 spaces found before inline comment; expected "// $jq_update_ignore =
     |         |     $form['responsive_menus_no_jquery_update']['#default_value'];" but found "//    $jq_update_ignore =
     |         |     $form['responsive_menus_no_jquery_update']['#default_value'];"
  96 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
  96 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
 138 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
 138 | ERROR   | [x] 4 spaces found before inline comment; expected "// if (!empty($_POST) && form_get_errors()) {" but found "//    if
     |         |     (!empty($_POST) && form_get_errors()) {"
 138 | ERROR   | [x] Inline comments must start with a capital letter
 139 | WARNING | [ ] Line exceeds 80 characters; contains 98 characters
 139 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
 139 | ERROR   | [ ] Comment indentation error, expected only 4 spaces
 140 | WARNING | [x] There must be no blank line following an inline comment
 140 | WARNING | [ ] There must be no blank line following an inline comment
 140 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
 140 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 150 | ERROR   | [x] Data types in @param tags need to be fully namespaced
 168 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
 168 | ERROR   | [x] 2 spaces found before inline comment; expected "// // Clear libraries cache if Sidr style in use to allow theme to be
     |         |     updated." but found "//  // Clear libraries cache if Sidr style in use to allow theme to be updated."
 169 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
 170 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
 170 | ERROR   | [ ] Comment indentation error, expected only 2 spaces
 171 | WARNING | [x] There must be no blank line following an inline comment
 171 | WARNING | [ ] There must be no blank line following an inline comment
 171 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 0
-----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 25 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/src/ResponsiveMenusPluginBase.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
 12 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/src/Plugin/ResponsiveMenus/ResponsiveMenusSimple.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 3 WARNINGS AFFECTING 10 LINES
--------------------------------------------------------------------------------------------------------------------------
 123 | ERROR   | [ ] @return doc comment specified, but function has no return statement
 127 | ERROR   | [x] Opening brace should be on the same line as the declaration
 128 | WARNING | [x] 'TODO: Implement getConfiguration() method.' should match the format '@todo Fix problem X here.'
 138 | ERROR   | [x] Opening brace should be on the same line as the declaration
 139 | WARNING | [x] 'TODO: Implement setConfiguration() method.' should match the format '@todo Fix problem X here.'
 145 | ERROR   | [ ] @return doc comment specified, but function has no return statement
 149 | ERROR   | [x] Opening brace should be on the same line as the declaration
 150 | WARNING | [x] 'TODO: Implement defaultConfiguration() method.' should match the format '@todo Fix problem X here.'
 151 | ERROR   | [x] Expected 1 blank line after function; 0 found
 152 | ERROR   | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/src/Plugin/ResponsiveMenus/Sidr.php
-----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AND 7 WARNINGS AFFECTING 14 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------
 108 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
 109 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
 129 | WARNING | [ ] Line exceeds 80 characters; contains 161 characters
 129 | ERROR   | [x] Line indented incorrectly; expected at least 4 spaces, found 0
 129 | ERROR   | [x] 6 spaces found before inline comment; expected "// '#description' => t('See !documentation for examples.',
     |         |     ['!documentation' => l(t('Sidr documentation'), 'http://www.berriart.com/sidr/#documentation')])," but found "//     
     |         |     '#description' => t('See !documentation for examples.', ['!documentation' => l(t('Sidr documentation'),
     |         |     'http://www.berriart.com/sidr/#documentation')]),"
 136 | WARNING | [ ] Line exceeds 80 characters; contains 161 characters
 136 | ERROR   | [x] Line indented incorrectly; expected at least 4 spaces, found 0
 136 | ERROR   | [x] 6 spaces found before inline comment; expected "// '#description' => t('See !documentation for examples.',
     |         |     ['!documentation' => l(t('Sidr documentation'), 'http://www.berriart.com/sidr/#documentation')])," but found "//     
     |         |     '#description' => t('See !documentation for examples.', ['!documentation' => l(t('Sidr documentation'),
     |         |     'http://www.berriart.com/sidr/#documentation')]),"
 179 | ERROR   | [ ] @return doc comment specified, but function has no return statement
 183 | ERROR   | [x] Opening brace should be on the same line as the declaration
 184 | WARNING | [x] 'TODO: Implement getConfiguration() method.' should match the format '@todo Fix problem X here.'
 194 | ERROR   | [x] Opening brace should be on the same line as the declaration
 195 | WARNING | [x] 'TODO: Implement setConfiguration() method.' should match the format '@todo Fix problem X here.'
 201 | ERROR   | [ ] @return doc comment specified, but function has no return statement
 205 | ERROR   | [x] Opening brace should be on the same line as the declaration
 206 | WARNING | [x] 'TODO: Implement defaultConfiguration() method.' should match the format '@todo Fix problem X here.'
 207 | ERROR   | [x] Expected 1 blank line after function; 0 found
 208 | ERROR   | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/src/Plugin/ResponsiveMenus/MultiLevelPushMenu.php
-----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 18 ERRORS AND 7 WARNINGS AFFECTING 22 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------
 118 | WARNING | [ ] #description values usually have to run through t() for translation
 151 | WARNING | [ ] #description values usually have to run through t() for translation
 162 | WARNING | [ ] #description values usually have to run through t() for translation
 292 | ERROR   | [ ] @return doc comment specified, but function has no return statement
 296 | ERROR   | [x] Opening brace should be on the same line as the declaration
 297 | WARNING | [x] 'TODO: Implement getConfiguration() method.' should match the format '@todo Fix problem X here.'
 307 | ERROR   | [x] Opening brace should be on the same line as the declaration
 308 | WARNING | [x] 'TODO: Implement setConfiguration() method.' should match the format '@todo Fix problem X here.'
 314 | ERROR   | [ ] @return doc comment specified, but function has no return statement
 318 | ERROR   | [x] Opening brace should be on the same line as the declaration
 319 | WARNING | [x] 'TODO: Implement defaultConfiguration() method.' should match the format '@todo Fix problem X here.'
 320 | ERROR   | [x] Expected 1 blank line after function; 0 found
 321 | ERROR   | [x] The closing brace for the class must have an empty line before it
 325 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
 327 | ERROR   | [x] No space found before comment text; expected "// function _responsive_menus_mlpm_get_css() {" but found "//function
     |         |     _responsive_menus_mlpm_get_css() {"
 327 | ERROR   | [x] Inline comments must start with a capital letter
 329 | ERROR   | [x] No space found before comment text; expected "// //  $style = variable_get('responsive_menus_mlpm_decoration', [" but
     |         |     found "////  $style = variable_get('responsive_menus_mlpm_decoration', ["
 330 | ERROR   | [x] No space found before comment text; expected "// //    'font_awesome' => 1," but found "////    'font_awesome' => 1,"
 331 | ERROR   | [x] No space found before comment text; expected "// //    'google_fonts' => 1," but found "////    'google_fonts' => 1,"
 332 | ERROR   | [x] No space found before comment text; expected "// //  ]);" but found "////  ]);"
 335 | ERROR   | [ ] Comment indentation error, expected only 2 spaces
 338 | ERROR   | [ ] Comment indentation error, expected only 2 spaces
 342 | WARNING | [ ] There must be no blank line following an inline comment
 342 | ERROR   | [x] No space found before comment text; expected "// }" but found "//}"
 342 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
-----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/src/Plugin/ResponsiveMenus/CodropsGoogleNexus.php
-----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 11 ERRORS AND 6 WARNINGS AFFECTING 13 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------
  51 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  69 | WARNING | [ ] Line exceeds 80 characters; contains 189 characters
  69 | ERROR   | [x] Line indented incorrectly; expected at least 4 spaces, found 0
  69 | ERROR   | [x] 6 spaces found before inline comment; expected "// '#description' => t('Enter 1 per-line or comma-separated.  See
     |         |     !documentation for examples.', ['!documentation' => l(t('Unicode Character Table'), 'http://unicode-table.com/en/')]),"
     |         |     but found "//      '#description' => t('Enter 1 per-line or comma-separated.  See !documentation for examples.',
     |         |     ['!documentation' => l(t('Unicode Character Table'), 'http://unicode-table.com/en/')]),"
  76 | WARNING | [ ] Line exceeds 80 characters; contains 252 characters
  76 | ERROR   | [x] Line indented incorrectly; expected at least 4 spaces, found 0
  76 | ERROR   | [x] 6 spaces found before inline comment; expected "// '#description' => t('This icon will be used for any number of menu
     |         |     items beyond the amount of icons you specified above.  See !documentation for examples.', ['!documentation' =>
     |         |     l(t('Unicode Character Table'), 'http://unicode-table.com/en/')])," but found "//      '#description' => t('This icon
     |         |     will be used for any number of menu items beyond the amount of icons you specified above.  See !documentation for
     |         |     examples.', ['!documentation' => l(t('Unicode Character Table'), 'http://unicode-table.com/en/')]),"
 100 | ERROR   | [ ] @return doc comment specified, but function has no return statement
 104 | ERROR   | [x] Opening brace should be on the same line as the declaration
 105 | WARNING | [x] 'TODO: Implement getConfiguration() method.' should match the format '@todo Fix problem X here.'
 115 | ERROR   | [x] Opening brace should be on the same line as the declaration
 116 | WARNING | [x] 'TODO: Implement setConfiguration() method.' should match the format '@todo Fix problem X here.'
 122 | ERROR   | [ ] @return doc comment specified, but function has no return statement
 126 | ERROR   | [x] Opening brace should be on the same line as the declaration
 127 | WARNING | [x] 'TODO: Implement defaultConfiguration() method.' should match the format '@todo Fix problem X here.'
 128 | ERROR   | [x] Expected 1 blank line after function; 0 found
 129 | ERROR   | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 12 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/src/Plugin/ResponsiveMenus/CodropsResponsiveMulti.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 3 WARNINGS AFFECTING 10 LINES
--------------------------------------------------------------------------------------------------------------------------
 108 | ERROR   | [ ] @return doc comment specified, but function has no return statement
 112 | ERROR   | [x] Opening brace should be on the same line as the declaration
 113 | WARNING | [x] 'TODO: Implement getConfiguration() method.' should match the format '@todo Fix problem X here.'
 123 | ERROR   | [x] Opening brace should be on the same line as the declaration
 124 | WARNING | [x] 'TODO: Implement setConfiguration() method.' should match the format '@todo Fix problem X here.'
 130 | ERROR   | [ ] @return doc comment specified, but function has no return statement
 134 | ERROR   | [x] Opening brace should be on the same line as the declaration
 135 | WARNING | [x] 'TODO: Implement defaultConfiguration() method.' should match the format '@todo Fix problem X here.'
 136 | ERROR   | [x] Expected 1 blank line after function; 0 found
 137 | ERROR   | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/src/Plugin/ResponsiveMenus/MeanMenu.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 7 ERRORS AND 3 WARNINGS AFFECTING 10 LINES
--------------------------------------------------------------------------------------------------------------------------
 182 | ERROR   | [ ] @return doc comment specified, but function has no return statement
 186 | ERROR   | [x] Opening brace should be on the same line as the declaration
 187 | WARNING | [x] 'TODO: Implement getConfiguration() method.' should match the format '@todo Fix problem X here.'
 197 | ERROR   | [x] Opening brace should be on the same line as the declaration
 198 | WARNING | [x] 'TODO: Implement setConfiguration() method.' should match the format '@todo Fix problem X here.'
 204 | ERROR   | [ ] @return doc comment specified, but function has no return statement
 208 | ERROR   | [x] Opening brace should be on the same line as the declaration
 209 | WARNING | [x] 'TODO: Implement defaultConfiguration() method.' should match the format '@todo Fix problem X here.'
 210 | ERROR   | [x] Expected 1 blank line after function; 0 found
 211 | ERROR   | [x] The closing brace for the class must have an empty line before it
--------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/src/Annotation/ResponsiveMenus.php
----------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------
 10 | ERROR | [x] Doc comment long description must end with a full stop
 30 | ERROR | [ ] The @var tag must be the first tag in a member variable comment
----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/includes/context/responsive_menus_context.inc
------------------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 11 LINES
------------------------------------------------------------------------------------------
  1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line
 11 | ERROR | [x] Short array syntax must be used to define arrays
 12 | ERROR | [x] Short array syntax must be used to define arrays
 13 | ERROR | [x] Short array syntax must be used to define arrays
 28 | ERROR | [x] Short array syntax must be used to define arrays
 31 | ERROR | [x] Short array syntax must be used to define arrays
 32 | ERROR | [x] Short array syntax must be used to define arrays
 37 | ERROR | [x] Short array syntax must be used to define arrays
 42 | ERROR | [x] Short array syntax must be used to define arrays
 49 | ERROR | [x] Short array syntax must be used to define arrays
 59 | ERROR | [x] Short array syntax must be used to define arrays
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/responsive_menus.routing.yml
-------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------
 7 | ERROR | [x] Expected 1 newline at end of file; 0 found
-------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/config/install/responsive_menus.configuration.yml
----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
 4 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/responsive_menus.module
-----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 68 ERRORS AND 19 WARNINGS AFFECTING 58 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------
  30 | ERROR   | [x] No space found before comment text; expected "// function responsive_menus_libraries_info() {" but found "//function
     |         |     responsive_menus_libraries_info() {"
  30 | ERROR   | [x] Inline comments must start with a capital letter
  32 | ERROR   | [ ] Comment indentation error, expected only 2 spaces
  33 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
  36 | ERROR   | [ ] Comment indentation error, expected only 4 spaces
  42 | ERROR   | [ ] Comment indentation error, expected only 4 spaces
  43 | ERROR   | [ ] Comment indentation error, expected only 6 spaces
  47 | ERROR   | [ ] Comment indentation error, expected only 6 spaces
  51 | ERROR   | [ ] Comment indentation error, expected only 4 spaces
  52 | ERROR   | [ ] Comment indentation error, expected only 6 spaces
  55 | WARNING | [x] There must be no blank line following an inline comment
  55 | WARNING | [ ] There must be no blank line following an inline comment
  55 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
  57 | ERROR   | [x] 2 spaces found before inline comment; expected "// $libraries['sidr'] = array(" but found "//  $libraries['sidr'] =
     |         |     array("
  58 | ERROR   | [ ] Comment indentation error, expected only 2 spaces
  60 | WARNING | [ ] Line exceeds 80 characters; contains 85 characters
  62 | ERROR   | [ ] Comment indentation error, expected only 4 spaces
  68 | ERROR   | [ ] Comment indentation error, expected only 4 spaces
  69 | ERROR   | [ ] Comment indentation error, expected only 6 spaces
  72 | ERROR   | [ ] Comment indentation error, expected only 6 spaces
  76 | ERROR   | [ ] Comment indentation error, expected only 4 spaces
  77 | ERROR   | [ ] Comment indentation error, expected only 6 spaces
  83 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
  83 | ERROR   | [ ] Comment indentation error, expected only 2 spaces
  86 | ERROR   | [ ] Comment indentation error, expected only 2 spaces
  87 | WARNING | [x] There must be no blank line following an inline comment
  87 | WARNING | [ ] There must be no blank line following an inline comment
  89 | ERROR   | [x] 2 spaces found before inline comment; expected "// $libraries['GoogleNexusWebsiteMenu'] = array(" but found "// 
     |         |     $libraries['GoogleNexusWebsiteMenu'] = array("
  90 | ERROR   | [ ] Comment indentation error, expected only 2 spaces
  91 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters
  94 | ERROR   | [ ] Comment indentation error, expected only 4 spaces
 100 | ERROR   | [ ] Comment indentation error, expected only 4 spaces
 101 | ERROR   | [ ] Comment indentation error, expected only 6 spaces
 105 | ERROR   | [ ] Comment indentation error, expected only 6 spaces
 109 | ERROR   | [ ] Comment indentation error, expected only 4 spaces
 110 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters
 110 | ERROR   | [ ] Comment indentation error, expected only 6 spaces
 111 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
 114 | WARNING | [x] There must be no blank line following an inline comment
 114 | WARNING | [ ] There must be no blank line following an inline comment
 116 | ERROR   | [x] 2 spaces found before inline comment; expected "// return $libraries;" but found "//  return $libraries;"
 116 | ERROR   | [x] Inline comments must start with a capital letter
 117 | WARNING | [ ] There must be no blank line following an inline comment
 117 | ERROR   | [x] No space found before comment text; expected "// }" but found "//}"
 117 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 125 | ERROR   | [ ] Return type missing for @return tag in function comment
 125 | ERROR   | [ ] Description for the @return value is missing
 147 | WARNING | [ ] Line exceeds 80 characters; contains 125 characters
 147 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 147 | ERROR   | [x] 8 spaces found before inline comment; expected "// elseif (version_compare(variable_get('jquery_update_jquery_version',
     |         |     '1.5'), $style_info['jquery_version'], '<')) {" but found "//        elseif
     |         |     (version_compare(variable_get('jquery_update_jquery_version', '1.5'), $style_info['jquery_version'], '<')) {"
 147 | ERROR   | [x] Inline comments must start with a capital letter
 148 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 148 | ERROR   | [ ] Comment indentation error, expected only 8 spaces
 149 | WARNING | [ ] Line exceeds 80 characters; contains 100 characters
 149 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 150 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 150 | ERROR   | [ ] Comment indentation error, expected only 10 spaces
 151 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 152 | WARNING | [ ] Line exceeds 80 characters; contains 172 characters
 152 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 153 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 154 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 155 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 155 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 169 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 169 | ERROR   | [x] 8 spaces found before inline comment; expected "// if ($library = libraries_load($style_info['library'])) {" but found
     |         |     "//        if ($library = libraries_load($style_info['library'])) {"
 169 | ERROR   | [x] Inline comments must start with a capital letter
 170 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 170 | ERROR   | [ ] Comment indentation error, expected only 8 spaces
 171 | WARNING | [ ] Line exceeds 80 characters; contains 245 characters
 171 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 171 | ERROR   | [ ] Comment indentation error, expected only 10 spaces
 172 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 172 | ERROR   | [ ] Comment indentation error, expected only 12 spaces
 173 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 174 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
 174 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 175 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 176 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 177 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 178 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 0
 178 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
 224 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
 224 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 224 | ERROR   | [x] 2 spaces found before inline comment; expected "// $jq_update_ignore = variable_get('responsive_menus_no_jquery_update',
     |         |     array(1 => 0));" but found "//  $jq_update_ignore = variable_get('responsive_menus_no_jquery_update', array(1 => 0));"
 225 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
 233 | ERROR   | [x] Short array syntax must be used to define arrays
-----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 41 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/responsive_menus.permissions.yml
-----------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------
 3 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/plugins/context/responsive_menus_context_reaction_general.inc
----------------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AND 3 WARNINGS AFFECTING 14 LINES
----------------------------------------------------------------------------------------------------------
  1 | ERROR   | [x] The PHP open tag must be followed by exactly one blank line
  3 | WARNING | [x] Unused use statement
 18 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
 19 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
 20 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
 21 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 6
 22 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
 23 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
 24 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 6
 25 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
 26 | WARNING | [ ] Line exceeds 80 characters; contains 96 characters
 26 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
 27 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
 27 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
 29 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
 35 | ERROR   | [x] Visibility must be declared on method "execute"
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/responsive_menus.install
-----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------
  8 | ERROR   | [x] No space found before comment text; expected "// /**" but found "///**"
 11 | ERROR   | [x] No space found before comment text; expected "// function responsive_menus_enable() {" but found "//function
    |         |     responsive_menus_enable() {"
 14 | WARNING | [ ] There must be no blank line following an inline comment
 14 | ERROR   | [x] Expected 1 newline at end of file; 0 found
 14 | ERROR   | [x] No space found before comment text; expected "// }" but found "//}"
-----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/styles/mlpm/Readme.txt
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 4 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/styles/mlpm/css/jquery.multilevelpushmenu.css
------------------------------------------------------------------------------------------
FOUND 121 ERRORS AFFECTING 60 LINES
------------------------------------------------------------------------------------------
   2 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
   2 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
   3 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
   3 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
   4 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
   4 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
   5 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
   5 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
   6 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
   6 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
   7 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
   7 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  11 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  11 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  12 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  12 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  13 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  14 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  14 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  15 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  15 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  16 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  16 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  17 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  17 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  18 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  19 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  23 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  24 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  25 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  26 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  26 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  27 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  28 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  28 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  28 | ERROR | [ ] Style definitions must end with a semicolon
  32 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  33 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  34 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  35 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  36 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  37 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  37 | ERROR | [ ] Style definitions must end with a semicolon
  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
  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
  46 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  46 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  47 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  47 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  48 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  48 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  49 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  53 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  53 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  54 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  54 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  55 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  55 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  59 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  59 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  60 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  60 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  61 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  61 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  65 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  65 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  69 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  69 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  73 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  73 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  74 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  74 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  75 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  75 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  76 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  76 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  77 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  78 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  78 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  79 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  79 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  80 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  80 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  84 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  84 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  88 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  88 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  89 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  89 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  90 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  90 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  91 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  91 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  95 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  95 | 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
 103 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 103 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 107 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 107 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 111 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 111 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 112 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 119 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/styles/meanMenu/gpl.txt
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 165 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/styles/meanMenu/meanmenu.min.css
-----------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------
 1 | WARNING | File appears to be minified and cannot be processed
-----------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/styles/meanMenu/meanmenu.css
-----------------------------------------------------------------------------
FOUND 195 ERRORS AFFECTING 100 LINES
-----------------------------------------------------------------------------
   1 | ERROR | [x] Additional whitespace found at start of file
   4 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
   5 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
   7 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  13 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  18 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  18 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  19 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  19 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  20 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  20 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  21 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  22 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  22 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  23 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  23 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  24 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  24 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  28 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  28 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  29 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  29 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  30 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  30 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  31 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  32 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  33 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  34 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  35 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  36 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  37 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  37 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  38 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  38 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  39 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  39 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  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
  47 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  47 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  48 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  48 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  49 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  50 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  50 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  54 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  54 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  55 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  55 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  56 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  56 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  57 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  57 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  61 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  61 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  62 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  62 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  63 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  63 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  64 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  64 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  68 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  68 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  69 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  69 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  70 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  70 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  74 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  74 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  75 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  75 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  76 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  76 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  77 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  78 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  78 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  79 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  79 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  80 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  80 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  81 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  81 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  82 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  82 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  83 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  83 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  84 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  84 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  88 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  88 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  89 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  89 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  90 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  90 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  91 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  91 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  92 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  92 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  93 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  93 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  94 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  94 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
  95 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
  95 | 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
 104 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 104 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 105 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 105 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 109 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 109 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 110 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 110 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 114 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 114 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 115 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 115 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 119 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 119 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 120 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 120 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 124 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 124 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 125 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 125 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 126 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 126 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 127 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 127 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 128 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 128 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 129 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 129 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 130 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 130 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 131 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 131 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 132 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 132 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 133 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 133 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 134 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 134 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 135 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 135 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 136 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 136 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 137 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 137 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 141 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 141 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 145 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 145 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 146 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 146 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 147 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 147 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 148 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 148 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 149 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 149 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 153 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 153 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 154 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 154 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 155 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 155 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 159 | ERROR | [x] Multiple selectors should each be on a single line
 160 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 160 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 161 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 161 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 162 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 162 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
 167 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 167 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 1
-----------------------------------------------------------------------------
PHPCBF CAN FIX THE 195 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------


FILE: /var/www/html/dContri/responsive_menus/styles/meanMenu/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 11 WARNINGS AFFECTING 11 LINES
----------------------------------------------------------------------
   6 | WARNING | Line exceeds 80 characters; contains 140 characters
   8 | WARNING | Line exceeds 80 characters; contains 107 characters
  10 | WARNING | Line exceeds 80 characters; contains 164 characters
  14 | WARNING | Line exceeds 80 characters; contains 362 characters
  31 | WARNING | Line exceeds 80 characters; contains 82 characters
  35 | WARNING | Line exceeds 80 characters; contains 120 characters
  57 | WARNING | Line exceeds 80 characters; contains 91 characters
  77 | WARNING | Line exceeds 80 characters; contains 98 characters
 100 | WARNING | Line exceeds 80 characters; contains 86 characters
 104 | WARNING | Line exceeds 80 characters; contains 166 characters
 108 | WARNING | Line exceeds 80 characters; contains 125 characters
----------------------------------------------------------------------
📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India akshay.singh Noida

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

Merge Requests

Comments & Activities

Not all content is available!

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

  • Merge request !1fixing coding standards → (Merged) created by karanpagare
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • Issue was unassigned.
  • Status changed to Needs work over 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
       /*function options_form($context) {
    -    $values = $this->fetch_from_context($context);
    -    $form_state = (empty($form_state) ? array() : $form_state);
    -    if (empty($form_state['build_info']['args'])) {
    -      $form_state['build_info']['args'] = array();
    -    }
    -    if (!empty($values)) {
    -      $form_state['values'] = $values;
    -    }
    -    module_load_include('inc', 'responsive_menus', 'includes/context/responsive_menus_context');
    -    $form = drupal_retrieve_form('responsive_menus_context_options_form', $form_state);
    +  $values = $this->fetch_from_context($context);
    +  $form_state = (empty($form_state) ? array() : $form_state);
    +  if (empty($form_state['build_info']['args'])) {
    +  $form_state['build_info']['args'] = array();
    +  }
    +  if (!empty($values)) {
    +  $form_state['values'] = $values;
    +  }
    +  module_load_include('inc', 'responsive_menus',
    +  'includes/context/responsive_menus_context');
    +  $form = drupal_retrieve_form('responsive_menus_context_options_form'
    +  , $form_state);
     
    -    return $form;
    +  return $form;
       }*/

    The changed code is not correctly indented.

    - * To add a new style to Responsive Menus, you are most likely creating at least
    + * To add a new style to Responsive Menus, you are likely creating at least.
    + *
      * 3 functions:

    The full sentence is To add a new style to Responsive Menus, you are most likely creating at least 3 functions: Adding a period before the sentence end is wrong.
    Also, is there any reason to remove most? you are most likely creating is a perfectly grammatical English sentence.

    -   * @var string
    +   * @var stringcontainsid
        */
       public $id;

    stringcontainsid is not a type that can be used with @var.

    /**
    - * Class ResponsiveMenusAdminForm.
    + * Class ResponsiveMenusAdminForm contains form for responsive menus.
      *
      * @package Drupal\responsive_menus\Form
      */
    @@ -78,13 +78,13 @@ class ResponsiveMenusAdminForm extends ConfigFormBase {

    The short description for a class does not start with the class name.

    -//    $form['responsive_menus_no_jquery_update'] = [
    -//      '#type'          => 'checkbox',
    -//      '#title'         => t('I will provide my own jQuery library.'),
    -//      '#description'   => t("If the style you want requires newer jQuery version and you don't want to use jquery_update module."),
    -//      '#default_value' => $config->get('no_jquery_update'),
    -//    ];
    -
    +    // $form['responsive_menus_no_jquery_update'] = [
    +    // '#type'          => 'checkbox',
    +    // '#title'         => t('I will provide my own jQuery library.'),
    +    // '#description'   => t("If the style you want requires newer jQuery
    +    // version and you don't want to use jquery_update module."),
    +    // '#default_value' => $config->get('no_jquery_update'),
    +    // ];

    Since that code is changed, it should also be correctly indented. Before and after =>, the Drupal coding standards says to add a single space.

    -//    $jq_update_ignore = $form['responsive_menus_no_jquery_update']['#default_value'];
    -//    $style_info = responsive_menus_style_load($current_style, $jq_update_ignore);
    +    // $jq_update_ignore = $form['responsive_menus_no_jquery_update']
    +    // ['#default_value'];
    +    // $style_info = responsive_menus_style_load($current_style,
    +    // $jq_update_ignore);
    -//    if (!empty($_POST) && form_get_errors()) {
    -//      drupal_set_message(t('The settings have not been saved because of the errors.'), 'error');
    -//    }
    -
    +    // If (!empty($_POST) && form_get_errors()) {
    +    // drupal_set_message(t('The settings have not been saved
    +    // because of the errors.'), 'error');
    +    // }.

    That code is not correctly formatted.

  • First commit to issue fork.
  • First commit to issue fork.
  • First commit to issue fork.
  • Status changed to Fixed 9 months ago
  • 🇺🇸United States jwjoshuawalker San Diego

    Merged - minus minor changes for the jquery once() compatibility.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024