FILE: ...sitenotes/sitenotes.module -------------------------------------------------------------------------------- FOUND 206 ERROR(S) AND 34 WARNING(S) AFFECTING 148 LINE(S) -------------------------------------------------------------------------------- 8 | WARNING | Format should be "* Implements hook_foo()." or "Implements | | hook_foo_BAR_ID_bar() for xyz_bar()." 10 | WARNING | Line exceeds 80 characters; contains 84 characters 15 | ERROR | Spaces must be used to indent lines; tabs are not allowed 15 | ERROR | Array indentation error, expected 8 spaces but found 5 25 | WARNING | A comma should follow the last multiline array item. Found: ) 25 | ERROR | Array closing indentation error, expected 6 spaces but found 4 30 | WARNING | Format should be "* Implements hook_foo()." or "Implements | | hook_foo_BAR_ID_bar() for xyz_bar()." 42 | WARNING | Format should be "* Implements hook_foo()." or "Implements | | hook_foo_BAR_ID_bar() for xyz_bar()." 50 | ERROR | Whitespace found at end of line 51 | ERROR | Whitespace found at end of line 53 | WARNING | Format should be "* Implements hook_foo()." or "Implements | | hook_foo_BAR_ID_bar() for xyz_bar()." 57 | ERROR | Line indented incorrectly; expected at least 2 spaces, found 0 67 | ERROR | Concat operator must be surrounded by spaces 67 | ERROR | Whitespace found at end of line 93 | ERROR | Whitespace found at end of line 96 | ERROR | Whitespace found at end of line 104 | WARNING | Line exceeds 80 characters; contains 88 characters 115 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 0 116 | WARNING | Line exceeds 80 characters; contains 96 characters 116 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 0 126 | WARNING | Format should be "* Implements hook_foo()." or "Implements | | hook_foo_BAR_ID_bar() for xyz_bar()." 134 | ERROR | Concat operator must be surrounded by spaces 134 | ERROR | Concat operator must be surrounded by spaces 137 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 4 137 | ERROR | Whitespace found at end of line 138 | WARNING | Line exceeds 80 characters; contains 131 characters 144 | WARNING | Format should be "* Implements hook_foo()." or "Implements | | hook_foo_BAR_ID_bar() for xyz_bar()." 157 | WARNING | Line exceeds 80 characters; contains 91 characters 157 | ERROR | No space before comment text; expected "// $form['body_field'] | | = node_body_field($node, $type->body_label, | | $type->min_word_count);" but found "//$form['body_field'] = | | node_body_field($node, $type->body_label, | | $type->min_word_count);" 158 | WARNING | Line exceeds 80 characters; contains 142 characters 158 | ERROR | No space before comment text; expected "// | | $form['body_field']['body']['#description'] = t('This is the | | text of the Site Note. It will be filtered according to the | | input format.');" but found | | "//$form['body_field']['body']['#description'] = t('This is | | the text of the Site Note. It will be filtered according to | | the input format.');" 159 | ERROR | No space before comment text; expected "// | | $form['body_field']['body']['#rows'] = 15;" but found | | "//$form['body_field']['body']['#rows'] = 15;" 161 | ERROR | No space before comment text; expected "// | | $form['body_field']['format']['#weight'] = 1;" but found | | "//$form['body_field']['format']['#weight'] = 1;" 161 | ERROR | There must be no blank line following an inline comment 168 | WARNING | Line exceeds 80 characters; contains 122 characters 170 | ERROR | Line indented incorrectly; expected at least 2 spaces, found 0 171 | ERROR | No space before comment text; expected "// return $form;" but | | found "//return $form;" 171 | ERROR | Inline comments must start with a capital letter 174 | ERROR | You must use "/**" style comments for a function comment 180 | WARNING | Format should be "* Implements hook_foo()." or "Implements | | hook_foo_BAR_ID_bar() for xyz_bar()." 181 | WARNING | Line exceeds 80 characters; contains 89 characters 192 | ERROR | Array closing indentation error, expected 2 spaces but found 4 198 | ERROR | Array closing indentation error, expected 2 spaces but found 4 203 | WARNING | Format should be "* Implements hook_foo()." or "Implements | | hook_foo_BAR_ID_bar() for xyz_bar()." 211 | WARNING | Format should be "* Implements hook_foo()." or "Implements | | hook_foo_BAR_ID_bar() for xyz_bar()." 216 | ERROR | Array closing indentation error, expected 2 spaces but found 4 220 | WARNING | Format should be "* Implements hook_foo()." or "Implements | | hook_foo_BAR_ID_bar() for xyz_bar()." 221 | WARNING | Line exceeds 80 characters; contains 86 characters 225 | ERROR | Array indentation error, expected 4 spaces but found 6 226 | ERROR | Array indentation error, expected 4 spaces but found 6 227 | ERROR | Array indentation error, expected 4 spaces but found 6 228 | ERROR | Array indentation error, expected 4 spaces but found 6 229 | ERROR | Array closing indentation error, expected 2 spaces but found 4 235 | WARNING | Format should be "* Implements hook_foo()." or "Implements | | hook_foo_BAR_ID_bar() for xyz_bar()." 236 | WARNING | Line exceeds 80 characters; contains 87 characters 245 | ERROR | Spaces must be used to indent lines; tabs are not allowed 245 | ERROR | Line indented incorrectly; expected at least 2 spaces, found 1 248 | ERROR | Spaces must be used to indent lines; tabs are not allowed 248 | ERROR | Line indented incorrectly; expected at least 2 spaces, found 1 253 | ERROR | Concat operator must be surrounded by spaces 253 | ERROR | Concat operator must be surrounded by spaces 254 | ERROR | Concat operator must be surrounded by spaces 255 | ERROR | Expected "foreach (...) {\n"; found "foreach(...){\n" 255 | ERROR | Line indented incorrectly; expected 2 spaces, found 3 258 | ERROR | Spaces must be used to indent lines; tabs are not allowed 258 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 3 259 | ERROR | Spaces must be used to indent lines; tabs are not allowed 259 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 3 259 | ERROR | No space before comment text; expected "// print_r($body);" | | but found "//print_r($body);" 260 | ERROR | Spaces must be used to indent lines; tabs are not allowed 260 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 3 260 | ERROR | No space found after comma in function call 262 | ERROR | Spaces must be used to indent lines; tabs are not allowed 262 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 3 262 | ERROR | No space found after comma in function call 263 | ERROR | Spaces must be used to indent lines; tabs are not allowed 263 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 3 264 | ERROR | Whitespace found at end of line 264 | ERROR | Spaces must be used to indent lines; tabs are not allowed 265 | ERROR | Line indented incorrectly; expected 4 spaces, found 6 268 | ERROR | Line indented incorrectly; expected 4 spaces, found 6 271 | ERROR | Line indented incorrectly; expected 4 spaces, found 6 272 | ERROR | Concat operator must be surrounded by spaces 272 | ERROR | Concat operator must be surrounded by spaces 272 | ERROR | Concat operator must be surrounded by spaces 274 | ERROR | Concat operator must be surrounded by spaces 274 | ERROR | Concat operator must be surrounded by spaces 274 | ERROR | Concat operator must be surrounded by spaces 275 | ERROR | Concat operator must be surrounded by spaces 275 | ERROR | Concat operator must be surrounded by spaces 275 | ERROR | Concat operator must be surrounded by spaces 275 | ERROR | Concat operator must be surrounded by spaces 276 | ERROR | Line indented incorrectly; expected 4 spaces, found 6 279 | ERROR | Closing brace indented incorrectly; expected 3 spaces, found 4 280 | ERROR | Spaces must be used to indent lines; tabs are not allowed 280 | ERROR | Line indented incorrectly; expected at least 2 spaces, found 1 280 | ERROR | Concat operator must be surrounded by spaces 285 | WARNING | Format should be "* Implements hook_foo()." or "Implements | | hook_foo_BAR_ID_bar() for xyz_bar()." 290 | ERROR | No space before comment text; expected "// $node = | | node_prepare($node, $teaser);" but found "//$node = | | node_prepare($node, $teaser);" 291 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 0 292 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 0 292 | ERROR | Comment indentation error, expected only 4 spaces 293 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 0 294 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 0 294 | ERROR | There must be no blank line following an inline comment 296 | ERROR | Line indented incorrectly; expected 4 spaces, found 2 297 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 4 298 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 4 299 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 4 300 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 4 306 | ERROR | Whitespace found at end of line 310 | WARNING | Format should be "* Implements hook_foo()." or "Implements | | hook_foo_BAR_ID_bar() for xyz_bar()." 319 | ERROR | Spaces must be used to indent lines; tabs are not allowed 319 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 3 328 | WARNING | Format should be "* Implements hook_foo()." or "Implements | | hook_foo_BAR_ID_bar() for xyz_bar()." 331 | ERROR | No space before comment text; expected "// $node->teaser = | | node_teaser($node->body);" but found "//$node->teaser = | | node_teaser($node->body);" 335 | ERROR | Comment indentation error after - element, expected 3 spaces 341 | ERROR | Whitespace found at end of line 344 | WARNING | Format should be "* Implements hook_foo()." or "Implements | | hook_foo_BAR_ID_bar() for xyz_bar()." 351 | ERROR | No space before comment text; expected "// $result = | | db_query("SELECT nid FROM {node} WHERE type = 'sitenotes'");" | | but found "//$result = db_query("SELECT nid FROM {node} WHERE | | type = 'sitenotes'");" 352 | ERROR | Spaces must be used to indent lines; tabs are not allowed 352 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 1 377 | WARNING | Line exceeds 80 characters; contains 88 characters 378 | ERROR | Comment indentation error, expected only 1 spaces 378 | ERROR | Inline comments must end in full-stops, exclamation marks, or | | question marks 379 | ERROR | If the line declaring an array spans longer than 80 | | characters, each element should be broken into its own line 383 | ERROR | Spaces must be used to indent lines; tabs are not allowed 383 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 3 383 | ERROR | Array indentation error, expected 6 spaces but found 3 389 | ERROR | Spaces must be used to indent lines; tabs are not allowed 389 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 3 389 | ERROR | Array indentation error, expected 6 spaces but found 3 396 | ERROR | Spaces must be used to indent lines; tabs are not allowed 396 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 3 396 | ERROR | Array indentation error, expected 6 spaces but found 3 403 | ERROR | Spaces must be used to indent lines; tabs are not allowed 403 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 3 403 | ERROR | Array indentation error, expected 6 spaces but found 3 419 | ERROR | Spaces must be used to indent lines; tabs are not allowed 419 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 1 420 | ERROR | Spaces must be used to indent lines; tabs are not allowed 420 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 1 421 | ERROR | Spaces must be used to indent lines; tabs are not allowed 421 | ERROR | Line indented incorrectly; expected at least 4 spaces, found 1 432 | ERROR | Whitespace found at end of line 432 | ERROR | Spaces must be used to indent lines; tabs are not allowed 433 | ERROR | Spaces must be used to indent lines; tabs are not allowed 433 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 2 433 | ERROR | The first index in a multi-value array must be on a new line 435 | WARNING | A comma should follow the last multiline array item. Found: 5 442 | ERROR | Whitespace found at end of line 442 | ERROR | Spaces must be used to indent lines; tabs are not allowed 443 | ERROR | Spaces must be used to indent lines; tabs are not allowed 443 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 2 449 | ERROR | Spaces must be used to indent lines; tabs are not allowed 453 | ERROR | Spaces must be used to indent lines; tabs are not allowed 453 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 2 454 | ERROR | Spaces must be used to indent lines; tabs are not allowed 454 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 2 455 | ERROR | Spaces must be used to indent lines; tabs are not allowed 455 | ERROR | Line indented incorrectly; expected 6 spaces, found 2 456 | ERROR | Spaces must be used to indent lines; tabs are not allowed 456 | ERROR | Line indented incorrectly; expected at least 8 spaces, found 4 456 | ERROR | Concat operator must be surrounded by spaces 456 | ERROR | Concat operator must be surrounded by spaces 457 | ERROR | Line indented incorrectly; expected 8 spaces, found 14 459 | ERROR | Line indented incorrectly; expected 10 spaces, found 16 460 | ERROR | Spaces must be used to indent lines; tabs are not allowed 460 | ERROR | Line indented incorrectly; expected at least 12 spaces, found | | 6 461 | ERROR | Spaces must be used to indent lines; tabs are not allowed 461 | ERROR | Line indented incorrectly; expected at least 12 spaces, found | | 6 462 | ERROR | Spaces must be used to indent lines; tabs are not allowed 462 | ERROR | Line indented incorrectly; expected at least 12 spaces, found | | 6 463 | ERROR | Spaces must be used to indent lines; tabs are not allowed 463 | ERROR | Line indented incorrectly; expected at least 12 spaces, found | | 6 464 | ERROR | Line indented incorrectly; expected 12 spaces, found 18 465 | ERROR | Spaces must be used to indent lines; tabs are not allowed 465 | ERROR | Line indented incorrectly; expected at least 14 spaces, found | | 8 466 | ERROR | Spaces must be used to indent lines; tabs are not allowed 466 | ERROR | Closing brace indented incorrectly; expected 18 spaces, found | | 6 467 | ERROR | Concat operator must be surrounded by spaces 467 | ERROR | Whitespace found at end of line 468 | ERROR | Whitespace found at end of line 469 | ERROR | Concat operator must be surrounded by spaces 469 | ERROR | Whitespace found at end of line 472 | ERROR | Whitespace found at end of line 473 | ERROR | Spaces must be used to indent lines; tabs are not allowed 474 | ERROR | Whitespace found at end of line 474 | ERROR | Spaces must be used to indent lines; tabs are not allowed 475 | ERROR | Spaces must be used to indent lines; tabs are not allowed 475 | ERROR | Line indented incorrectly; expected 6 spaces, found 2 476 | ERROR | Spaces must be used to indent lines; tabs are not allowed 476 | ERROR | Line indented incorrectly; expected at least 8 spaces, found 4 477 | ERROR | Spaces must be used to indent lines; tabs are not allowed 478 | ERROR | Spaces must be used to indent lines; tabs are not allowed 478 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 2 478 | ERROR | Concat operator must be surrounded by spaces 478 | ERROR | Concat operator must be surrounded by spaces 479 | ERROR | Spaces must be used to indent lines; tabs are not allowed 479 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 2 480 | ERROR | Spaces must be used to indent lines; tabs are not allowed 480 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 2 482 | ERROR | Spaces must be used to indent lines; tabs are not allowed 482 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 2 492 | WARNING | Line exceeds 80 characters; contains 112 characters 496 | WARNING | Line exceeds 80 characters; contains 115 characters 497 | WARNING | Line exceeds 80 characters; contains 107 characters 497 | ERROR | Whitespace found at end of line 498 | ERROR | Whitespace found at end of line 499 | WARNING | Line exceeds 80 characters; contains 102 characters 499 | ERROR | Whitespace found at end of line 504 | WARNING | Line exceeds 80 characters; contains 133 characters 504 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 0 505 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 0 506 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 0 507 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 0 508 | WARNING | Line exceeds 80 characters; contains 86 characters 508 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 0 517 | ERROR | Spaces must be used to indent lines; tabs are not allowed 517 | ERROR | Line indented incorrectly; expected at least 6 spaces, found 2 518 | ERROR | Closing brace indented incorrectly; expected 4 spaces, found 6 519 | ERROR | There must be no blank line following an inline comment 520 | ERROR | Whitespace found at end of line 520 | ERROR | Spaces must be used to indent lines; tabs are not allowed 521 | ERROR | Whitespace found at end of line 524 | ERROR | No space before comment text; expected "// function | | sitenotes_search_item($item) {" but found "//function | | sitenotes_search_item($item) {" 524 | ERROR | Inline comments must start with a capital letter 527 | ERROR | No space before comment text; expected "// }" but found "//}" 527 | ERROR | There must be no blank line following an inline comment 529 | ERROR | You must use "/**" style comments for a function comment 530 | ERROR | Concat operator must be surrounded by spaces 530 | ERROR | Concat operator must be surrounded by spaces 530 | ERROR | Concat operator must be surrounded by spaces 530 | ERROR | Concat operator must be surrounded by spaces 544 | ERROR | Concat operator must be surrounded by spaces 544 | ERROR | Concat operator must be surrounded by spaces 544 | ERROR | Concat operator must be surrounded by spaces 544 | ERROR | Concat operator must be surrounded by spaces 544 | ERROR | Concat operator must be surrounded by spaces 544 | ERROR | Concat operator must be surrounded by spaces --------------------------------------------------------------------------------