Coding Standards Report for Text_Statistics

Type Line Message
Package 57 errors and 5 warnings
/data/pear/pear/Text_Statistics/Text/Statistics.php
error 2 You must use "/**" style comments for a file comment
error 50 Missing @category tag in class comment
error 50 Missing @license tag in class comment
error 50 Missing @link tag in class comment
error 137 Last parameter comment requires a blank newline after it
error 137 Expected 1 space before variable type
error 137 Doc comment var "[ UNKNOWN ]" does not match actual variable name "$block" at position 1
error 137 Missing parameter name at position 1
error 137 Missing comment for param "[ UNKNOWN ]" at position 1
error 156 Opening brace should be on a new line
error 171 Opening brace should be on a new line
error 181 Missing @return tag in function comment
warning 186 Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
error 194 Expected "foreach (...) {\n"; found "foreach(...) {\n"
error 197 Expected "if (...) {\n"; found "if(...) {\n"
error 198 Expected "if (...) {\n"; found "if(...) {\n"
error 203 Expected "} else {\n"; found "}\n else {\n"
warning 213 Equals sign not aligned with surrounding assignments; expected 5 spaces but found 7 spaces
warning 214 Equals sign not aligned with surrounding assignments; expected 1 space but found 3 spaces
warning 221 Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
error 234 Last parameter comment requires a blank newline after it
error 234 Expected 1 space before variable type
error 234 Doc comment var "[ UNKNOWN ]" does not match actual variable name "$line" at position 1
error 234 Missing parameter name at position 1
error 234 Missing comment for param "[ UNKNOWN ]" at position 1
error 236 Missing @return tag in function comment
error 237 Method name "Text_Statistics::_analyze_line" is not in camel caps format
error 241 Expected "foreach (...) {\n"; found "foreach(...) {\n"
warning 242 Equals sign not aligned with surrounding assignments; expected 15 spaces but found 1 space
error 245 Expected "if (...) {\n"; found "if(...) {\n"
error 248 Line indented incorrectly; expected at least 16 spaces, found 15
Sum 26 errors and 5 warnings
/data/pear/pear/Text_Statistics/Text/Word.php
error 2 You must use "/**" style comments for a file comment
error 32 Missing @category tag in class comment
error 32 Missing @license tag in class comment
error 32 Missing @link tag in class comment
error 79 Last parameter comment requires a blank newline after it
error 79 Expected 1 space before variable type
error 79 Doc comment var "[ UNKNOWN ]" does not match actual variable name "$name" at position 1
error 79 Missing parameter name at position 1
error 79 Missing comment for param "[ UNKNOWN ]" at position 1
error 90 Last parameter comment requires a blank newline after it
error 90 Expected 1 space before variable type
error 90 Doc comment var "[ UNKNOWN ]" does not match actual variable name "$scratch" at position 1
error 90 Missing parameter name at position 1
error 90 Missing comment for param "[ UNKNOWN ]" at position 1
error 92 Missing @return tag in function comment
error 106 Last parameter comment requires a blank newline after it
error 106 Expected 1 space before variable type
error 106 Doc comment var "[ UNKNOWN ]" does not match actual variable name "$scratch" at position 1
error 106 Missing parameter name at position 1
error 106 Missing comment for param "[ UNKNOWN ]" at position 1
error 108 Missing @return tag in function comment
error 114 Expected "foreach (...) {\n"; found "foreach(...) {\n"
error 115 Expected "if (...) {\n"; found "if(...) {\n"
error 122 Expected "foreach (...) {\n"; found "foreach(...) {\n"
error 123 Expected "if (...) {\n"; found "if(...) {\n"
error 134 Missing @return tag in function comment
error 138 Expected "if (...) {\n"; found "if(...) {\n"
error 147 Expected "if (...) {\n"; found "if(...) {\n"
error 150 Expected "if (...) {\n"; found "if(...) {\n"
error 157 Expected "if (...) {\n"; found "if(...) {\n"
error 160 Expected "} else {\n"; found "}\n else {\n"
Sum 31 errors and 0 warnings