@@ 58-64 (lines=7) @@ | ||
55 | } |
|
56 | } |
|
57 | ||
58 | if (isset($authorCache[$author]) === false) { |
|
59 | $authorCache[$author] = 0; |
|
60 | $praiseCache[$author] = array( |
|
61 | 'good' => 0, |
|
62 | 'bad' => 0, |
|
63 | ); |
|
64 | } |
|
65 | ||
66 | $praiseCache[$author]['bad']++; |
|
67 | ||
@@ 94-105 (lines=12) @@ | ||
91 | $author = 'Unknown'; |
|
92 | } |
|
93 | ||
94 | if (isset($authorCache[$author]) === false) { |
|
95 | // This author doesn't have any errors. |
|
96 | if (PHP_CodeSniffer_VERBOSITY === 0) { |
|
97 | continue; |
|
98 | } |
|
99 | ||
100 | $authorCache[$author] = 0; |
|
101 | $praiseCache[$author] = array( |
|
102 | 'good' => 0, |
|
103 | 'bad' => 0, |
|
104 | ); |
|
105 | } |
|
106 | ||
107 | $praiseCache[$author]['good']++; |
|
108 | }//end foreach |