Passed
Push — develop ( a7a9ff...49c7df )
by nguereza
23:51 queued 13:24
created
src/IterableInterface.php 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
  * @class IterableInterface
51 51
  * @package Platine\Collection
52 52
  */
53
-interface IterableInterface
54
-{
53
+interface IterableInterface {
55 54
     /**
56 55
      * Loop on each collection element with the given callback
57 56
      * @param callable $callback
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 1 patch
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.
src/Collection.php 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,7 @@
 block discarded – undo
67 67
      * @param array<mixed, mixed> $data
68 68
      * @param string $type The type of this collection elements
69 69
      */
70
-    public function __construct(array $data = [], protected string $type = '')
71
-    {
70
+    public function __construct(array $data = [], protected string $type = '') {
72 71
         foreach ($data as $value) {
73 72
             $this->validateEntry($value);
74 73
         }
Please login to merge, or discard this patch.
src/ObjectCollection.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,15 +52,13 @@
 block discarded – undo
52 52
  *
53 53
  * @extends TypedCollection<object>
54 54
  */
55
-class ObjectCollection extends TypedCollection
56
-{
55
+class ObjectCollection extends TypedCollection {
57 56
 
58 57
     /**
59 58
      * Create new instance
60 59
      * @param array<mixed, object> $data
61 60
      */
62
-    public function __construct(array $data = [])
63
-    {
61
+    public function __construct(array $data = []) {
64 62
         parent::__construct('object', $data);
65 63
     }
66 64
 }
Please login to merge, or discard this patch.
src/MergeableInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
51 51
  * @package Platine\Collection
52 52
  * @template T
53 53
  */
54
-interface MergeableInterface
55
-{
54
+interface MergeableInterface {
56 55
     /**
57 56
      * Merge with the given collection
58 57
      * @param BaseCollection<T> $collection
Please login to merge, or discard this patch.
src/SortableInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
51 51
  * @package Platine\Collection
52 52
  * @template T
53 53
  */
54
-interface SortableInterface
55
-{
54
+interface SortableInterface {
56 55
     /**
57 56
      * Sort the collection
58 57
      * @param callable $callback
Please login to merge, or discard this patch.
src/BaseCollection.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,7 @@
 block discarded – undo
68 68
      * Create new instance
69 69
      * @param array<mixed, T> $initials
70 70
      */
71
-    public function __construct(array $initials = [])
72
-    {
71
+    public function __construct(array $initials = []) {
73 72
         $this->data = new DataContainer($initials);
74 73
     }
75 74
 
Please login to merge, or discard this patch.
src/Map/Pair.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,15 +50,13 @@
 block discarded – undo
50 50
  * @class Pair
51 51
  * @package Platine\Collection\Map
52 52
  */
53
-class Pair
54
-{
53
+class Pair {
55 54
     /**
56 55
      * Create new instance
57 56
      * @param mixed $key
58 57
      * @param mixed $value
59 58
      */
60
-    public function __construct(protected mixed $key, protected mixed $value)
61
-    {
59
+    public function __construct(protected mixed $key, protected mixed $value) {
62 60
     }
63 61
 
64 62
     /**
Please login to merge, or discard this patch.