Completed
Push — master ( cedc93...ab3e34 )
by Pol
14:19
created
src/Iterators/Prime.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.