Passed
Push — develop ( 0c5878...b732dc )
by nguereza
09:23 queued 07:02
created
src/IterableInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,5 +58,5 @@
 block discarded – undo
58 58
      * @param callable $callback
59 59
      * @return void
60 60
      */
61
-    public function forEach(callable $callback): void;
61
+    public function forEach (callable $callback): void;
62 62
 }
Please login to merge, or discard this patch.
src/Generic/ArrayList.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $diffValues = array_udiff(
107 107
             $this->all(),
108 108
             $collection->all(),
109
-            function ($a, $b) {
109
+            function($a, $b) {
110 110
                 if (gettype($a) !== gettype($b)) {
111 111
                     return -1;
112 112
                 }
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     /**
157 157
      * {@inheritedoc}
158 158
      */
159
-    public function forEach(callable $callback): void
159
+    public function forEach (callable $callback): void
160 160
     {
161 161
         $data = $this->all();
162 162
         array_walk($data, $callback);
Please login to merge, or discard this patch.
src/Map/HashMap.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -140,10 +140,10 @@  discard block
 block discarded – undo
140 140
         $diffValues = array_udiff_uassoc(
141 141
             $this->all(),
142 142
             $collection->all(),
143
-            function ($a, $b) {
143
+            function($a, $b) {
144 144
                 return $a <=> $b;
145 145
             },
146
-            function ($c, $d) {
146
+            function($c, $d) {
147 147
                 return $c <=> $d;
148 148
             }
149 149
         );
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
      * @param callable $callback
236 236
      * @return void
237 237
      */
238
-    public function forEach(callable $callback): void
238
+    public function forEach (callable $callback): void
239 239
     {
240 240
         $data = $this->all();
241 241
         array_walk($data, $callback);
Please login to merge, or discard this patch.
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -219,12 +219,12 @@  discard block
 block discarded – undo
219 219
                 : null;
220 220
     }
221 221
 
222
-     /**
223
-      *
224
-      * @param HashMap<T> $collection
225
-      * @return bool
226
-      * @throws InvalidOperationException
227
-      */
222
+        /**
223
+         *
224
+         * @param HashMap<T> $collection
225
+         * @return bool
226
+         * @throws InvalidOperationException
227
+         */
228 228
     public function equals(BaseCollection $collection): bool
229 229
     {
230 230
         if (!$collection instanceof self) {
@@ -249,11 +249,11 @@  discard block
 block discarded – undo
249 249
         $this->initializePairs($data);
250 250
     }
251 251
 
252
-     /**
253
-      * Return the value for given key
254
-      * @param mixed $key
255
-      * @return T|null
256
-      */
252
+        /**
253
+         * Return the value for given key
254
+         * @param mixed $key
255
+         * @return T|null
256
+         */
257 257
     public function get($key)
258 258
     {
259 259
         return $this->data->offsetExists($key)
@@ -261,11 +261,11 @@  discard block
 block discarded – undo
261 261
                : null;
262 262
     }
263 263
 
264
-     /**
265
-     * {@inheritedoc}
266
-      * @param HashMap<T> $collection
267
-      * @return HashMap<T>
268
-     */
264
+        /**
265
+         * {@inheritedoc}
266
+         * @param HashMap<T> $collection
267
+         * @return HashMap<T>
268
+         */
269 269
     public function merge(BaseCollection $collection): BaseCollection
270 270
     {
271 271
         TypeCheck::isEqual(
@@ -309,9 +309,9 @@  discard block
 block discarded – undo
309 309
         throw new InvalidOperationException('Can not call this method in map');
310 310
     }
311 311
 
312
-     /**
313
-     * {@inheritedoc}
314
-     */
312
+        /**
313
+         * {@inheritedoc}
314
+         */
315 315
     public function remove($key): void
316 316
     {
317 317
         if ($this->isEmpty()) {
@@ -328,12 +328,12 @@  discard block
 block discarded – undo
328 328
         $this->data->offsetUnset($key);
329 329
     }
330 330
 
331
-     /**
332
-      *
333
-      * @param int $offset
334
-      * @param int|null $length
335
-      * @return HashMap<T>|null
336
-      */
331
+        /**
332
+         *
333
+         * @param int $offset
334
+         * @param int|null $length
335
+         * @return HashMap<T>|null
336
+         */
337 337
     public function slice(int $offset, ?int $length = null): ?BaseCollection
338 338
     {
339 339
         $newData = array_slice($this->all(), $offset, $length, true);
@@ -347,11 +347,11 @@  discard block
 block discarded – undo
347 347
             : null;
348 348
     }
349 349
 
350
-     /**
351
-      *
352
-      * @param callable $callback
353
-      * @return HashMap<T>|null
354
-      */
350
+        /**
351
+         *
352
+         * @param callable $callback
353
+         * @return HashMap<T>|null
354
+         */
355 355
     public function sort(callable $callback): ?BaseCollection
356 356
     {
357 357
         $data = $this->all();
Please login to merge, or discard this patch.
src/Collection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
         $diffValues = array_udiff(
167 167
             $this->all(),
168 168
             $collection->all(),
169
-            function ($a, $b) {
169
+            function($a, $b) {
170 170
                 return $a <=> $b;
171 171
             }
172 172
         );
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
     /**
235 235
      * {@inheritedoc}
236 236
      */
237
-    public function forEach(callable $callback): void
237
+    public function forEach (callable $callback): void
238 238
     {
239 239
         $data = $this->all();
240 240
         array_walk($data, $callback);
Please login to merge, or discard this patch.