Coding Standards Report for XML_Tree

Type Line Message
Package 192 errors and 50 warnings
/data/pear/pear/XML_Tree/Tree/Node.php
error 2 You must use "/**" style comments for a file comment
error 32 Opening brace of a class must be on the line after the definition
error 32 Missing class doc comment
error 94 Expected 1 space before variable type
error 94 Doc comment var "name" does not match actual variable name "$name" at position 1
error 94 Expected 1 space after the longest type
error 95 Expected 1 space before variable type
error 95 Doc comment var "content" does not match actual variable name "$content" at position 2
error 96 Expected 1 space before variable type
error 96 Doc comment var "attributes" does not match actual variable name "$attributes" at position 3
error 96 Expected 1 space after the longest variable name
error 96 Doc comment for "$lineno" missing
error 96 Doc comment for "$use_cdata_section" missing
warning 99 Line exceeds 85 characters; contains 114 characters
error 128 Doc comment var "child" does not match actual variable name "$child" at position 1
error 130 Doc comment var "content" does not match actual variable name "$content" at position 2
error 130 Expected 1 space after the longest type
error 132 Doc comment var "attributes" does not match actual variable name "$attributes" at position 3
error 132 Expected 1 space after the longest variable name
error 132 Doc comment for "$lineno" missing
error 132 Doc comment for "$use_cdata_section" missing
warning 138 Line exceeds 85 characters; contains 111 characters
warning 151 Line exceeds 85 characters; contains 98 characters
error 172 No space found after comma in function call
error 172 No space found after comma in function call
warning 174 Equals sign not aligned correctly; expected 1 space but found 0 spaces
error 175 Expected "for (...) {\n"; found "for(...) {\n"
warning 176 Equals sign not aligned correctly; expected 1 space but found 0 spaces
warning 193 Line exceeds 85 characters; contains 90 characters
error 193 Doc comment var "path" does not match actual variable name "$path" at position 1
warning 194 Line exceeds 85 characters; contains 86 characters
error 196 Doc comment var "pos" does not match actual variable name "$pos" at position 2
error 196 Expected 1 space after the longest type
error 199 Doc comment var "child" does not match actual variable name "&$child" at position 3
error 201 Doc comment var "content" does not match actual variable name "$content" at position 4
error 203 Doc comment var "attributes" does not match actual variable name "$attributes" at position 5
error 203 Expected 1 space after the longest variable name
warning 205 Line exceeds 85 characters; contains 88 characters
error 209 No space found after comma in function call
error 209 No space found after comma in function call
error 225 Line indented incorrectly; expected at least 12 spaces, found 8
error 226 Line indented incorrectly; expected 12 spaces, found 8
error 227 Line indented incorrectly; expected at least 16 spaces, found 12
error 228 Line indented incorrectly; expected 16 spaces, found 12
error 229 Line indented incorrectly; expected at least 20 spaces, found 16
error 231 Line indented incorrectly; expected at least 16 spaces, found 12
error 232 Line indented incorrectly; expected at least 16 spaces, found 12
error 233 Line indented incorrectly; expected 12 spaces, found 8
warning 233 Line exceeds 85 characters; contains 87 characters
error 234 Line indented incorrectly; expected at least 16 spaces, found 12
error 235 Line indented incorrectly; expected 16 spaces, found 12
error 236 Line indented incorrectly; expected at least 20 spaces, found 16
error 238 Line indented incorrectly; expected at least 16 spaces, found 12
error 239 Line indented incorrectly; expected 12 spaces, found 8
error 240 Line indented incorrectly; expected at least 16 spaces, found 12
warning 240 Line exceeds 85 characters; contains 87 characters
error 243 Line indented incorrectly; expected at least 12 spaces, found 8
error 244 Line indented incorrectly; expected 12 spaces, found 8
error 245 Line indented incorrectly; expected at least 16 spaces, found 12
error 247 Line indented incorrectly; expected at least 12 spaces, found 8
error 255 Expected 1 space before variable type
error 255 Doc comment var "pos" does not match actual variable name "$pos" at position 1
error 255 Expected 1 space after the longest type
error 255 Expected 1 space after the longest variable name
warning 269 Line exceeds 85 characters; contains 87 characters
error 276 Expected 1 space before variable type
error 276 Expected 1 space after the longest type
error 277 Expected 1 space before variable type
error 280 Missing @return tag in function comment
error 282 Opening brace should be on a new line
error 286 Doc comment for "$use_cdata_section" missing
warning 296 Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
warning 321 Line exceeds 85 characters; contains 86 characters
warning 322 Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
warning 326 Line exceeds 85 characters; contains 125 characters
error 330 Closing brace indented incorrectly; expected 16 spaces, found 20
error 330 Line indented incorrectly; expected 16 spaces, found 20
error 334 Closing brace indented incorrectly; expected 20 spaces, found 16
warning 353 Line exceeds 85 characters; contains 121 characters
error 370 Expected 1 space before variable type
error 370 Expected 1 space after the longest type
error 370 Expected 1 space after the longest variable name
error 387 Expected 1 space before variable type
error 387 Doc comment var "name" does not match actual variable name "$name" at position 1
error 387 Expected 1 space after the longest type
error 388 Expected 1 space before variable type
error 388 Doc comment var "value" does not match actual variable name "$value" at position 2
error 388 Expected 1 space after the longest variable name
error 391 Missing @return tag in function comment
error 401 Expected 1 space before variable type
error 401 Expected 1 space after the longest type
error 401 Expected 1 space after the longest variable name
error 404 Missing @return tag in function comment
error 416 Expected 1 space before variable type
error 416 Doc comment var "content" does not match actual variable name "$content" at position 1
error 416 Expected 1 space after the longest type
error 416 Expected 1 space after the longest variable name
error 416 Doc comment for "$use_cdata_section" missing
error 419 Missing @return tag in function comment
error 435 Expected 1 space before variable type
error 435 Doc comment var "path" does not match actual variable name "$path" at position 1
error 435 Expected 1 space after the longest type
error 435 Expected 1 space after the longest variable name
warning 454 Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
warning 468 Line exceeds 85 characters; contains 86 characters
error 468 Expected 1 space before variable type
error 468 Doc comment var "path" does not match actual variable name "$path" at position 1
error 468 Expected 1 space after the longest type
error 468 Expected 1 space after the longest variable name
warning 482 Inline control structures are discouraged
warning 490 Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
error 514 Expected 1 space before variable type
error 514 Doc comment var "xml" does not match actual variable name "$xml" at position 1
error 514 Expected 1 space after the longest type
error 514 Expected 1 space after the longest variable name
error 533 Space before closing parenthesis of function call prohibited
warning 538 Line exceeds 85 characters; contains 105 characters
error 546 Space before closing parenthesis of function call prohibited
error 554 Expected 1 space before variable type
error 554 Doc comment var "xml" does not match actual variable name "$xml" at position 1
error 554 Expected 1 space after the longest type
error 554 Expected 1 space after the longest variable name
warning 569 Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
error 581 Missing @return tag in function comment
error 583 Opening brace should be on a new line
Sum 103 errors and 22 warnings
/data/pear/pear/XML_Tree/Tree.php
error 2 You must use "/**" style comments for a file comment
error 45 The @author tag is in the wrong order; the tag follows @subpackage (if used) or @package
warning 47 Invalid version "$Version$ - 1.0" in doc comment; consider "Release: " instead
error 48 Missing @category tag in class comment
error 48 Missing @license tag in class comment
error 48 Missing @link tag in class comment
error 56 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 77 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 97 Expected 1 space before variable type
error 97 Doc comment var "filename" does not match actual variable name "$filename" at position 1
error 97 Expected 1 space after the longest type
error 97 Expected 1 space after the longest variable name
error 98 Expected 1 space before variable type
error 98 Doc comment var "version" does not match actual variable name "$version" at position 2
warning 120 Line exceeds 85 characters; contains 88 characters
error 135 Expected 1 space before variable type
error 135 Doc comment var "name" does not match actual variable name "$name" at position 1
error 135 Expected 1 space after the longest type
error 135 Expected 1 space after the longest variable name
error 135 Doc comment for "$content" missing
error 135 Doc comment for "$attributes" missing
error 135 Doc comment for "$lineno" missing
error 150 Doc comment var "path" does not match actual variable name "$path" at position 1
error 152 Doc comment var "pos" does not match actual variable name "$pos" at position 2
error 152 Expected 1 space after the longest type
error 155 Doc comment var "child" does not match actual variable name "$child" at position 3
error 157 Doc comment var "content" does not match actual variable name "$content" at position 4
error 159 Doc comment var "attributes" does not match actual variable name "$attributes" at position 5
error 159 Expected 1 space after the longest variable name
warning 161 Line exceeds 85 characters; contains 86 characters
error 175 Line indented incorrectly; expected at least 12 spaces, found 8
error 178 No space found after comma in function call
error 178 No space found after comma in function call
error 189 Doc comment var "path" does not match actual variable name "$path" at position 1
error 189 Expected 1 space after the longest variable name
error 191 Doc comment var "pos" does not match actual variable name "$pos" at position 2
error 191 Expected 1 space after the longest type
warning 195 Line exceeds 85 characters; contains 95 characters
warning 210 Equals sign not aligned correctly; expected 1 space but found 0 spaces
error 211 Expected "foreach (...) {\n"; found "foreach(...) {\n"
error 212 No space found after comma in function call
error 212 No space found after comma in function call
warning 229 Line exceeds 85 characters; contains 108 characters
error 229 Last parameter comment requires a blank newline after it
error 233 Space before opening parenthesis of function call prohibited
warning 242 Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
warning 252 Line exceeds 85 characters; contains 108 characters
error 252 Last parameter comment requires a blank newline after it
error 252 Doc comment var "$encoding" does not match actual variable name "$str" at position 1
error 252 Doc comment for "$encoding" missing
warning 258 Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
warning 262 Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
error 273 Doc comment var "xp" does not match actual variable name "$xp" at position 1
error 274 Doc comment var "elem" does not match actual variable name "$elem" at position 2
error 275 Doc comment var "attribs" does not match actual variable name "&$attribs" at position 3
error 275 Expected 1 space after the longest variable name
error 278 Missing @return tag in function comment
warning 285 Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
warning 289 Equals sign not aligned with surrounding assignments; expected 10 spaces but found 1 space
warning 290 Equals sign not aligned with surrounding assignments; expected 13 spaces but found 4 spaces
warning 291 Line exceeds 85 characters; contains 92 characters
warning 293 Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
error 304 Doc comment var "xp" does not match actual variable name "$xp" at position 1
error 305 Doc comment var "elem" does not match actual variable name "$elem" at position 2
error 305 Expected 1 space after the longest variable name
error 308 Missing @return tag in function comment
warning 315 Equals sign not aligned correctly; expected 1 space but found 3 spaces
error 346 Doc comment var "xp" does not match actual variable name "$xp" at position 1
error 347 Doc comment var "data" does not match actual variable name "$data" at position 2
error 347 Expected 1 space after the longest variable name
error 350 Missing @return tag in function comment
error 371 Expected "foreach (...) {\n"; found "foreach(...) {\n"
error 372 No space found after comma in function call
warning 373 Equals sign not aligned correctly; expected 1 space but found 0 spaces
error 382 Doc comment var "xmlHeader" does not match actual variable name "$xmlHeader" at position 1
error 382 Expected 1 space after the longest variable name
error 387 Missing @return tag in function comment
error 406 Expected "if (...) {\n"; found "if (...)\n {\n"
warning 408 Line exceeds 85 characters; contains 98 characters
warning 408 Inline control structures are discouraged
error 418 Last parameter comment requires a blank newline after it
error 418 Expected 1 space before variable type
error 418 Doc comment var "name" does not match actual variable name "$name" at position 1
error 418 Expected 1 space after the longest type
error 418 Expected 1 space after the longest variable name
error 423 Opening brace should be on a new line
error 427 Doc comment for "$node" missing
error 429 Missing @return tag in function comment
error 431 Opening brace should be on a new line
error 432 No space found after comma in function call
error 451 Last parameter comment requires a blank newline after it
error 451 Doc comment var "path" does not match actual variable name "$path" at position 1
error 451 Expected 1 space after the longest type
error 451 Expected 1 space after the longest variable name
warning 452 Line exceeds 85 characters; contains 88 characters
warning 453 Line exceeds 85 characters; contains 91 characters
error 462 Expected "if (...) {\n"; found "if (...){\n"
warning 465 Inline control structures are discouraged
warning 470 Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
error 486 Expected 1 space before variable type
error 486 Doc comment var "Tag" does not match actual variable name "$tagName" at position 1
error 486 Expected 1 space after the longest type
error 511 Last parameter comment requires a blank newline after it
error 511 The comments for parameters $tagName (1) and &$node (2) do not align
error 538 Last parameter comment requires a blank newline after it
error 538 Parameters must appear immediately after the comment
error 538 Doc comment for "$type" missing
error 542 Opening brace should be on a new line
warning 549 Line exceeds 85 characters; contains 142 characters
warning 552 Line exceeds 85 characters; contains 103 characters
warning 553 Line exceeds 85 characters; contains 174 characters
Sum 85 errors and 26 warnings
/data/pear/pear/XML_Tree/package.php
error 2 Missing file doc comment
warning 5 Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
warning 24 Line exceeds 85 characters; contains 117 characters
error 38 No space found after comma in function call
error 38 No space found after comma in function call
error 38 No space found after comma in function call
Sum 4 errors and 2 warnings