Coding Standards Report for Services_ExchangeRates

Type Line Message
Package 186 errors and 42 warnings
/data/pear/pear/Services_ExchangeRates/ExchangeRates/Common.php
error 2 You must use "/**" style comments for a file comment
error 40 Missing @category tag in class comment
error 40 Missing @author tag in class comment
error 40 Missing @license tag in class comment
error 40 Missing @link tag in class comment
error 41 Opening brace of a class must be on the line after the definition
error 43 Line indented incorrectly; expected at least 4 spaces, found 3
error 50 Doc comment var "URL" does not match actual variable name "$url" at position 1
error 51 Last parameter comment requires a blank newline after it
error 51 The variable names for parameters URL (1) and Length (2) do not align
error 51 The comments for parameters URL (1) and Length (2) do not align
error 51 Doc comment var "Length" does not match actual variable name "$cacheLength" at position 2
error 51 Doc comment for "$cacheDir" missing
error 55 Opening brace should be on a new line
warning 68 Line exceeds 85 characters; contains 90 characters
warning 74 Line exceeds 85 characters; contains 113 characters
warning 91 Line exceeds 85 characters; contains 141 characters
error 95 Line indented incorrectly; expected at least 4 spaces, found 3
error 98 Doc comment var "URL" does not match actual variable name "$url" at position 1
error 99 Last parameter comment requires a blank newline after it
error 99 The variable names for parameters URL (1) and Length (2) do not align
error 99 The comments for parameters URL (1) and Length (2) do not align
error 99 Doc comment var "Length" does not match actual variable name "$cacheLength" at position 2
error 99 Doc comment for "$cacheDir" missing
error 102 Opening brace should be on a new line
Sum 22 errors and 3 warnings
/data/pear/pear/Services_ExchangeRates/ExchangeRates/Countries_UN.php
error 2 You must use "/**" style comments for a file comment
warning 41 Line exceeds 85 characters; contains 90 characters
error 41 The @link tag is in the wrong order; the tag follows @version
error 41 @link tag comment indented incorrectly. Expected 4 spaces but found 1.
error 43 Missing @category tag in class comment
error 43 Missing @author tag in class comment
error 43 Missing @license tag in class comment
error 44 Opening brace of a class must be on the line after the definition
error 46 Line indented incorrectly; expected at least 4 spaces, found 3
warning 50 Line exceeds 85 characters; contains 103 characters
error 52 Line indented incorrectly; expected at least 4 spaces, found 3
error 56 Last parameter comment requires a blank newline after it
error 56 Doc comment var "Optionally" does not match actual variable name "$cacheLength" at position 1
error 56 Doc comment for "$cacheDir" missing
error 59 Opening brace should be on a new line
error 64 Expected "foreach (...) {\n"; found "foreach(...) {\n"
warning 68 Line exceeds 85 characters; contains 86 characters
Sum 14 errors and 3 warnings
/data/pear/pear/Services_ExchangeRates/ExchangeRates/Currencies_UN.php
error 2 You must use "/**" style comments for a file comment
error 44 The @link tag is in the wrong order; the tag follows @version
error 44 @link tag comment indented incorrectly. Expected 4 spaces but found 1.
warning 45 Line exceeds 85 characters; contains 91 characters
error 45 @link tag comment indented incorrectly. Expected 4 spaces but found 1.
error 47 Missing @category tag in class comment
error 47 Missing @author tag in class comment
error 47 Missing @license tag in class comment
error 48 Opening brace of a class must be on the line after the definition
error 50 Line indented incorrectly; expected at least 4 spaces, found 3
warning 54 Line exceeds 85 characters; contains 104 characters
error 56 Line indented incorrectly; expected at least 4 spaces, found 3
error 63 Line indented incorrectly; expected at least 4 spaces, found 3
warning 64 Line exceeds 85 characters; contains 88 characters
error 70 Last parameter comment requires a blank newline after it
error 70 Parameters must appear immediately after the comment
error 70 Doc comment var "Length" does not match actual variable name "$cacheLength" at position 1
error 70 Doc comment for "$cacheDir" missing
error 73 Opening brace should be on a new line
error 78 Expected "foreach (...) {\n"; found "foreach(...) {\n"
warning 82 Line exceeds 85 characters; contains 87 characters
Sum 17 errors and 4 warnings
/data/pear/pear/Services_ExchangeRates/ExchangeRates/Rates_ECB.php
error 2 You must use "/**" style comments for a file comment
error 49 Missing @category tag in class comment
error 49 Missing @author tag in class comment
error 49 Missing @license tag in class comment
error 49 Missing @link tag in class comment
error 50 Opening brace of a class must be on the line after the definition
error 51 Line indented incorrectly; expected at least 4 spaces, found 3
error 58 Line indented incorrectly; expected at least 4 spaces, found 3
warning 59 Line exceeds 85 characters; contains 88 characters
warning 65 Line exceeds 85 characters; contains 95 characters
error 70 Last parameter comment requires a blank newline after it
error 70 Parameters must appear immediately after the comment
error 70 Doc comment var "Length" does not match actual variable name "$cacheLength" at position 1
error 70 Doc comment for "$cacheDir" missing
error 73 Opening brace should be on a new line
error 93 Line indented incorrectly; expected at least 16 spaces, found 13
error 93 Spaces must be used to indent lines; tabs are not allowed
warning 93 Line exceeds 85 characters; contains 97 characters
Sum 15 errors and 3 warnings
/data/pear/pear/Services_ExchangeRates/ExchangeRates/Rates_NBI.php
error 2 You must use "/**" style comments for a file comment
error 43 Missing @category tag in class comment
error 43 Missing @author tag in class comment
error 43 Missing @license tag in class comment
error 43 Missing @link tag in class comment
error 44 Opening brace of a class must be on the line after the definition
error 46 Line indented incorrectly; expected at least 4 spaces, found 3
error 53 Line indented incorrectly; expected at least 4 spaces, found 3
warning 61 Line exceeds 85 characters; contains 95 characters
error 66 Last parameter comment requires a blank newline after it
error 66 Parameters must appear immediately after the comment
error 66 Doc comment var "Length" does not match actual variable name "$cacheLength" at position 1
error 66 Doc comment for "$cacheDir" missing
error 69 Opening brace should be on a new line
error 79 Spaces must be used to indent lines; tabs are not allowed
error 88 Spaces must be used to indent lines; tabs are not allowed
error 88 Line indented incorrectly; expected 12 spaces, found 9
error 89 Line indented incorrectly; expected at least 16 spaces, found 13
error 89 Spaces must be used to indent lines; tabs are not allowed
error 90 Line indented incorrectly; expected at least 16 spaces, found 14
error 90 Spaces must be used to indent lines; tabs are not allowed
error 91 Line indented incorrectly; expected at least 16 spaces, found 14
error 91 Spaces must be used to indent lines; tabs are not allowed
error 92 Spaces must be used to indent lines; tabs are not allowed
Sum 23 errors and 1 warnings
/data/pear/pear/Services_ExchangeRates/ExchangeRates/Rates_NBP.php
error 2 You must use "/**" style comments for a file comment
error 51 Missing @category tag in class comment
error 51 Missing @author tag in class comment
error 51 Missing @license tag in class comment
error 51 Missing @link tag in class comment
error 52 Opening brace of a class must be on the line after the definition
error 54 Line indented incorrectly; expected at least 4 spaces, found 3
error 60 Line indented incorrectly; expected at least 4 spaces, found 3
error 66 Line indented incorrectly; expected at least 4 spaces, found 3
error 72 Line indented incorrectly; expected at least 4 spaces, found 3
warning 74 Line exceeds 85 characters; contains 91 characters
warning 79 Line exceeds 85 characters; contains 95 characters
warning 82 Line exceeds 85 characters; contains 86 characters
error 84 Last parameter comment requires a blank newline after it
error 84 Parameters must appear immediately after the comment
error 84 Doc comment var "Length" does not match actual variable name "$cacheLength" at position 1
error 84 Doc comment for "$cacheDir" missing
error 87 Opening brace should be on a new line
warning 95 Line exceeds 85 characters; contains 99 characters
error 96 Expected "if (...) {\n"; found "if (...)\n {\n"
error 98 Line indented incorrectly; expected at least 12 spaces, found 11
warning 98 Line exceeds 85 characters; contains 155 characters
error 99 Line indented incorrectly; expected at least 12 spaces, found 11
error 110 Expected "if (...) {\n"; found "if (...)\n {\n"
warning 112 Line exceeds 85 characters; contains 99 characters
warning 112 Equals sign not aligned with surrounding assignments; expected 19 spaces but found 1 space
warning 113 Line exceeds 85 characters; contains 90 characters
warning 113 Equals sign not aligned with surrounding assignments; expected 44 spaces but found 1 space
error 116 Expected "} elseif (...) {\n"; found "} elseif (...)\n {\n"
Sum 20 errors and 9 warnings
/data/pear/pear/Services_ExchangeRates/ExchangeRates.php
error 2 You must use "/**" style comments for a file comment
error 58 The @author tag is in the wrong order; the tag follows @subpackage (if used) or @package
error 58 @author tag comment indented incorrectly. Expected 4 spaces but found 1.
error 59 @author tag comment indented incorrectly. Expected 4 spaces but found 1.
error 60 The @copyright tag is in the wrong order; the tag follows @author
error 61 The @license tag is in the wrong order; the tag follows @copyright (if used) or @author
error 61 @license tag comment indented incorrectly. Expected 3 spaces but found 1.
error 62 @package tag comment indented incorrectly. Expected 3 spaces but found 1.
error 63 Missing @category tag in class comment
error 63 Missing @link tag in class comment
error 64 Opening brace of a class must be on the line after the definition
error 65 Line indented incorrectly; expected at least 4 spaces, found 3
error 66 @copyright tag must contain a year and the name of the copyright holder
error 66 Line indented incorrectly; expected at least 4 spaces, found 3
error 73 Line indented incorrectly; expected at least 4 spaces, found 3
error 80 Line indented incorrectly; expected at least 4 spaces, found 3
warning 81 Line exceeds 85 characters; contains 94 characters
error 87 Line indented incorrectly; expected at least 4 spaces, found 3
error 94 Line indented incorrectly; expected at least 4 spaces, found 3
warning 95 Line exceeds 85 characters; contains 86 characters
error 101 Line indented incorrectly; expected at least 4 spaces, found 3
error 109 Line indented incorrectly; expected at least 4 spaces, found 3
error 117 Line indented incorrectly; expected at least 4 spaces, found 3
error 125 Line indented incorrectly; expected at least 4 spaces, found 3
error 133 Line indented incorrectly; expected at least 4 spaces, found 3
error 135 Line indented incorrectly; expected at least 4 spaces, found 3
warning 159 Line exceeds 85 characters; contains 89 characters
error 159 Doc comment var "Driver" does not match actual variable name "$ratesSource" at position 1
error 160 Doc comment var "Driver" does not match actual variable name "$currencySource" at position 2
error 161 Doc comment var "Driver" does not match actual variable name "$countrySource" at position 3
error 162 The comments for parameters Driver (3) and Array (4) do not align
error 162 Doc comment var "Array" does not match actual variable name "$options" at position 4
error 167 Opening brace should be on a new line
error 167 TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
error 178 Expected "foreach (...) {\n"; found "foreach(...) {\n"
error 179 Expected "if (...) {\n"; found "if(...) {\n"
warning 180 Equals sign not aligned with surrounding assignments; expected 18 spaces but found 1 space
warning 185 Line exceeds 85 characters; contains 98 characters
warning 185 Equals sign not aligned with surrounding assignments; expected 11 spaces but found 1 space
warning 186 Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
warning 188 Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
warning 190 Line exceeds 85 characters; contains 112 characters
warning 193 Line exceeds 85 characters; contains 113 characters
warning 195 Line exceeds 85 characters; contains 94 characters
error 199 Line indented incorrectly; expected at least 4 spaces, found 3
error 205 Doc comment var "Driver" does not match actual variable name "$source" at position 1
error 206 Last parameter comment requires a blank newline after it
error 206 The variable names for parameters Driver (1) and Cache (2) do not align
error 206 The comments for parameters Driver (1) and Cache (2) do not align
error 206 Doc comment var "Cache" does not match actual variable name "$cacheLength" at position 2
error 209 Opening brace should be on a new line
error 210 "include_once" is a statement, not a function; no parentheses are required
warning 213 Line exceeds 85 characters; contains 140 characters
error 220 Line indented incorrectly; expected at least 4 spaces, found 3
error 226 Doc comment var "Array" does not match actual variable name "$currencies" at position 1
error 227 Last parameter comment requires a blank newline after it
error 227 Doc comment var "Array" does not match actual variable name "$rates" at position 2
warning 228 Line exceeds 85 characters; contains 117 characters
error 230 Opening brace should be on a new line
error 244 You must use "/**" style comments for a function comment
error 244 Opening brace should be on a new line
warning 246 Line exceeds 85 characters; contains 114 characters
error 253 Line indented incorrectly; expected at least 4 spaces, found 3
error 256 Doc comment var "Currency" does not match actual variable name "$from" at position 1
error 257 Doc comment var "Currency" does not match actual variable name "$to" at position 2
error 258 The comments for parameters Currency (2) and Amount (3) do not align
error 258 Doc comment var "Amount" does not match actual variable name "$amount" at position 3
error 259 Last parameter comment requires a blank newline after it
error 259 The variable names for parameters Amount (3) and Format (4) do not align
error 259 Doc comment var "Format" does not match actual variable name "$format" at position 4
error 262 Opening brace should be on a new line
warning 273 Line exceeds 85 characters; contains 95 characters
error 278 Line indented incorrectly; expected at least 4 spaces, found 3
warning 282 Line exceeds 85 characters; contains 86 characters
error 285 Doc comment var "Number" does not match actual variable name "$amount" at position 1
error 286 Doc comment var "Number" does not match actual variable name "$roundTo" at position 2
error 287 The comments for parameters Number (2) and Character (3) do not align
error 287 Doc comment var "Character" does not match actual variable name "$decChar" at position 3
error 288 Last parameter comment requires a blank newline after it
error 288 Doc comment var "Character" does not match actual variable name "$sep" at position 4
error 291 Opening brace should be on a new line
warning 295 Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces
warning 296 Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
error 306 Last parameter comment requires a blank newline after it
error 320 Line indented incorrectly; expected at least 4 spaces, found 3
error 325 Missing @return tag in function comment
error 331 Line indented incorrectly; expected at least 4 spaces, found 3
error 338 Doc comment var "error" does not match actual variable name "$msg" at position 1
error 339 The variable names for parameters error (1) and error (2) do not align
error 339 Doc comment var "error" does not match actual variable name "$code" at position 2
error 340 Missing @return tag in function comment
error 343 "include_once" is a statement, not a function; no parentheses are required
Sum 74 errors and 18 warnings
/data/pear/pear/Services_ExchangeRates/example.php
error 2 You must use "/**" style comments for a file comment
warning 58 Line exceeds 85 characters; contains 94 characters
Sum 1 errors and 1 warnings