@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public function next() { |
| 52 | 52 | ++$this->key; |
| 53 | - for($i = $this->key; $i < $this->getMaxLimit(); $i++) { |
|
| 53 | + for ($i = $this->key; $i < $this->getMaxLimit(); $i++) { |
|
| 54 | 54 | if ($this->isPrimeNumber($i)) { |
| 55 | 55 | $this->key = $i; |
| 56 | 56 | $this->current = $i; |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | $i = 2; |
| 114 | 114 | |
| 115 | 115 | if (10 < $number) { |
| 116 | - if (in_array(substr($number, -1 ), array(0, 2, 4, 6, 8))) { |
|
| 116 | + if (in_array(substr($number, -1), array(0, 2, 4, 6, 8))) { |
|
| 117 | 117 | return FALSE; |
| 118 | 118 | } |
| 119 | 119 | } |