Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 5 |
Ratio | 45.45 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
87 | 2 | public function count() { |
|
88 | 2 | $this->count = 0; |
|
89 | |||
90 | 2 | View Code Duplication | for ($j = 2; $j <= $this->getMaxLimit(); $j++) { |
91 | 2 | if ($this->isPrimeNumber($j)) { |
|
92 | 2 | $this->count++; |
|
93 | 2 | } |
|
94 | 2 | } |
|
95 | |||
96 | 2 | return $this->count; |
|
97 | } |
||
98 | |||
147 |