Completed
Branch master (f41212)
by Rudi
03:22
created
src/Ds/PriorityQueue.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
      * @param int $a
161 161
      * @param int $b
162 162
      *
163
-     * @return bool
163
+     * @return integer
164 164
      */
165 165
     private function compare(int $a, int $b)
166 166
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -282,7 +282,7 @@
 block discarded – undo
282 282
      */
283 283
     private function siftUp(int $leaf)
284 284
     {
285
-         for (; $leaf > 0; $leaf = $parent) {
285
+            for (; $leaf > 0; $leaf = $parent) {
286 286
 
287 287
             $parent = $this->parent($leaf);
288 288
 
Please login to merge, or discard this patch.
src/Ds/Traits/Collection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,6 +54,6 @@
 block discarded – undo
54 54
      */
55 55
     public function __toString()
56 56
     {
57
-        return 'object(' . get_class($this) . ')';
57
+        return 'object('.get_class($this).')';
58 58
     }
59 59
 }
Please login to merge, or discard this patch.
src/Ds/Traits/Sequence.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -236,14 +236,14 @@  discard block
 block discarded – undo
236 236
             return;
237 237
         }
238 238
 
239
-        $swap = function (&$a, &$b) {
239
+        $swap = function(&$a, &$b) {
240 240
             $t = $a;
241 241
             $a = $b;
242 242
             $b = $t;
243 243
         };
244 244
 
245 245
         // Reverses a range within the internal array
246
-        $reverse = function (int $a, int $b) use ($swap) {
246
+        $reverse = function(int $a, int $b) use ($swap) {
247 247
             while (--$b > $a) {
248 248
                 $swap($this->internal[$a++], $this->internal[$b--]);
249 249
             }
@@ -260,9 +260,9 @@  discard block
 block discarded – undo
260 260
         }
261 261
 
262 262
         if ($r > 0) {
263
-            $reverse(0,  $r);
263
+            $reverse(0, $r);
264 264
             $reverse($r, $n);
265
-            $reverse(0,  $n);
265
+            $reverse(0, $n);
266 266
         }
267 267
     }
268 268
 
Please login to merge, or discard this patch.
src/Ds/Pair.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,6 +91,6 @@
 block discarded – undo
91 91
      */
92 92
     public function __toString()
93 93
     {
94
-        return 'object(' . get_class($this) . ')';
94
+        return 'object('.get_class($this).')';
95 95
     }
96 96
 }
Please login to merge, or discard this patch.
src/Ds/Map.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function clear()
45 45
     {
46
-        $this->pairs  = [];
46
+        $this->pairs = [];
47 47
         $this->capacity = self::MIN_CAPACITY;
48 48
     }
49 49
 
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      */
210 210
     private function identical($a, $b): bool
211 211
     {
212
-        if (is_object($a) && $a instanceof Hashable){
212
+        if (is_object($a) && $a instanceof Hashable) {
213 213
             return $a->equals($b);
214 214
         }
215 215
 
Please login to merge, or discard this patch.