Passed
Push — master ( 4345d7...2fa866 )
by Bruno
18:55 queued 08:53
created
Modelarium/Laravel/Targets/ModelGenerator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
                      * @var ObjectType $object
315 315
                      */
316 316
 
317
-                    if (str_starts_with((string)$name, '__')) {
317
+                    if (str_starts_with((string) $name, '__')) {
318 318
                         // internal type
319 319
                         continue;
320 320
                     }
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
                             continue;
327 327
                         }
328 328
 
329
-                        $methodName = $this->getInflector()->pluralize(mb_strtolower((string)$name));
329
+                        $methodName = $this->getInflector()->pluralize(mb_strtolower((string) $name));
330 330
                         $this->class->addMethod($methodName)
331 331
                                 ->setReturnType('\\Illuminate\\Database\\Eloquent\\Relations\\MorphToMany')
332 332
                                 ->setPublic()
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
             } else {
355 355
                 $this->methodRandom->addBody(
356 356
                     '$data["' . $lowerName . '_id"] = function () {' . "\n" .
357
-                '    return factory(' . $targetClass . '::class)->create()->id;'  . "\n" .
357
+                '    return factory(' . $targetClass . '::class)->create()->id;' . "\n" .
358 358
                 '};'
359 359
                 );
360 360
             }
Please login to merge, or discard this patch.