Coding Standards Report for DB_ldap

Type Line Message
Package 155 errors and 117 warnings
/data/pear/pear/DB_ldap/ldap.php
error 2 You must use "/**" style comments for a file comment
error 34 Expected 1 space after comma in function call; 5 found
error 35 Expected 1 space after comma in function call; 5 found
error 48 Missing class doc comment
error 48 Class name is not valid; consider LDAP_Result instead
warning 57 Equals sign not aligned correctly; expected 1 space but found 3 spaces
warning 67 Equals sign not aligned correctly; expected 1 space but found 4 spaces
error 74 Doc comment var "$dbh" does not match actual variable name "&$dbh" at position 1
error 74 There must be exactly one blank line before the tags in function comment
error 75 The variable names for parameters $dbh (1) and $result (2) do not align
error 75 The comments for parameters $dbh (1) and $result (2) do not align
error 86 There must be exactly one blank line before the tags in function comment
error 87 Last parameter comment requires a blank newline after it
error 87 Parameters must appear immediately after the comment
error 87 Superfluous doc comment at position 1
error 90 Opening brace should be on a new line
warning 93 Line exceeds 85 characters; contains 86 characters
warning 93 Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
warning 95 Equals sign not aligned with surrounding assignments; expected 17 spaces but found 1 space
warning 96 Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
warning 99 Line exceeds 85 characters; contains 106 characters
warning 99 Inline control structures are discouraged
warning 103 Line exceeds 85 characters; contains 94 characters
warning 103 Inline control structures are discouraged
warning 104 Line exceeds 85 characters; contains 93 characters
warning 104 Inline control structures are discouraged
warning 106 Inline control structures are discouraged
warning 109 Inline control structures are discouraged
warning 110 Inline control structures are discouraged
warning 115 Inline control structures are discouraged
warning 116 Inline control structures are discouraged
warning 118 Inline control structures are discouraged
warning 119 Inline control structures are discouraged
warning 119 Equals sign not aligned with surrounding assignments; expected 20 spaces but found 1 space
error 121 Line indented incorrectly; expected at least 28 spaces, found 0
warning 134 Inline control structures are discouraged
warning 137 Line exceeds 85 characters; contains 108 characters
error 149 Expected 1 space after the longest variable name
error 149 There must be exactly one blank line before the tags in function comment
error 180 Expected 1 space before variable type
error 180 Doc comment var "$arr" does not match actual variable name "&$ar" at position 1
error 181 Expected 1 space before variable type
error 181 Expected 1 space after the longest type
error 181 Expected 1 space after the longest variable name
error 182 Expected 1 space before variable type
warning 193 Inline control structures are discouraged
warning 194 Inline control structures are discouraged
warning 194 Equals sign not aligned with surrounding assignments; expected 25 spaces but found 1 space
warning 195 Equals sign not aligned with surrounding assignments; expected 41 spaces but found 1 space
error 207 Expected 1 space before variable type
error 207 Expected 1 space after the longest type
error 207 Expected 1 space after the longest variable name
error 207 There must be exactly one blank line before the tags in function comment
warning 208 Line exceeds 85 characters; contains 105 characters
error 208 Expected 1 space before variable type
error 221 Doc comment for "$result" missing
error 234 Missing function doc comment
warning 236 Line exceeds 85 characters; contains 135 characters
error 266 There must be exactly one blank line before the tags in function comment
warning 273 Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
error 279 Doc comment for "$mode" missing
error 280 There must be exactly one blank line before the tags in function comment
error 281 Missing @return tag in function comment
error 289 There must be exactly one blank line before the tags in function comment
warning 304 Invalid version "1.0" in doc comment; consider "Release: " instead
error 304 The @version tag is in the wrong order; the tag follows @licence
error 305 The @author tag is in the wrong order; the tag follows @subpackage (if used) or @package
error 305 @author tag comment indented incorrectly. Expected 2 spaces but found 1.
error 307 Missing @category tag in class comment
error 307 Missing @license tag in class comment
error 307 Missing @link tag in class comment
error 309 Class name is not valid; consider DB_Ldap instead
warning 322 Equals sign not aligned correctly; expected 1 space but found 11 spaces
warning 327 Equals sign not aligned correctly; expected 1 space but found 11 spaces
warning 332 Equals sign not aligned correctly; expected 1 space but found 11 spaces
warning 338 Line exceeds 85 characters; contains 117 characters
warning 338 Equals sign not aligned correctly; expected 1 space but found 10 spaces
warning 343 Equals sign not aligned correctly; expected 1 space but found 9 spaces
warning 349 Equals sign not aligned correctly; expected 1 space but found 7 spaces
warning 355 Equals sign not aligned correctly; expected 1 space but found 7 spaces
warning 367 Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
warning 368 Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
warning 369 Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
warning 378 Line exceeds 85 characters; contains 86 characters
warning 391 Line exceeds 85 characters; contains 86 characters
warning 399 Line exceeds 85 characters; contains 104 characters
error 402 Last parameter comment requires a blank newline after it
error 402 The variable names for parameters $dsninfo (1) and $persistent (2) do not align
error 402 The comments for parameters $dsninfo (1) and $persistent (2) do not align
warning 403 Line exceeds 85 characters; contains 87 characters
warning 407 Inline control structures are discouraged
warning 462 Equals sign not aligned with surrounding assignments; expected 14 spaces but found 1 space
warning 476 Line exceeds 85 characters; contains 91 characters
warning 477 Line exceeds 85 characters; contains 101 characters
error 477 Last parameter comment requires a blank newline after it
error 477 The variable names for parameters $action (2) and $params (3) do not align
warning 489 Equals sign not aligned with surrounding assignments; expected 11 spaces but found 1 space
warning 490 Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
warning 491 Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
warning 492 Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
warning 493 Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
warning 494 Equals sign not aligned with surrounding assignments; expected 10 spaces but found 1 space
warning 495 Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
error 499 Closing brace must be on a line by itself
warning 501 Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
warning 503 Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
warning 504 Line exceeds 85 characters; contains 105 characters
error 504 Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
warning 505 Equals sign not aligned with surrounding assignments; expected 11 spaces but found 1 space
warning 507 Inline control structures are discouraged
warning 508 Line exceeds 85 characters; contains 131 characters
warning 509 Inline control structures are discouraged
warning 510 Line exceeds 85 characters; contains 129 characters
warning 511 Inline control structures are discouraged
warning 512 Line exceeds 85 characters; contains 129 characters
warning 513 Inline control structures are discouraged
error 519 Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
warning 521 Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
warning 527 Equals sign not aligned with surrounding assignments; expected 4 spaces but found 6 spaces
warning 528 Equals sign not aligned with surrounding assignments; expected 8 spaces but found 10 spaces
warning 529 Equals sign not aligned with surrounding assignments; expected 7 spaces but found 9 spaces
warning 530 Equals sign not aligned with surrounding assignments; expected 4 spaces but found 6 spaces
warning 531 Equals sign not aligned with surrounding assignments; expected 1 space but found 3 spaces
error 534 Closing brace must be on a line by itself
warning 537 Inline control structures are discouraged
warning 539 Inline control structures are discouraged
warning 541 Inline control structures are discouraged
warning 543 Inline control structures are discouraged
warning 545 Inline control structures are discouraged
warning 547 Inline control structures are discouraged
warning 549 Inline control structures are discouraged
warning 551 Inline control structures are discouraged
warning 552 Line exceeds 85 characters; contains 103 characters
warning 553 Inline control structures are discouraged
error 567 The variable names for parameters $stmt (1) and $data (2) do not align
warning 568 Line exceeds 85 characters; contains 91 characters
error 568 The variable names for parameters $data (2) and $action (3) do not align
error 568 The comments for parameters $data (2) and $action (3) do not align
warning 569 Line exceeds 85 characters; contains 101 characters
error 569 Last parameter comment requires a blank newline after it
error 569 The variable names for parameters $action (3) and $params (4) do not align
warning 576 Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
error 593 The variable names for parameters $stmt (1) and $data (2) do not align
error 593 Doc comment var "$data" does not match actual variable name "&$data" at position 2
warning 594 Line exceeds 85 characters; contains 91 characters
error 594 The variable names for parameters $data (2) and $action (3) do not align
error 594 The comments for parameters $data (2) and $action (3) do not align
warning 595 Line exceeds 85 characters; contains 101 characters
error 595 Last parameter comment requires a blank newline after it
error 595 The variable names for parameters $action (3) and $params (4) do not align
error 610 The variable names for parameters $query (1) and $data (2) do not align
error 610 The comments for parameters $query (1) and $data (2) do not align
warning 611 Line exceeds 85 characters; contains 91 characters
error 611 The variable names for parameters $data (2) and $action (3) do not align
error 611 The comments for parameters $data (2) and $action (3) do not align
warning 612 Line exceeds 85 characters; contains 101 characters
error 612 Last parameter comment requires a blank newline after it
error 612 The variable names for parameters $action (3) and $params (4) do not align
warning 638 Line exceeds 85 characters; contains 93 characters
error 641 The variable names for parameters $query (1) and $from (2) do not align
error 641 The comments for parameters $query (1) and $from (2) do not align
error 642 Last parameter comment requires a blank newline after it
error 642 The comments for parameters $from (2) and $count (3) do not align
warning 647 Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
error 659 The variable names for parameters $query (1) and $from (2) do not align
error 659 The comments for parameters $query (1) and $from (2) do not align
error 660 The comments for parameters $from (2) and $count (3) do not align
warning 661 Line exceeds 85 characters; contains 91 characters
error 661 The variable names for parameters $count (3) and $action (4) do not align
error 661 The comments for parameters $count (3) and $action (4) do not align
warning 662 Line exceeds 85 characters; contains 101 characters
error 662 Last parameter comment requires a blank newline after it
error 662 The variable names for parameters $action (4) and $params (5) do not align
warning 667 Equals sign not aligned with surrounding assignments; expected 10 spaces but found 1 space
error 678 Doc comment var "the" does not match actual variable name "$query" at position 1
error 679 The variable names for parameters the (1) and if (2) do not align
error 679 The comments for parameters the (1) and if (2) do not align
error 679 Doc comment var "if" does not match actual variable name "$data" at position 2
warning 681 Line exceeds 85 characters; contains 91 characters
error 681 The variable names for parameters if (2) and $action (3) do not align
error 681 The comments for parameters if (2) and $action (3) do not align
warning 682 Line exceeds 85 characters; contains 101 characters
error 682 Last parameter comment requires a blank newline after it
error 682 The variable names for parameters $action (3) and $params (4) do not align
error 698 Doc comment var "the" does not match actual variable name "$query" at position 1
error 699 The variable names for parameters the (1) and the (2) do not align
error 699 Doc comment var "the" does not match actual variable name "$data" at position 2
error 700 The variable names for parameters the (2) and array (3) do not align
error 700 The comments for parameters the (2) and array (3) do not align
error 700 Doc comment var "array" does not match actual variable name "$fetchmode" at position 3
warning 702 Line exceeds 85 characters; contains 91 characters
error 702 The variable names for parameters array (3) and $action (4) do not align
error 702 The comments for parameters array (3) and $action (4) do not align
warning 703 Line exceeds 85 characters; contains 101 characters
error 703 Last parameter comment requires a blank newline after it
error 703 The variable names for parameters $action (4) and $params (5) do not align
error 724 Doc comment var "the" does not match actual variable name "$query" at position 1
error 725 The variable names for parameters the (1) and which (2) do not align
error 725 The comments for parameters the (1) and which (2) do not align
error 725 Doc comment var "which" does not match actual variable name "$col" at position 2
error 727 The variable names for parameters which (2) and array (3) do not align
error 727 Doc comment var "array" does not match actual variable name "$data" at position 3
warning 729 Line exceeds 85 characters; contains 91 characters
error 729 The variable names for parameters array (3) and $action (4) do not align
error 729 The comments for parameters array (3) and $action (4) do not align
warning 730 Line exceeds 85 characters; contains 101 characters
error 730 Last parameter comment requires a blank newline after it
error 730 The variable names for parameters $action (4) and $params (5) do not align
warning 737 Line exceeds 85 characters; contains 90 characters
error 747 Doc comment var "the" does not match actual variable name "$query" at position 1
error 748 The variable names for parameters the (1) and (optional) (2) do not align
error 748 The comments for parameters the (1) and (optional) (2) do not align
error 748 Doc comment var "(optional)" does not match actual variable name "$force_array" at position 2
error 752 The variable names for parameters (optional) (2) and $data (3) do not align
error 752 The comments for parameters (optional) (2) and $data (3) do not align
error 754 The variable names for parameters $data (3) and the (4) do not align
error 754 The comments for parameters $data (3) and the (4) do not align
error 754 Doc comment var "the" does not match actual variable name "$fetchmode" at position 4
error 755 The variable names for parameters the (4) and $group (5) do not align
error 755 The comments for parameters the (4) and $group (5) do not align
warning 756 Line exceeds 85 characters; contains 91 characters
error 756 The variable names for parameters $group (5) and $action (6) do not align
error 756 The comments for parameters $group (5) and $action (6) do not align
warning 757 Line exceeds 85 characters; contains 101 characters
error 757 Last parameter comment requires a blank newline after it
error 757 The variable names for parameters $action (6) and $params (7) do not align
warning 770 Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
error 777 Doc comment var "the" does not match actual variable name "$query" at position 1
error 778 The variable names for parameters the (1) and $data (2) do not align
error 778 The comments for parameters the (1) and $data (2) do not align
error 780 The variable names for parameters $data (2) and the (3) do not align
error 780 The comments for parameters $data (2) and the (3) do not align
error 780 Doc comment var "the" does not match actual variable name "$fetchmode" at position 3
warning 781 Line exceeds 85 characters; contains 91 characters
error 781 The variable names for parameters the (3) and $action (4) do not align
error 781 The comments for parameters the (3) and $action (4) do not align
warning 782 Line exceeds 85 characters; contains 101 characters
error 782 Last parameter comment requires a blank newline after it
error 782 The variable names for parameters $action (4) and $params (5) do not align
warning 794 Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
error 798 Missing function doc comment
error 803 Missing function doc comment
error 808 Missing function doc comment
error 813 Missing function doc comment
error 818 Missing function doc comment
error 823 Missing function doc comment
warning 825 Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
warning 826 Equals sign not aligned with surrounding assignments; expected 5 spaces but found 3 spaces
warning 827 Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
warning 829 Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
error 834 You must use "/**" style comments for a function comment
error 840 Missing function doc comment
warning 842 Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
error 847 Missing function doc comment
warning 852 Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
error 867 Parameters must appear immediately after the comment
error 868 Last parameter comment requires a blank newline after it
error 868 The variable names for parameters $seq_name (1) and $ondemand (2) do not align
error 885 Line indented incorrectly; expected at least 20 spaces, found 16
warning 887 Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
warning 899 Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
error 948 Last parameter comment requires a blank newline after it
error 960 Constants must be uppercase; expected DN but found dn
error 961 Constants must be uppercase; expected OBJECTCLASS but found objectclass
error 962 Constants must be uppercase; expected SN but found sn
error 963 Constants must be uppercase; expected CN but found cn
error 964 Constants must be uppercase; expected UID but found uid
error 977 Last parameter comment requires a blank newline after it
error 985 Constants must be uppercase; expected DN but found dn
error 995 You must use "/**" style comments for a function comment
error 1004 Space before closing parenthesis of function call prohibited
warning 1005 Line exceeds 85 characters; contains 96 characters
Sum 155 errors and 117 warnings