Passed
Push — main ( abdbfe...29aefa )
by Pranjal
02:38
created
src/Manager/WriteManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
         $this->ensureTableExists($model);
53 53
 
54
-        $id = $this->executeInTransaction(function () use ($model) {
54
+        $id = $this->executeInTransaction(function() use ($model) {
55 55
             $id = $this->createRecords($model);
56 56
             $model->set(self::ID_FIELD, $id);
57 57
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             $this->createTable($foreign);
190 190
         }
191 191
 
192
-        $this->executeInTransaction(function () use ($model) {
192
+        $this->executeInTransaction(function() use ($model) {
193 193
             foreach ($model->getForeignModels(self::RELATION_ONE_TO_ONE) as $foreign) {
194 194
                 $id = $this->createRecords($foreign);
195 195
                 $this->finalizeModel($foreign);
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
             $this->createTable($foreign, $this->createConstraintsOtm($model));
212 212
         }
213 213
 
214
-        $this->executeInTransaction(function () use ($model) {
214
+        $this->executeInTransaction(function() use ($model) {
215 215
             foreach ($model->getForeignModels(self::RELATION_ONE_TO_MANY) as $foreign) {
216 216
                 $this->createRecords($foreign);
217 217
                 $this->finalizeModel($foreign);
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
             );
244 244
         }
245 245
 
246
-        $this->executeInTransaction(function () use ($model, $id) {
246
+        $this->executeInTransaction(function() use ($model, $id) {
247 247
             foreach ($model->getForeignModels(self::RELATION_MANY_TO_MANY) as $foreign) {
248 248
                 $rel_id = $this->createRecords($foreign);
249 249
                 $this->finalizeModel($foreign);
Please login to merge, or discard this patch.
src/Model.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
 
243 243
     private function extractRelationIds(Collection $relations, string $targetTable): array
244 244
     {
245
-        return $relations->map(function ($relation) use ($targetTable) {
245
+        return $relations->map(function($relation) use ($targetTable) {
246 246
             $key = $targetTable.'_id';
247 247
 
248 248
             return $relation->$key;
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
      *
427 427
      * @throws Exception\InvalidModelException
428 428
      */
429
-    private function createCollection(?Collection $collection, array|Collection $models): Collection
429
+    private function createCollection(?Collection $collection, array | Collection $models): Collection
430 430
     {
431 431
         if (is_null($collection)) {
432 432
             $collection = Collection::fromIterable([]);
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
     /**
508 508
      * Determines the ParameterType for an ID value.
509 509
      */
510
-    private function determineIdType(int|string $id): ParameterType
510
+    private function determineIdType(int | string $id): ParameterType
511 511
     {
512 512
         return is_int($id) ? ParameterType::INTEGER : ParameterType::STRING;
513 513
     }
Please login to merge, or discard this patch.