Completed
Push — master ( ab3e34...ee6b13 )
by Pol
16:02 queued 13:57
created
src/Combinatorics.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
    * @return int
76 76
    */
77 77
   protected function fact($n, $total = 1) {
78
-      return ($n < 2) ? $total : $this->fact($n-1, $total * $n);
78
+      return ($n < 2) ? $total : $this->fact($n - 1, $total * $n);
79 79
   }
80 80
 
81 81
 }
82 82
\ No newline at end of file
Please login to merge, or discard this patch.
src/Generators/Product.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
59 59
   public function next() {
60 60
     if ($this->_next()) {
61 61
       $this->pos++;
62
-    }
63
-    else {
62
+    } else {
64 63
       $this->pos = -1;
65 64
     }
66 65
   }
Please login to merge, or discard this patch.
src/Iterators/Combinations.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
59 59
   public function next() {
60 60
     if ($this->_next()) {
61 61
       $this->pos++;
62
-    }
63
-    else {
62
+    } else {
64 63
       $this->pos = -1;
65 64
     }
66 65
   }
Please login to merge, or discard this patch.
src/Hilbert.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
     }
188 188
     array_multisort($points, $sort);
189 189
     foreach ($points as $k => $v) {
190
-      echo $k . "\n";
190
+      echo $k."\n";
191 191
     }
192 192
   }
193 193
 
Please login to merge, or discard this patch.
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.