https://git.drupal.org/project/haystack

Primary tabs

Review of the 7.x-1.x branch (commit 477ba34):
  • README.md or README.txt is missing, see the guidelines for in-project documentation.
  • Remove all .sass-cache files from your repository.
  • ./haystack.admin.inc: All functions should be prefixed with your module/theme name (haystack) to avoid name clashes. See https://www.drupal.org/node/318#naming
    function _get_timeago($ptime) {
    
  • The haystack.module does not implement hook_help(). See https://www.drupal.org/docs/develop/documenting-your-project/module-docu... .
  • Bad line endings were found, always use unix style terminators. See https://www.drupal.org/coding-standards#indenting
    
    icons/haystack.svg
    
  • Coder Sniffer has found some issues with your code (please check the Drupal coding standards). See attachment.
  • DrupalPractice has found some issues with your code, but could be false positives.
    
    FILE: ...te1101/web/vendor/drupal/pareviewsh/pareview_temp/haystack.admin.inc
    --------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    --------------------------------------------------------------------------
     53 | WARNING | There must be no blank line following an inline comment
     67 | WARNING | Unused variable $haystack_status.
     71 | WARNING | Unused variable $cron_ago.
    --------------------------------------------------------------------------
    
    
    FILE: .../site1101/web/vendor/drupal/pareviewsh/pareview_temp/haystack.module
    --------------------------------------------------------------------------
    FOUND 0 ERRORS AND 13 WARNINGS AFFECTING 13 LINES
    --------------------------------------------------------------------------
      24 | WARNING | Unused variable $k.
      50 | WARNING | Do not use drupal_add_js() in hook_init(), use #attached
         |         | for CSS and JS in your page/form callback or in
         |         | hook_page_build() instead
      52 | WARNING | Do not use drupal_add_js() in hook_init(), use #attached
         |         | for CSS and JS in your page/form callback or in
         |         | hook_page_build() instead
      65 | WARNING | Do not use drupal_add_css() in hook_init(), use
         |         | #attached for CSS and JS in your page/form callback or
         |         | in hook_page_build() instead
      72 | WARNING | Unused variable $length.
     132 | WARNING | Unused variable $call.
     249 | WARNING | Unused variable $res.
     273 | WARNING | Unused variable $res.
     327 | WARNING | Unused variable $res.
     368 | WARNING | Unused variable $res.
     370 | WARNING | There must be no blank line following an inline comment
     391 | WARNING | Unused variable $res.
     451 | WARNING | Unused variable $id.
    --------------------------------------------------------------------------
    
    Time: 1.11 secs; Memory: 8Mb
    
  • DrupalSecure has found some issues with your code (please check the Writing secure core handbook).
    
    
    FILE: .../site1101/web/vendor/drupal/pareviewsh/pareview_temp/haystack.module
    --------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------
     695 | WARNING | Possible SQL injection in db_query() via variable $menus
    --------------------------------------------------------------------------
    
    Time: 996ms; Memory: 10Mb
    
  • No automated test cases were found, did you consider writing Simpletests or PHPUnit tests? This is not a requirement but encouraged for professional software development.
This automated report was generated with PAReview.sh, your friendly project application review script.

FILE: ...00/site1101/web/vendor/drupal/pareviewsh/pareview_temp/haystack.info
--------------------------------------------------------------------------
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: ...000/site1101/web/vendor/drupal/pareviewsh/pareview_temp/haystack.css
--------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 1 LINE
--------------------------------------------------------------------------
 1 | ERROR | [x] Expected 1 space before opening brace of class
   |       |     definition; 0 found
 1 | ERROR | [x] Opening brace should be the last content on the line
 1 | ERROR | [ ] Style definitions must end with a semicolon
 1 | ERROR | [x] Expected 1 space after colon in style definition; 0
   |       |     found
 1 | ERROR | [x] Closing brace of class definition must be on new line
 1 | ERROR | [x] Expected 1 space before opening brace of class
   |       |     definition; 0 found
 1 | ERROR | [x] Opening brace should be the last content on the line
 1 | ERROR | [x] Each style definition must be on a line by itself
 1 | ERROR | [ ] Style definitions must end with a semicolon
 1 | ERROR | [x] Expected 1 space after colon in style definition; 0
   |       |     found
 1 | ERROR | [x] Closing brace of class definition must be on new line
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------


FILE: ...site1101/web/vendor/drupal/pareviewsh/pareview_temp/haystack.install
--------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------
  1 | ERROR | [x] The PHP open tag must be followed by exactly one blank
    |       |     line
 28 | ERROR | [x] Comments may not appear after statements
 28 | ERROR | [x] Inline comments must start with a capital letter
 28 | ERROR | [x] Inline comments must end in full-stops, exclamation
    |       |     marks, colons, question marks, or closing parentheses
 34 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------


FILE: ...te1101/web/vendor/drupal/pareviewsh/pareview_temp/haystack.admin.inc
--------------------------------------------------------------------------
FOUND 115 ERRORS AND 7 WARNINGS AFFECTING 63 LINES
--------------------------------------------------------------------------
   1 | ERROR   | [x] The PHP open tag must be followed by exactly one
     |         |     blank line
  15 | ERROR   | [x] No space found before comment text; expected "// Add
     |         |     JS" but found "//Add JS"
  15 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
  16 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found
     |         |     3
  23 | ERROR   | [x] No space found before comment text; expected "// API
     |         |     Key" but found "//API Key"
  23 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
  31 | ERROR   | [x] Whitespace found at end of line
  34 | ERROR   | [x] Array closing indentation error, expected 6 spaces
     |         |     but found 8
  35 | ERROR   | [x] Array indentation error, expected 4 spaces but found
     |         |     6
  45 | ERROR   | [x] There should be no white space after an opening "{"
  45 | ERROR   | [x] Comments may not appear after statements
  45 | ERROR   | [x] No space found before comment text; expected "//
     |         |     init" but found "//init"
  45 | ERROR   | [x] Inline comments must start with a capital letter
  45 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
  53 | ERROR   | [x] There should be no white space after an opening "{"
  53 | ERROR   | [x] Comments may not appear after statements
  53 | ERROR   | [x] No space found before comment text; expected "//
     |         |     ready to init" but found "//ready to init"
  53 | ERROR   | [x] Inline comments must start with a capital letter
  53 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
  61 | ERROR   | [x] Functions must not contain multiple empty lines in a
     |         |     row; found 2 empty lines
  68 | ERROR   | [x] Functions must not contain multiple empty lines in a
     |         |     row; found 3 empty lines
  70 | ERROR   | [ ] More than 2 empty lines are not allowed
  74 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Search Update Status" but found "//Search Update
     |         |     Status"
  74 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
  83 | ERROR   | [x] Expected one space after the comma, 0 found
  84 | ERROR   | [x] Expected one space after the comma, 0 found
  87 | WARNING | [ ] Translatable strings must not begin or end with
     |         |     white spaces, use placeholders with t() for
     |         |     variables
  87 | ERROR   | [ ] Concatenating translatable strings is not allowed,
     |         |     use placeholders instead and only one string literal
  87 | ERROR   | [x] Concat operator must be surrounded by a single space
  87 | ERROR   | [x] Concat operator must be surrounded by a single space
  89 | WARNING | [ ] Translatable strings must not begin or end with
     |         |     white spaces, use placeholders with t() for
     |         |     variables
  89 | ERROR   | [ ] Concatenating translatable strings is not allowed,
     |         |     use placeholders instead and only one string literal
  89 | ERROR   | [x] Concat operator must be surrounded by a single space
  89 | ERROR   | [x] Expected 1 space before "-"; 0 found
  89 | ERROR   | [x] Expected 1 space after "-"; 0 found
  89 | ERROR   | [x] Concat operator must be surrounded by a single space
  94 | ERROR   | [x] No space found before comment text; expected "// Id
     |         |     for Search Field" but found "//Id for Search Field"
  94 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 111 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Links" but found "//Links"
 111 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 135 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Content Types" but found "//Content Types"
 135 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 144 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Types" but found "//Types"
 144 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 147 | ERROR   | [x] Comments may not appear after statements
 147 | ERROR   | [x] No space found before comment text; expected "//
     |         |     All" but found "//All"
 147 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 168 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Menus" but found "//Menus"
 168 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 171 | ERROR   | [x] Comments may not appear after statements
 171 | ERROR   | [x] No space found before comment text; expected "//
     |         |     All" but found "//All"
 171 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 194 | WARNING | [ ] Only string literals should be passed to t() where
     |         |     possible
 195 | WARNING | [ ] Only string literals should be passed to t() where
     |         |     possible
 206 | ERROR   | [ ] Missing parameter comment
 206 | ERROR   | [ ] Missing parameter type
 207 | ERROR   | [ ] Missing parameter comment
 207 | ERROR   | [ ] Missing parameter type
 212 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 219 | ERROR   | [x] Missing function doc comment
 222 | ERROR   | [x] Equals sign not aligned with surrounding
     |         |     assignments; expected 1 space but found 2 spaces
 224 | WARNING | [ ] Line exceeds 80 characters; contains 98 characters
 235 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Else reprocess all content and send to the new
     |         |     index" but found "//Else reprocess all content and
     |         |     send to the new index"
 235 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 252 | ERROR   | [x] Missing function doc comment
 256 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Delete all on server" but found "//Delete all on
     |         |     server"
 256 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 264 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Delete set items, we will use ones set in form" but
     |         |     found "//Delete set items, we will use ones set in
     |         |     form"
 264 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 268 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Process new contents against empty initial results"
     |         |     but found "//Process new contents against empty
     |         |     initial results"
 268 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 272 | ERROR   | [x] Missing function doc comment
 275 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Check if content types have changed..." but found
     |         |     "//Check if content types have changed..."
 280 | ERROR   | [x] Expected one space after the comma, 0 found
 281 | ERROR   | [x] Expected one space after the comma, 0 found
 290 | ERROR   | [x] Functions must not contain multiple empty lines in a
     |         |     row; found 3 empty lines
 292 | ERROR   | [ ] More than 2 empty lines are not allowed
 293 | ERROR   | [x] There should be no white space after an opening "{"
 293 | WARNING | [ ] Line exceeds 80 characters; contains 92 characters
 293 | ERROR   | [x] Comments may not appear after statements
 293 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Checks the difference and adds them, subrtract or
     |         |     add" but found "//Checks the difference and adds
     |         |     them, subrtract or add"
 293 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 310 | ERROR   | [x] Functions must not contain multiple empty lines in a
     |         |     row; found 2 empty lines
 312 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Delete Array" but found "//Delete Array"
 313 | ERROR   | [x] There should be no white space after an opening "{"
 313 | ERROR   | [x] Comments may not appear after statements
 313 | ERROR   | [x] No space found before comment text; expected "// We
     |         |     use keys as the val may be set 0" but found "//We
     |         |     use keys as the val may be set 0"
 313 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 319 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Delete by Post Type" but found "//Delete by Post
     |         |     Type"
 320 | ERROR   | [x] There should be no white space after an opening "{"
 320 | ERROR   | [x] Comments may not appear after statements
 320 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Content" but found "//Content"
 321 | ERROR   | [x] There should be no white space after an opening "{"
 321 | ERROR   | [x] Comments may not appear after statements
 321 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Delete each type individually" but found "//Delete
     |         |     each type individually"
 321 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 326 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Delete by Menu Name" but found "//Delete by Menu
     |         |     Name"
 326 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 328 | ERROR   | [x] Comments may not appear after statements
 328 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Delete is second param" but found "//Delete is
     |         |     second param"
 328 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 333 | ERROR   | [x] No space found before comment text; expected "// Add
     |         |     Array" but found "//Add Array"
 333 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 335 | ERROR   | [x] There should be no white space after an opening "{"
 335 | ERROR   | [x] Comments may not appear after statements
 335 | ERROR   | [x] No space found before comment text; expected "// We
     |         |     use keys as the val may be set 0" but found "//We
     |         |     use keys as the val may be set 0"
 335 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 341 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Update by Post Type" but found "//Update by Post
     |         |     Type"
 341 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 347 | ERROR   | [x] Comments may not appear after statements
 347 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Update timestamp forcing reindex" but found
     |         |     "//Update timestamp forcing reindex"
 347 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 352 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Update by Menu Name" but found "//Update by Menu
     |         |     Name"
 352 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 354 | ERROR   | [x] Comments may not appear after statements
 354 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Reindex menu" but found "//Reindex menu"
 354 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 378 | ERROR   | [x] Expected 1 blank line after function; 2 found
 399 | ERROR   | [x] Missing function doc comment
 412 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 'second'
 419 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 424 | ERROR   | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 108 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------


FILE: .../site1101/web/vendor/drupal/pareviewsh/pareview_temp/haystack.module
--------------------------------------------------------------------------
FOUND 117 ERRORS AND 11 WARNINGS AFFECTING 81 LINES
--------------------------------------------------------------------------
   1 | ERROR   | [x] Missing file doc comment
  13 | ERROR   | [x] Expected 1 blank line before function; 2 found
  22 | ERROR   | [x] Equals sign not aligned with surrounding
     |         |     assignments; expected 1 space but found 9 spaces
  23 | ERROR   | [x] Equals sign not aligned with surrounding
     |         |     assignments; expected 5 spaces but found 13 spaces
  24 | ERROR   | [x] Expected 1 space after FOREACH keyword; 0 found
  25 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found
     |         |     10
  26 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found
     |         |     10
  27 | ERROR   | [x] Line indented incorrectly; expected 10 spaces, found
     |         |     12
  28 | ERROR   | [x] Array indentation error, expected 14 spaces but
     |         |     found 16
  29 | ERROR   | [x] Array indentation error, expected 14 spaces but
     |         |     found 16
  31 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found
     |         |     10
  47 | ERROR   | [x] Functions must not contain multiple empty lines in a
     |         |     row; found 2 empty lines
  54 | ERROR   | [x] Concat operator must be surrounded by a single space
  54 | ERROR   | [x] Concat operator must be surrounded by a single space
  63 | ERROR   | [x] Whitespace found at end of line
 105 | ERROR   | [x] Whitespace found at end of line
 106 | ERROR   | [x] Whitespace found at end of line
 118 | ERROR   | [x] Missing function doc comment
 123 | ERROR   | [x] Doc comment short description must end with a full
     |         |     stop
 126 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Directly passing the stats to the API." but found
     |         |     "//Directly passing the stats to the API."
 133 | ERROR   | [x] Functions must not contain multiple empty lines in a
     |         |     row; found 2 empty lines
 179 | ERROR   | [x] Expected one space after the comma, 0 found
 180 | ERROR   | [x] Expected one space after the comma, 0 found
 182 | ERROR   | [x] Equals sign not aligned correctly; expected 1 space
     |         |     but found 2 spaces
 182 | ERROR   | [x] Expected one space after the comma, 0 found
 184 | WARNING | [ ] Line exceeds 80 characters; contains 113 characters
 184 | ERROR   | [x] No space found before comment text; expected "//
     |         |     This is in place to check in case the user checks,
     |         |     unchecks. Will count requests to send through CRON +
     |         |     menus" but found "//This is in place to check in
     |         |     case the user checks, unchecks. Will count requests
     |         |     to send through CRON + menus"
 184 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 192 | ERROR   | [x] Comments may not appear after statements
 192 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Counts menu total in form encouraging results" but
     |         |     found "//Counts menu total in form encouraging
     |         |     results"
 192 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 198 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters
 227 | ERROR   | [x] Inline comments must start with a capital letter
 227 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 237 | ERROR   | [x] Array closing indentation error, expected 4 spaces
     |         |     but found 6
 241 | ERROR   | [x] There should be no white space before a closing ")"
 242 | ERROR   | [x] There should be no white space after an opening "("
 242 | ERROR   | [x] There should be no white space before a closing ")"
 297 | ERROR   | [x] Expected 1 blank line after function; 2 found
 304 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found
     |         |     0
 323 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: ''
 341 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 346 | ERROR   | [x] There should be no white space after an opening "{"
 346 | ERROR   | [x] Comments may not appear after statements
 346 | ERROR   | [x] No space found before comment text; expected "// We
     |         |     hid the item, disabled it" but found "//We hid the
     |         |     item, disabled it"
 346 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 349 | ERROR   | [x] There should be no white space after an opening "{"
 349 | ERROR   | [x] Comments may not appear after statements
 349 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Item enabled, just update" but found "//Item
     |         |     enabled, just update"
 349 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 364 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: ''
 370 | WARNING | [x] There must be no blank line following an inline
     |         |     comment
 370 | ERROR   | [x] No space found before comment text; expected "// Add
     |         |     items to the cache" but found "//Add items to the
     |         |     cache"
 370 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 373 | ERROR   | [x] Expected one space after the comma, 0 found
 415 | ERROR   | [x] Missing function doc comment
 420 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters
 426 | ERROR   | [x] Equals sign not aligned with surrounding
     |         |     assignments; expected 1 space but found 2 spaces
 443 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: ''
 474 | ERROR   | [ ] Missing parameter comment
 474 | ERROR   | [ ] Missing parameter type
 476 | ERROR   | [ ] Description for the @return value is missing
 492 | ERROR   | [x] Missing function doc comment
 495 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected
     |         |     "FALSE" but found "false"
 500 | ERROR   | [x] No space found before comment text; expected "//
     |         |     open connection" but found "//open connection"
 500 | ERROR   | [x] Inline comments must start with a capital letter
 500 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 502 | ERROR   | [x] Comments may not appear after statements
 502 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 509 | ERROR   | [x] There should be no white space after an opening "{"
 509 | ERROR   | [x] Comments may not appear after statements
 509 | ERROR   | [x] No space found before comment text; expected "// We
     |         |     need to keep the index alive" but found "//We need
     |         |     to keep the index alive"
 509 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 513 | ERROR   | [x] There should be no white space after an opening "{"
 513 | ERROR   | [x] Comments may not appear after statements
 513 | ERROR   | [x] No space found before comment text; expected "// We
     |         |     clear only one type" but found "//We clear only one
     |         |     type"
 513 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 517 | ERROR   | [x] There should be no white space after an opening "{"
 517 | ERROR   | [x] Comments may not appear after statements
 517 | ERROR   | [x] No space found before comment text; expected "// We
     |         |     clear only one type" but found "//We clear only one
     |         |     type"
 518 | ERROR   | [x] Comments may not appear after statements
 518 | ERROR   | [x] No space found before comment text; expected "//
     |         |     .$token;" but found "//.$token;"
 518 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 522 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: )
 537 | ERROR   | [x] No space found before comment text; expected "//
     |         |     execute post" but found "//execute post"
 537 | ERROR   | [x] Inline comments must start with a capital letter
 537 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 540 | ERROR   | [x] No space found before comment text; expected "//
     |         |     close connection" but found "//close connection"
 540 | ERROR   | [x] Inline comments must start with a capital letter
 540 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 542 | ERROR   | [ ] Concatenating translatable strings is not allowed,
     |         |     use placeholders instead and only one string literal
 542 | ERROR   | [x] Concat operator must be surrounded by a single space
 542 | ERROR   | [x] Expected one space after the comma, 0 found
 550 | ERROR   | [x] Doc comment long description must end with a full
     |         |     stop
 555 | WARNING | [ ] Line exceeds 80 characters; contains 175 characters
 555 | ERROR   | [x] No space found before comment text; expected "//
     |         |     drupal_set_message(t('Haystack was unable to crawl
     |         |     for meta tags information on the following URL due
     |         |     to a lack of permission: !url', array('!url' =>
     |         |     $url)), 'warning');" but found
     |         |     "//drupal_set_message(t('Haystack was unable to
     |         |     crawl for meta tags information on the following URL
     |         |     due to a lack of permission: !url', array('!url' =>
     |         |     $url)), 'warning');"
 555 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 574 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: ''
 608 | ERROR   | [x] Comments may not appear after statements
 608 | ERROR   | [x] Inline comments must start with a capital letter
 608 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 613 | WARNING | [ ] Format should be "* Implements hook_foo().", "*
     |         |     Implements hook_foo_BAR_ID_bar() for xyz_bar().",,
     |         |     "* Implements hook_foo_BAR_ID_bar() for
     |         |     xyz-bar.html.twig.", "* Implements
     |         |     hook_foo_BAR_ID_bar() for xyz-bar.tpl.php.", or "*
     |         |     Implements hook_foo_BAR_ID_bar() for block
     |         |     templates."
 613 | ERROR   | [x] Doc comment short description must end with a full
     |         |     stop
 628 | ERROR   | [x] TRUE, FALSE and NULL must be uppercase; expected
     |         |     "NULL" but found "null"
 651 | ERROR   | [x] Missing function doc comment
 659 | ERROR   | [x] Missing function doc comment
 671 | ERROR   | [x] Missing function doc comment
 688 | ERROR   | [x] No space found before comment text; expected "//
     |         |     Total and incrementers" but found "//Total and
     |         |     incrementers"
 688 | ERROR   | [x] Inline comments must end in full-stops, exclamation
     |         |     marks, colons, question marks, or closing
     |         |     parentheses
 689 | ERROR   | [x] You must use "/**" style comments for a function
     |         |     comment
 689 | ERROR   | [x] Expected 1 blank line before function; 0 found
 694 | ERROR   | [x] Concat operator must be surrounded by a single space
 694 | ERROR   | [x] Expected one space after the comma, 0 found
 694 | ERROR   | [x] Concat operator must be surrounded by a single space
 695 | ERROR   | [x] Concat operator must be surrounded by a single space
 695 | ERROR   | [x] Concat operator must be surrounded by a single space
 695 | ERROR   | [x] Expected one space after the comma, 0 found
 707 | ERROR   | [x] Missing function doc comment
 708 | ERROR   | [x] Expected one space after the comma, 0 found
 709 | ERROR   | [x] Expected one space after the comma, 0 found
 711 | ERROR   | [x] Expected one space after the comma, 0 found
 717 | ERROR   | [x] Missing function doc comment
 718 | ERROR   | [x] Expected one space after the comma, 0 found
 720 | ERROR   | [x] Expected one space after the comma, 0 found
 723 | ERROR   | [x] Missing function doc comment
 724 | ERROR   | [x] Expected one space after the comma, 0 found
 725 | ERROR   | [x] Expected one space after the comma, 0 found
 726 | ERROR   | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 119 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

Time: 1.69 secs; Memory: 8Mb