Coding Standards Report for XML_sql2xml

Type Line Message
Package 259 errors and 73 warnings
/data/pear/pear/XML_sql2xml/sql2xml.php
error 7 @category tag comment indented incorrectly. Expected 2 spaces but found 3.
error 8 Package name "XML_sql2xml" is not valid; consider "XML_Sql2xml" instead
error 8 @package tag comment indented incorrectly. Expected 3 spaces but found 4.
error 9 @author tag comment indented incorrectly. Expected 4 spaces but found 5.
error 10 @copyright tag comment indented incorrectly. Expected 1 spaces but found 2.
error 11 @license tag comment indented incorrectly. Expected 3 spaces but found 4.
error 12 @version tag comment indented incorrectly. Expected 3 spaces but found 4.
error 13 @link tag comment indented incorrectly. Expected 6 spaces but found 7.
error 46 The @author tag is in the wrong order; the tag follows @subpackage (if used) or @package
error 46 @author tag comment indented incorrectly. Expected 2 spaces but found 3.
warning 47 Invalid version "$Id: sql2xml.php,v 1.17 2008/03/24 15:51:51 dufuz Exp $" in doc comment; consider "Release: " instead
error 47 The @version tag is in the wrong order; the tag follows @licence
error 47 @version tag comment indented incorrectly. Expected 1 spaces but found 2.
error 48 @package tag comment indented incorrectly. Expected 1 spaces but found 2.
error 49 Missing @category tag in class comment
error 49 Missing @license tag in class comment
error 49 Missing @link tag in class comment
error 50 Class name is not valid; consider XML_Sql2xml instead
error 63 TRUE, FALSE and NULL must be lowercase; expected "true" but found "True"
error 86 TRUE, FALSE and NULL must be lowercase; expected "null" but found "Null"
warning 93 Line exceeds 85 characters; contains 86 characters
warning 156 Equals sign not aligned correctly; expected 1 space but found 2 spaces
error 180 Expected 1 space before variable type
error 181 Last parameter comment requires a blank newline after it
error 181 Expected 1 space before variable type
error 181 The variable names for parameters $dsn (1) and $root (2) do not align
error 181 The comments for parameters $dsn (1) and $root (2) do not align
error 181 Expected 1 space after the longest variable name
error 184 TRUE, FALSE and NULL must be lowercase; expected "null" but found "Null"
warning 191 Line exceeds 85 characters; contains 116 characters
error 192 No space found after comma in function call
warning 196 Line exceeds 85 characters; contains 114 characters
error 197 No space found after comma in function call
error 224 Expected 1 space before variable type
error 224 Doc comment var "sql-string," does not match actual variable name "$resultset" at position 1
error 225 Last parameter comment requires a blank newline after it
error 225 Expected 1 space before variable type
error 225 The variable names for parameters sql-string, (1) and additional (2) do not align
error 225 The comments for parameters sql-string, (1) and additional (2) do not align
error 225 Doc comment var "additional" does not match actual variable name "$params" at position 2
error 228 Missing @return tag in function comment
error 233 No space found after comma in function call
error 234 No space found after comma in function call
error 235 Space found before comma in function call
error 235 Expected 1 space after comma in function call; 2 found
error 254 Expected 1 space before variable type
error 254 Doc comment var "filename" does not match actual variable name "$file" at position 1
error 254 Missing comment for param "filename" at position 1
warning 255 Line exceeds 85 characters; contains 193 characters
error 255 Last parameter comment requires a blank newline after it
error 255 Expected 1 space before variable type
error 255 The variable names for parameters filename (1) and xpath (2) do not align
error 255 The comments for parameters filename (1) and xpath (2) do not align
error 255 Doc comment var "xpath" does not match actual variable name "$xpath" at position 2
error 255 Expected 1 space after the longest variable name
error 258 Missing @return tag in function comment
error 270 Expected 1 space before variable type
error 270 Doc comment var "xml" does not match actual variable name "$string" at position 1
error 270 Missing comment for param "xml" at position 1
warning 271 Line exceeds 85 characters; contains 193 characters
error 271 Last parameter comment requires a blank newline after it
error 271 Expected 1 space before variable type
error 271 The variable names for parameters xml (1) and xpath (2) do not align
error 271 The comments for parameters xml (1) and xpath (2) do not align
error 271 Doc comment var "xpath" does not match actual variable name "$xpath" at position 2
error 271 Expected 1 space after the longest variable name
error 274 Missing @return tag in function comment
error 283 Last parameter comment requires a blank newline after it
error 283 Expected 1 space before variable type
error 283 Doc comment var "db_result" does not match actual variable name "$result" at position 1
error 286 Missing @return tag in function comment
error 296 Last parameter comment requires a blank newline after it
error 296 Expected 1 space before variable type
error 296 Doc comment var "sql" does not match actual variable name "$sql" at position 1
error 299 Missing @return tag in function comment
warning 302 Line exceeds 85 characters; contains 94 characters
error 306 Space before opening parenthesis of function call prohibited
error 306 No space found after comma in function call
error 306 No space found after comma in function call
error 308 No space found after comma in function call
warning 308 Line exceeds 85 characters; contains 105 characters
error 317 No space found after comma in function call
error 328 Last parameter comment requires a blank newline after it
error 328 Expected 1 space before variable type
error 328 Doc comment var "multidimensional" does not match actual variable name "$array" at position 1
error 328 Doc comment for "$prefix" missing
error 331 Missing @return tag in function comment
error 347 Expected 1 space before variable type
error 347 Doc comment var "multidimensional" does not match actual variable name "$array" at position 1
error 348 Last parameter comment requires a blank newline after it
error 348 Expected 1 space before variable type
error 348 The variable names for parameters multidimensional (1) and string (2) do not align
error 348 The comments for parameters multidimensional (1) and string (2) do not align
error 348 Doc comment var "string" does not match actual variable name "$prefix" at position 2
error 351 Missing @return tag in function comment
error 359 Expected "foreach (...) {\n"; found "foreach(...) {\n"
error 381 Last parameter comment requires a blank newline after it
error 381 Expected 1 space before variable type
error 381 Expected 1 space after the longest type
error 398 Last parameter comment requires a blank newline after it
error 398 Expected 1 space before variable type
error 405 Space before opening parenthesis of function call prohibited
error 412 Last parameter comment requires a blank newline after it
error 412 Expected 1 space before variable type
error 412 Doc comment var "db_result" does not match actual variable name "$result" at position 1
error 412 Missing comment for param "db_result" at position 1
error 412 There must be exactly one blank line before the tags in function comment
error 415 Missing @return tag in function comment
warning 424 Line exceeds 85 characters; contains 101 characters
warning 430 Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
warning 431 Equals sign not aligned with surrounding assignments; expected 10 spaces but found 1 space
warning 433 Equals sign not aligned with surrounding assignments; expected 12 spaces but found 1 space
warning 436 Equals sign not aligned with surrounding assignments; expected 1 space but found 0 spaces
warning 437 Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
warning 438 Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
warning 441 Equals sign not aligned with surrounding assignments; expected 7 spaces but found 2 spaces
warning 448 Equals sign not aligned with surrounding assignments; expected 21 spaces but found 1 space
warning 453 Line exceeds 85 characters; contains 157 characters
error 454 Space before opening parenthesis of function call prohibited
warning 454 Line exceeds 85 characters; contains 92 characters
warning 455 Equals sign not aligned with surrounding assignments; expected 11 spaces but found 1 space
warning 463 Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
warning 465 Equals sign not aligned with surrounding assignments; expected 32 spaces but found 1 space
warning 469 Line exceeds 85 characters; contains 94 characters
error 477 No space found after comma in function call
warning 477 Line exceeds 85 characters; contains 86 characters
warning 486 Line exceeds 85 characters; contains 162 characters
warning 487 Line exceeds 85 characters; contains 87 characters
warning 489 Line exceeds 85 characters; contains 173 characters
warning 491 Line exceeds 85 characters; contains 128 characters
warning 497 Line exceeds 85 characters; contains 99 characters
warning 497 Equals sign not aligned correctly; expected 1 space but found 0 spaces
warning 504 Line exceeds 85 characters; contains 117 characters
error 520 Expected 1 space before variable type
error 520 Doc comment var "[ UNKNOWN ]" does not match actual variable name "$array" at position 1
error 520 Missing parameter name at position 1
error 520 Missing comment for param "[ UNKNOWN ]" at position 1
error 521 Last parameter comment requires a blank newline after it
error 521 Expected 1 space before variable type
error 521 The variable names for parameters UNKNOWN (1) and domNode (2) do not align
error 521 The comments for parameters UNKNOWN (1) and domNode (2) do not align
error 521 Doc comment var "domNode" does not match actual variable name "$parent" at position 2
error 521 Missing comment for param "domNode" at position 2
error 524 Missing @return tag in function comment
error 525 Method name "XML_sql2xml::DoArray2Xml" is not in camel caps format
error 533 No space found after comma in function call
warning 533 Line exceeds 85 characters; contains 86 characters
error 539 No space found after comma in function call
error 539 No space found after comma in function call
warning 544 Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
error 548 No space found after comma in function call
error 560 Expected 1 space before variable type
error 560 Doc comment var "options" does not match actual variable name "$options" at position 1
error 560 Expected 1 space after the longest type
error 561 Last parameter comment requires a blank newline after it
error 561 Expected 1 space before variable type
error 561 The variable names for parameters options (1) and if (2) do not align
error 561 The comments for parameters options (1) and if (2) do not align
error 561 Doc comment var "if" does not match actual variable name "$delete" at position 2
error 564 Missing @return tag in function comment
error 570 Line indented incorrectly; expected 16 spaces, found 15
error 578 Closing brace indented incorrectly; expected 15 spaces, found 16
error 586 Extra newline found before function comment short description
error 587 Last parameter comment requires a blank newline after it
error 587 Expected 1 space before variable type
error 587 Doc comment var "[ UNKNOWN ]" does not match actual variable name "&$metadata" at position 1
error 587 Missing parameter name at position 1
error 587 Missing comment for param "[ UNKNOWN ]" at position 1
error 587 There must be exactly one blank line before the tags in function comment
error 604 Expected 1 space before variable type
error 604 Doc comment var "DomNode" does not match actual variable name "$parent_row" at position 1
error 605 Expected 1 space before variable type
error 605 The variable names for parameters DomNode (1) and $res (2) do not align
error 605 The comments for parameters DomNode (1) and $res (2) do not align
error 605 Missing comment for param "$res" at position 2
error 606 Expected 1 space before variable type
error 606 Missing comment for param "$key" at position 3
error 607 Last parameter comment requires a blank newline after it
error 607 Expected 1 space before variable type
error 607 The comments for parameters $key (3) and &metadata (4) do not align
error 607 Doc comment var "&metadata" does not match actual variable name "&$metadata" at position 4
error 607 Missing comment for param "&metadata" at position 4
error 619 Expected 1 space before variable type
error 619 Doc comment var "DomNode" does not match actual variable name "$parent" at position 1
error 620 Expected 1 space before variable type
error 620 The variable names for parameters DomNode (1) and $res (2) do not align
error 620 The comments for parameters DomNode (1) and $res (2) do not align
error 620 Missing comment for param "$res" at position 2
error 621 Expected 1 space before variable type
error 621 Missing comment for param "$key" at position 3
error 622 Expected 1 space before variable type
error 622 The comments for parameters $key (3) and &$metadata (4) do not align
error 622 Missing comment for param "&$metadata" at position 4
error 623 Last parameter comment requires a blank newline after it
error 623 Expected 1 space before variable type
error 623 The comments for parameters &$metadata (4) and &$subrow (5) do not align
error 623 Missing comment for param "&$subrow" at position 5
warning 629 Line exceeds 85 characters; contains 91 characters
error 635 Expected 1 space before variable type
error 635 Missing comment for param "$key" at position 1
error 636 Expected 1 space before variable type
error 636 The comments for parameters $key (1) and $value (2) do not align
error 636 Missing comment for param "$value" at position 2
error 637 Last parameter comment requires a blank newline after it
error 637 Expected 1 space before variable type
error 637 The comments for parameters $value (2) and &$metadata (3) do not align
error 637 Missing comment for param "&$metadata" at position 3
error 639 Missing @return tag in function comment
warning 650 Line exceeds 85 characters; contains 89 characters
error 653 Last parameter comment requires a blank newline after it
error 653 Expected 1 space before variable type
error 653 Doc comment var "text" does not match actual variable name "$text" at position 1
error 655 Missing @return tag in function comment
error 656 Method name "XML_sql2xml::xml_encode" is not in camel caps format
error 658 No space found after comma in function call
error 658 No space found after comma in function call
error 658 No space found after comma in function call
error 658 No space found after comma in function call
warning 659 Line exceeds 85 characters; contains 99 characters
warning 670 Line exceeds 85 characters; contains 105 characters
warning 680 Line exceeds 85 characters; contains 102 characters
warning 682 Line exceeds 85 characters; contains 97 characters
warning 683 Line exceeds 85 characters; contains 95 characters
warning 684 Line exceeds 85 characters; contains 86 characters
error 689 Extra newline found before function comment short description
error 690 Expected 1 space before variable type
error 690 Doc comment var "first" does not match actual variable name "$a1" at position 1
error 690 There must be exactly one blank line before the tags in function comment
error 691 Last parameter comment requires a blank newline after it
error 691 Expected 1 space before variable type
error 691 The comments for parameters first (1) and second (2) do not align
error 691 Doc comment var "second" does not match actual variable name "$a2" at position 2
error 695 Method name "XML_sql2xml::array_merge_clobber" is not in camel caps format
warning 714 Line exceeds 85 characters; contains 97 characters
warning 715 Line exceeds 85 characters; contains 94 characters
error 717 Expected 1 space before variable type
error 717 Doc comment var "xml" does not match actual variable name "$string" at position 1
warning 718 Line exceeds 85 characters; contains 87 characters
error 718 Last parameter comment requires a blank newline after it
error 718 Expected 1 space before variable type
error 718 The variable names for parameters xml (1) and xpath (2) do not align
error 718 The comments for parameters xml (1) and xpath (2) do not align
error 718 Doc comment var "xpath" does not match actual variable name "$xpath" at position 2
error 722 Missing @return tag in function comment
error 726 No space found after comma in function call
error 726 No space found after comma in function call
warning 726 Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
error 728 No space found after comma in function call
error 728 No space found after comma in function call
warning 728 Line exceeds 85 characters; contains 179 characters
error 729 No space found after comma in function call
error 729 No space found after comma in function call
warning 729 Line exceeds 85 characters; contains 149 characters
error 737 Expected 1 space before variable type
error 737 There must be exactly one blank line before the tags in function comment
error 738 Last parameter comment requires a blank newline after it
error 738 Expected 1 space before variable type
error 738 The comments for parameters $encoding_from (1) and $encoding_to (2) do not align
error 740 Missing @return tag in function comment
error 748 Last parameter comment requires a blank newline after it
error 748 There must be exactly one blank line before the tags in function comment
error 750 Missing @return tag in function comment
error 751 Method name "XML_sql2xml::SetParentTables" is not in camel caps format
error 762 Last parameter comment requires a blank newline after it
error 762 Expected 1 space before variable type
warning 782 Line exceeds 85 characters; contains 96 characters
error 784 Last parameter comment requires a blank newline after it
error 784 Expected 1 space before variable type
error 784 Doc comment var "xpath" does not match actual variable name "$expr" at position 1
warning 795 Equals sign not aligned with surrounding assignments; expected 24 spaces but found 1 space
Sum 220 errors and 50 warnings
/data/pear/pear/XML_sql2xml/sql2xml_ext.php
error 7 @category tag comment indented incorrectly. Expected 2 spaces but found 3.
error 8 Package name "XML_sql2xml" is not valid; consider "XML_Sql2xml" instead
error 8 @package tag comment indented incorrectly. Expected 3 spaces but found 4.
error 9 @author tag comment indented incorrectly. Expected 4 spaces but found 5.
error 10 @copyright tag comment indented incorrectly. Expected 1 spaces but found 2.
error 11 @license tag comment indented incorrectly. Expected 3 spaces but found 4.
error 12 @version tag comment indented incorrectly. Expected 3 spaces but found 4.
error 13 @link tag comment indented incorrectly. Expected 6 spaces but found 7.
error 35 @author tag comment indented incorrectly. Expected 2 spaces but found 3.
warning 36 Invalid version "$Id: sql2xml_ext.php,v 1.11 2008/03/24 15:51:51 dufuz Exp $" in doc comment; consider "Release: " instead
error 36 @version tag comment indented incorrectly. Expected 1 spaces but found 2.
error 38 Missing @category tag in class comment
error 38 Missing @package tag in class comment
error 38 Missing @license tag in class comment
error 38 Missing @link tag in class comment
error 39 Class name is not valid; consider XML_Sql2xml_Ext instead
error 55 Expected 1 space before variable type
error 55 Doc comment var "with" does not match actual variable name "$dsn" at position 1
error 56 Last parameter comment requires a blank newline after it
error 56 Expected 1 space before variable type
error 56 The comments for parameters with (1) and of (2) do not align
error 56 Doc comment var "of" does not match actual variable name "$root" at position 2
error 62 No space found after comma in function call
error 75 Line indented incorrectly; expected at least 8 spaces, found 7
error 78 Line indented incorrectly; expected at least 4 spaces, found 3
error 84 You must use "/**" style comments for a function comment
warning 90 Line exceeds 85 characters; contains 145 characters
warning 99 Line exceeds 85 characters; contains 92 characters
warning 100 Line exceeds 85 characters; contains 114 characters
warning 106 Line exceeds 85 characters; contains 105 characters
error 106 Line indented incorrectly; expected at least 12 spaces, found 8
error 109 Line indented incorrectly; expected 12 spaces, found 8
warning 109 Line exceeds 85 characters; contains 99 characters
warning 110 Line exceeds 85 characters; contains 128 characters
warning 111 Line exceeds 85 characters; contains 186 characters
warning 113 Line exceeds 85 characters; contains 124 characters
error 116 TRUE, FALSE and NULL must be lowercase; expected "true" but found "True"
error 117 Closing brace indented incorrectly; expected 8 spaces, found 12
warning 118 Line exceeds 85 characters; contains 140 characters
warning 121 Line exceeds 85 characters; contains 119 characters
error 128 You must use "/**" style comments for a function comment
error 148 Missing function doc comment
warning 150 Line exceeds 85 characters; contains 131 characters
error 151 No space found after comma in function call
warning 151 Line exceeds 85 characters; contains 105 characters
warning 151 Equals sign not aligned correctly; expected 1 space but found 0 spaces
error 152 Expected "} elseif (...) {\n"; found "} elseif (...) {\n"
error 153 Line indented incorrectly; expected at least 12 spaces, found 11
warning 158 Line exceeds 85 characters; contains 161 characters
warning 169 Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
warning 171 Line exceeds 85 characters; contains 99 characters
warning 174 Line exceeds 85 characters; contains 104 characters
warning 176 Line exceeds 85 characters; contains 98 characters
error 180 You must use "/**" style comments for a function comment
warning 182 Line exceeds 85 characters; contains 111 characters
warning 183 Equals sign not aligned correctly; expected 1 space but found 0 spaces
warning 187 Line exceeds 85 characters; contains 94 characters
warning 191 Line exceeds 85 characters; contains 90 characters
error 192 You must use "/**" style comments for a function comment
error 192 Method name "XML_sql2xml_ext::SetAttribute" is not in camel caps format
error 201 Missing function doc comment
error 201 Method name "XML_sql2xml_ext::SetResultRootTag" is not in camel caps format
Sum 39 errors and 23 warnings