Passed
Push — feature-add-checkstyle ( f83c9d )
by Sébastien
18:53
created
src/Schema/Visitor/MapperVisitor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -180,21 +180,21 @@
 block discarded – undo
180 180
         if ($default !== null) {
181 181
             switch ($type) {
182 182
                 case TypeInterface::BOOLEAN:
183
-                    $default = (bool)$default;
183
+                    $default = (bool) $default;
184 184
                     break;
185 185
 
186 186
                 case TypeInterface::TINYINT:
187 187
                 case TypeInterface::SMALLINT:
188 188
                 case TypeInterface::INTEGER:
189
-                    $default = (int)$default;
189
+                    $default = (int) $default;
190 190
                     break;
191 191
 
192 192
                 case TypeInterface::FLOAT:
193
-                    $default = (float)$default;
193
+                    $default = (float) $default;
194 194
                     break;
195 195
 
196 196
                 case TypeInterface::DOUBLE:
197
-                    $default = (float)$default;
197
+                    $default = (float) $default;
198 198
                     break;
199 199
             }
200 200
 
Please login to merge, or discard this patch.
src/Collection/EntityCollection.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     #[ReadOperation]
78 78
     public function load($relations)
79 79
     {
80
-        foreach (Relation::sanitizeRelations((array)$relations) as $relationName => $meta) {
80
+        foreach (Relation::sanitizeRelations((array) $relations) as $relationName => $meta) {
81 81
             $this->repository->relation($relationName)->load(
82 82
                 EntityIndexer::fromArray($this->repository->mapper(), $this->storage->all()),
83 83
                 $meta['relations'],
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     #[WriteOperation]
143 143
     public function delete()
144 144
     {
145
-        $this->repository->transaction(function (RepositoryInterface $repository) {
145
+        $this->repository->transaction(function(RepositoryInterface $repository) {
146 146
             /** @var RepositoryInterface&RepositoryEventsSubscriberInterface $repository */
147 147
             $writer = new BufferedWriter($repository);
148 148
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     #[WriteOperation]
166 166
     public function save()
167 167
     {
168
-        $this->repository->transaction(function (RepositoryInterface $repository) {
168
+        $this->repository->transaction(function(RepositoryInterface $repository) {
169 169
             foreach ($this as $entity) {
170 170
                 $repository->save($entity);
171 171
             }
@@ -186,9 +186,9 @@  discard block
 block discarded – undo
186 186
     #[WriteOperation]
187 187
     public function saveAll($relations)
188 188
     {
189
-        $relations = Relation::sanitizeRelations((array)$relations);
189
+        $relations = Relation::sanitizeRelations((array) $relations);
190 190
 
191
-        return $this->repository->transaction(function (RepositoryInterface $repository) use ($relations) {
191
+        return $this->repository->transaction(function(RepositoryInterface $repository) use ($relations) {
192 192
             $nb = 0;
193 193
 
194 194
             foreach ($this as $entity) {
@@ -215,9 +215,9 @@  discard block
 block discarded – undo
215 215
     #[WriteOperation]
216 216
     public function deleteAll($relations)
217 217
     {
218
-        $relations = Relation::sanitizeRelations((array)$relations);
218
+        $relations = Relation::sanitizeRelations((array) $relations);
219 219
 
220
-        return $this->repository->transaction(function (RepositoryInterface $repository) use ($relations) {
220
+        return $this->repository->transaction(function(RepositoryInterface $repository) use ($relations) {
221 221
             $nb = 0;
222 222
 
223 223
             foreach ($this as $entity) {
Please login to merge, or discard this patch.
src/Collection/ArrayCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
                 throw new \LogicException('Custom mode should only used with callable callback');
230 230
             }
231 231
 
232
-            $groupBy = function ($item, $key, $results) use ($groupBy) {
232
+            $groupBy = function($item, $key, $results) use ($groupBy) {
233 233
                 return $this->getDataFromItem($item, $groupBy);
234 234
             };
235 235
         }
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
             return $items->all();
331 331
         }
332 332
 
333
-        return (array)$items;
333
+        return (array) $items;
334 334
     }
335 335
 
336 336
     /**
Please login to merge, or discard this patch.