Passed
Push — develop ( 78e549...eb0d73 )
by nguereza
02:58
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   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -216,9 +216,9 @@  discard block
 block discarded – undo
216 216
                 : null;
217 217
     }
218 218
 
219
-     /**
220
-     * {@inheritedoc}
221
-     */
219
+        /**
220
+         * {@inheritedoc}
221
+         */
222 222
     public function equals(BaseCollection $collection): bool
223 223
     {
224 224
         if (!$collection instanceof self) {
@@ -243,9 +243,9 @@  discard block
 block discarded – undo
243 243
         $this->initializePairs($data);
244 244
     }
245 245
 
246
-     /**
247
-     * {@inheritedoc}
248
-     */
246
+        /**
247
+         * {@inheritedoc}
248
+         */
249 249
     public function get($key)
250 250
     {
251 251
         return $this->data->offsetExists($key)
@@ -253,10 +253,10 @@  discard block
 block discarded – undo
253 253
                : null;
254 254
     }
255 255
 
256
-     /**
257
-     * {@inheritedoc}
258
-      * @param HashMap<T> $collection
259
-     */
256
+        /**
257
+         * {@inheritedoc}
258
+         * @param HashMap<T> $collection
259
+         */
260 260
     public function merge(BaseCollection $collection): BaseCollection
261 261
     {
262 262
         TypeCheck::isEqual(
@@ -284,9 +284,9 @@  discard block
 block discarded – undo
284 284
         );
285 285
     }
286 286
 
287
-     /**
288
-     * {@inheritedoc}
289
-     */
287
+        /**
288
+         * {@inheritedoc}
289
+         */
290 290
     public function remove($key): void
291 291
     {
292 292
         if ($this->isEmpty()) {
@@ -303,9 +303,9 @@  discard block
 block discarded – undo
303 303
         $this->data->offsetUnset($key);
304 304
     }
305 305
 
306
-     /**
307
-     * {@inheritedoc}
308
-     */
306
+        /**
307
+         * {@inheritedoc}
308
+         */
309 309
     public function slice(int $offset, ?int $length = null): ?BaseCollection
310 310
     {
311 311
         $newData = array_slice($this->all(), $offset, $length, true);
@@ -319,9 +319,9 @@  discard block
 block discarded – undo
319 319
             : null;
320 320
     }
321 321
 
322
-     /**
323
-     * {@inheritedoc}
324
-     */
322
+        /**
323
+         * {@inheritedoc}
324
+         */
325 325
     public function sort(callable $callback): ?BaseCollection
326 326
     {
327 327
         $data = $this->all();
@@ -335,9 +335,9 @@  discard block
 block discarded – undo
335 335
                 : null;
336 336
     }
337 337
 
338
-     /**
339
-     * {@inheritedoc}
340
-     */
338
+        /**
339
+         * {@inheritedoc}
340
+         */
341 341
     public function update($key, $value): bool
342 342
     {
343 343
         $this->validateEntry($key, $value);
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.