Passed
Push — master ( 1b0c60...f71ccb )
by Bruno
03:25
created
Modelarium/Laravel/Targets/ModelGenerator.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -360,7 +360,7 @@
 block discarded – undo
360 360
 
361 361
         if (!$relationshipDatatype) {
362 362
             $relationshipDatatype = "relationship:" . ($isInverse ? "inverse:" : "") .
363
-               "$relationship:$sourceTypeName:$targetTypeName";
363
+                "$relationship:$sourceTypeName:$targetTypeName";
364 364
         }
365 365
 
366 366
         $this->processField($relationshipDatatype, $field, $directives, $isRequired);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
                      * @var ObjectType $object
328 328
                      */
329 329
 
330
-                    if (str_starts_with((string)$name, '__')) {
330
+                    if (str_starts_with((string) $name, '__')) {
331 331
                         // internal type
332 332
                         continue;
333 333
                     }
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
                             continue;
340 340
                         }
341 341
 
342
-                        $methodName = $this->getInflector()->pluralize(mb_strtolower((string)$name));
342
+                        $methodName = $this->getInflector()->pluralize(mb_strtolower((string) $name));
343 343
                         $this->class->addMethod($methodName)
344 344
                                 ->setReturnType('\\Illuminate\\Database\\Eloquent\\Relations\\MorphToMany')
345 345
                                 ->setPublic()
Please login to merge, or discard this patch.