Coding Standards Report for DBA

Type Line Message
Package 335 errors and 22 warnings
/data/pear/pear/DBA/DBA.php
error 2 You must use "/**" style comments for a file comment
error 27 "require_once" is a statement, not a function; no parentheses are required
error 34 Expected 1 space after comma in function call; 20 found
error 35 Expected 1 space after comma in function call; 7 found
error 36 Expected 1 space after comma in function call; 2 found
error 37 Expected 1 space after comma in function call; 10 found
error 38 Expected 1 space after comma in function call; 10 found
error 39 Expected 1 space after comma in function call; 11 found
error 40 Expected 1 space after comma in function call; 7 found
error 41 Expected 1 space after comma in function call; 6 found
error 42 Expected 1 space after comma in function call; 8 found
error 43 Expected 1 space after comma in function call; 7 found
error 44 Expected 1 space after comma in function call; 6 found
error 45 Expected 1 space after comma in function call; 5 found
error 46 Expected 1 space after comma in function call; 10 found
error 47 Expected 1 space after comma in function call; 9 found
error 48 Expected 1 space after comma in function call; 4 found
error 56 The @author tag is in the wrong order; the tag follows @subpackage (if used) or @package
warning 57 Invalid version "1.0" in doc comment; consider "Release: " instead
error 57 The @version tag is in the wrong order; the tag follows @licence
error 60 Missing @category tag in class comment
error 60 Missing @license tag in class comment
error 60 Missing @link tag in class comment
error 76 Last parameter comment requires a blank newline after it
error 76 Parameters must appear immediately after the comment
error 76 Expected 1 space before variable type
error 82 File is being conditionally included; use "include_once" instead
error 85 File is being conditionally included; use "include_once" instead
error 88 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 88 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 97 Last parameter comment requires a blank newline after it
error 97 Parameters must appear immediately after the comment
error 97 Expected 1 space before variable type
error 97 Doc comment var "$driver" does not match actual variable name "$name" at position 1
error 97 Doc comment for "$driver" missing
error 100 Method name "DBA::db_drop" is not in camel caps format
error 103 File is being conditionally included; use "include_once" instead
error 106 File is being conditionally included; use "include_once" instead
error 109 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 109 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 117 Last parameter comment requires a blank newline after it
error 117 Expected 1 space before variable type
error 117 Expected 1 space after the longest type
error 117 Expected 1 space after the longest variable name
error 130 Last parameter comment requires a blank newline after it
error 130 Expected 1 space before variable type
error 130 Expected 1 space after the longest type
warning 142 Line exceeds 85 characters; contains 86 characters
error 173 The variable names for parameters $code (1) and $mode (2) do not align
error 174 The variable names for parameters $mode (2) and $options (3) do not align
error 174 The comments for parameters $mode (2) and $options (3) do not align
error 179 Last parameter comment requires a blank newline after it
error 179 The variable names for parameters $options (3) and $userinfo (4) do not align
error 179 The comments for parameters $options (3) and $userinfo (4) do not align
error 184 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 184 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 185 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 189 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 189 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 189 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 189 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 189 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 189 TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
error 192 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 193 TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
error 199 Expected 1 space before variable type
error 200 Last parameter comment requires a blank newline after it
error 200 Expected 1 space before variable type
error 200 The comments for parameters $name (1) and @driver (2) do not align
error 200 Doc comment var "@driver" does not match actual variable name "$driver" at position 2
error 203 Method name "DBA::db_exists" is not in camel caps format
error 213 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 213 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
warning 213 Line exceeds 85 characters; contains 88 characters
error 238 Missing @category tag in class comment
error 238 Missing @license tag in class comment
error 238 Missing @link tag in class comment
error 252 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
Sum 75 errors and 3 warnings
/data/pear/pear/DBA/DBA/Driver/Builtin.php
error 2 You must use "/**" style comments for a file comment
error 34 The @author tag is in the wrong order; the tag follows @subpackage (if used) or @package
warning 35 Invalid version "1.0" in doc comment; consider "Release: " instead
error 35 The @version tag is in the wrong order; the tag follows @licence
error 38 Missing @category tag in class comment
error 38 Missing @license tag in class comment
error 38 Missing @link tag in class comment
error 80 You must use "/**" style comments for a function comment
error 93 Parameters must appear immediately after the comment
error 93 Expected 1 space before variable type
error 94 Expected 1 space before variable type
error 94 The comments for parameters $dbName (1) and $mode (2) do not align
error 100 Last parameter comment requires a blank newline after it
error 100 Expected 1 space before variable type
error 100 The comments for parameters $mode (2) and $persistent (3) do not align
error 123 Line indented incorrectly; expected 8 spaces, found 12
error 127 Break statement indented incorrectly; expected 16 spaces, found 20
error 128 Line indented incorrectly; expected 8 spaces, found 12
error 129 Line indented incorrectly; expected 8 spaces, found 12
error 130 Line indented incorrectly; expected 8 spaces, found 12
error 133 Break statement indented incorrectly; expected 16 spaces, found 20
error 133 Break statement indented incorrectly; expected 16 spaces, found 20
error 133 Break statement indented incorrectly; expected 16 spaces, found 20
error 134 Line indented incorrectly; expected 8 spaces, found 12
error 135 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 135 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 137 Closing brace indented incorrectly; expected 12 spaces, found 8
error 155 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 155 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 190 Last parameter comment requires a blank newline after it
error 190 Parameters must appear immediately after the comment
error 190 Expected 1 space before variable type
error 190 Expected 1 space after the longest type
error 214 There must be exactly one blank line before the tags in function comment
error 255 Line indented incorrectly; expected 4 spaces, found 5
error 266 Last parameter comment requires a blank newline after it
error 266 Parameters must appear immediately after the comment
error 266 Expected 1 space before variable type
error 266 Expected 1 space after the longest type
error 273 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 273 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
warning 273 Line exceeds 85 characters; contains 88 characters
error 286 Last parameter comment requires a blank newline after it
error 286 Parameters must appear immediately after the comment
error 286 Expected 1 space before variable type
error 295 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 295 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
warning 295 Line exceeds 85 characters; contains 88 characters
warning 329 Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
error 368 TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
warning 370 Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
error 383 Parameters must appear immediately after the comment
error 383 Expected 1 space before variable type
error 383 Expected 1 space after the longest type
error 384 Last parameter comment requires a blank newline after it
error 384 Expected 1 space before variable type
error 384 The comments for parameters $key (1) and $value (2) do not align
error 393 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 393 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 408 Parameters must appear immediately after the comment
error 408 Expected 1 space before variable type
error 408 Doc comment var "string" does not match actual variable name "$key" at position 1
error 409 Last parameter comment requires a blank newline after it
error 409 Expected 1 space before variable type
error 409 Doc comment var "string" does not match actual variable name "$value" at position 2
error 409 Expected 1 space after the longest type
error 438 Parameters must appear immediately after the comment
error 438 Expected 1 space before variable type
error 438 Expected 1 space after the longest type
error 439 Last parameter comment requires a blank newline after it
error 439 Expected 1 space before variable type
error 447 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 447 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 452 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 452 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 463 Last parameter comment requires a blank newline after it
error 463 Parameters must appear immediately after the comment
error 463 Expected 1 space before variable type
error 463 Expected 1 space after the longest type
error 466 Method name "DBA_Driver_Builtin::db_exists" is not in camel caps format
error 477 Last parameter comment requires a blank newline after it
error 477 Parameters must appear immediately after the comment
error 477 Expected 1 space before variable type
error 477 Expected 1 space after the longest type
error 480 Method name "DBA_Driver_Builtin::db_drop" is not in camel caps format
error 484 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 484 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 488 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 488 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 513 Last parameter comment requires a blank newline after it
error 513 Parameters must appear immediately after the comment
error 513 Expected 1 space before variable type
error 513 Missing comment for param "$key" at position 1
error 525 There must be exactly one blank line before the tags in function comment
error 526 Missing @return tag in function comment
error 536 There must be exactly one blank line before the tags in function comment
error 537 Missing @return tag in function comment
Sum 92 errors and 5 warnings
/data/pear/pear/DBA/DBA/Driver/File.php
error 2 You must use "/**" style comments for a file comment
error 29 No space found after comma in function call
error 34 No space found after comma in function call
error 39 No space found after comma in function call
error 44 No space found after comma in function call
error 74 The @author tag is in the wrong order; the tag follows @subpackage (if used) or @package
warning 75 Invalid version "1.0" in doc comment; consider "Release: " instead
error 75 The @version tag is in the wrong order; the tag follows @licence
error 78 Missing @category tag in class comment
error 78 Missing @license tag in class comment
error 78 Missing @link tag in class comment
error 86 Content of the @author tag must be in the form "Display Name "
error 125 You must use "/**" style comments for a function comment
error 138 Parameters must appear immediately after the comment
error 138 Expected 1 space before variable type
error 139 Expected 1 space before variable type
error 139 The comments for parameters $dbName (1) and $mode (2) do not align
error 145 Last parameter comment requires a blank newline after it
error 145 Expected 1 space before variable type
error 145 The comments for parameters $mode (2) and $persistent (3) do not align
warning 159 Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
warning 160 Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
error 164 Line indented incorrectly; expected 8 spaces, found 12
warning 166 Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
error 169 Break statement indented incorrectly; expected 16 spaces, found 20
error 170 Line indented incorrectly; expected 8 spaces, found 12
warning 172 Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
error 175 Break statement indented incorrectly; expected 16 spaces, found 20
error 176 Line indented incorrectly; expected 8 spaces, found 12
error 178 Line indented incorrectly; expected 12 spaces, found 20
warning 179 Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
error 184 Line indented incorrectly; expected 8 spaces, found 12
warning 185 Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
error 188 Break statement indented incorrectly; expected 16 spaces, found 20
error 188 Break statement indented incorrectly; expected 16 spaces, found 20
error 189 Line indented incorrectly; expected 8 spaces, found 12
error 190 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 190 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 192 Closing brace indented incorrectly; expected 12 spaces, found 8
error 199 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 199 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 206 Space before opening parenthesis of function call prohibited
error 209 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 209 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 215 Space before opening parenthesis of function call prohibited
error 216 Space before opening parenthesis of function call prohibited
error 218 Space before opening parenthesis of function call prohibited
error 219 Space before opening parenthesis of function call prohibited
error 239 Expected "if (...) {\n"; found "if (...)\n {\n"
error 241 Expected "if (...) {\n"; found "if (...)\n {\n"
error 262 Last parameter comment requires a blank newline after it
error 262 Parameters must appear immediately after the comment
error 262 Expected 1 space before variable type
error 262 Expected 1 space after the longest type
error 273 Expected "if (...) {\n"; found "if (...)\n {\n"
error 289 There must be exactly one blank line before the tags in function comment
error 300 There must be exactly one blank line before the tags in function comment
error 301 Missing @return tag in function comment
error 341 Line indented incorrectly; expected 4 spaces, found 5
error 352 Last parameter comment requires a blank newline after it
error 352 Parameters must appear immediately after the comment
error 352 Expected 1 space before variable type
error 352 Expected 1 space after the longest type
error 361 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 361 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
warning 361 Line exceeds 85 characters; contains 88 characters
error 374 Last parameter comment requires a blank newline after it
error 374 Parameters must appear immediately after the comment
error 374 Expected 1 space before variable type
error 381 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 381 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
warning 381 Line exceeds 85 characters; contains 88 characters
error 384 No space found after comma in function call
warning 384 Line exceeds 85 characters; contains 87 characters
error 469 Parameters must appear immediately after the comment
error 469 Expected 1 space before variable type
error 469 Expected 1 space after the longest type
error 470 Last parameter comment requires a blank newline after it
error 470 Expected 1 space before variable type
error 470 The comments for parameters $key (1) and $value (2) do not align
error 476 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 476 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 490 Parameters must appear immediately after the comment
error 490 Expected 1 space before variable type
error 490 Doc comment var "string" does not match actual variable name "$key" at position 1
error 490 Expected 1 space after the longest type
error 491 Last parameter comment requires a blank newline after it
error 491 Expected 1 space before variable type
error 491 Doc comment var "string" does not match actual variable name "$value" at position 2
error 522 Line indented incorrectly; expected at least 20 spaces, found 16
error 542 Parameters must appear immediately after the comment
error 542 Expected 1 space before variable type
error 542 Missing comment for param "$key" at position 1
error 543 Expected 1 space before variable type
error 543 The comments for parameters $key (1) and $value (2) do not align
error 543 Missing comment for param "$value" at position 2
error 544 Expected 1 space before variable type
error 544 Missing comment for param "$vsize" at position 3
error 545 Missing @return tag in function comment
error 559 No space found after comma in function call
error 564 Line indented incorrectly; expected at least 12 spaces, found 8
error 589 Last parameter comment requires a blank newline after it
error 589 Parameters must appear immediately after the comment
error 589 Expected 1 space before variable type
error 589 Expected 1 space after the longest type
error 591 Missing @return tag in function comment
error 614 Last parameter comment requires a blank newline after it
error 614 Parameters must appear immediately after the comment
error 614 Expected 1 space before variable type
error 614 Missing comment for param "$key" at position 1
error 616 Missing @return tag in function comment
warning 619 Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
error 634 Last parameter comment requires a blank newline after it
error 634 Parameters must appear immediately after the comment
error 634 Expected 1 space before variable type
error 634 Expected 1 space after the longest type
error 640 Line indented incorrectly; expected at least 12 spaces, found 11
error 650 Last parameter comment requires a blank newline after it
error 650 Parameters must appear immediately after the comment
error 650 Expected 1 space before variable type
error 650 Expected 1 space after the longest type
error 653 Method name "DBA_Driver_File::db_exists" is not in camel caps format
error 664 Last parameter comment requires a blank newline after it
error 664 Parameters must appear immediately after the comment
error 664 Expected 1 space before variable type
error 664 Expected 1 space after the longest type
error 667 Method name "DBA_Driver_File::db_drop" is not in camel caps format
error 671 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 671 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 675 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 675 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 700 Last parameter comment requires a blank newline after it
error 700 Parameters must appear immediately after the comment
error 700 Expected 1 space before variable type
error 700 Missing comment for param "$key" at position 1
error 712 There must be exactly one blank line before the tags in function comment
error 713 Missing @return tag in function comment
error 726 There must be exactly one blank line before the tags in function comment
error 727 Missing @return tag in function comment
error 740 There must be exactly one blank line before the tags in function comment
error 741 Missing @return tag in function comment
warning 747 Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
warning 748 Equals sign not aligned with surrounding assignments; expected 15 spaces but found 1 space
error 750 Expected "while (...) {\n"; found "while (...)\n {\n"
warning 768 Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
error 781 Missing @return tag in function comment
error 793 No space found after comma in function call
error 810 Doc comment for "$loc" missing
error 810 Doc comment for "$size" missing
error 810 Doc comment for "$vsize" missing
error 810 Doc comment for "$key" missing
error 814 Missing @return tag in function comment
error 815 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 815 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
Sum 140 errors and 14 warnings
/data/pear/pear/DBA/DBA/Compatibility.php
error 2 You must use "/**" style comments for a file comment
error 40 File is being conditionally included; use "include_once" instead
error 41 File is being conditionally included; use "include_once" instead
error 43 Missing function doc comment
error 43 Function name "dba_close" is prefixed with a package name but does not begin with a capital letter
error 50 Missing function doc comment
error 50 Function name "dba_delete" is prefixed with a package name but does not begin with a capital letter
error 55 Missing function doc comment
error 55 Function name "dba_exists" is prefixed with a package name but does not begin with a capital letter
error 60 Missing function doc comment
error 60 Function name "dba_fetch" is prefixed with a package name but does not begin with a capital letter
error 65 Missing function doc comment
error 65 Function name "dba_firstkey" is prefixed with a package name but does not begin with a capital letter
error 70 Missing function doc comment
error 70 Function name "dba_insert" is prefixed with a package name but does not begin with a capital letter
error 75 Missing function doc comment
error 75 Function name "dba_nextkey" is prefixed with a package name but does not begin with a capital letter
error 80 Missing function doc comment
error 80 Function name "dba_open" is prefixed with a package name but does not begin with a capital letter
error 91 Missing function doc comment
error 91 Function name "dba_popen" is prefixed with a package name but does not begin with a capital letter
error 93 TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
error 96 Missing function doc comment
error 96 Function name "dba_replace" is prefixed with a package name but does not begin with a capital letter
error 101 Missing function doc comment
error 101 Function name "dba_sync" is prefixed with a package name but does not begin with a capital letter
error 106 Missing function doc comment
error 106 Function name "dba_optimize" is prefixed with a package name but does not begin with a capital letter
Sum 28 errors and 0 warnings