Passed
Pull Request — master (#6)
by BENOIT
07:46
created
src/StringCombinations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     public function count(): int
54 54
     {
55 55
         if (null === $this->count) {
56
-            $this->count = array_sum(array_map(function ($set) {
56
+            $this->count = array_sum(array_map(function($set) {
57 57
                 return count(cartesian_product($set));
58 58
             }, iterator_to_array($this->generateSets())));
59 59
         }
Please login to merge, or discard this patch.
src/NoDuplicateLettersStringCombinations.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         while (true) {
65 65
             $exitEarly = false;
66 66
             for ($i = $length; $i--;) {
67
-                $cycles[$i]-= 1;
67
+                $cycles[$i] -= 1;
68 68
                 if ($cycles[$i] == 0) {
69 69
                     if ($i < count($indices)) {
70 70
                         $removed = array_splice($indices, $i, 1);
Please login to merge, or discard this patch.