Passed
Push — master ( c0a95b...c5e7d6 )
by Bruno
04:51
created
Modelarium/Laravel/Directives/MorphedByManyDirective.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
              * @var ObjectType $object
62 62
              */
63 63
 
64
-            if (str_starts_with((string)$name, '__')) {
64
+            if (str_starts_with((string) $name, '__')) {
65 65
                 // internal type
66 66
                 continue;
67 67
             }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                     continue;
74 74
                 }
75 75
 
76
-                $methodName = $generator->getInflector()->pluralize(mb_strtolower((string)$name));
76
+                $methodName = $generator->getInflector()->pluralize(mb_strtolower((string) $name));
77 77
                 $generator->class->addMethod($methodName)
78 78
                         ->setReturnType('\\Illuminate\\Database\\Eloquent\\Relations\\MorphToMany')
79 79
                         ->setPublic()
Please login to merge, or discard this patch.
Modelarium/Laravel/Targets/ModelGenerator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -258,7 +258,7 @@
 block discarded – undo
258 258
             }
259 259
     
260 260
             $relationshipDatatype = "relationship:" . ($isInverse ? "inverse:" : "") .
261
-               "$relationship:$sourceTypeName:$targetTypeName";
261
+                "$relationship:$sourceTypeName:$targetTypeName";
262 262
         }
263 263
 
264 264
         $this->processField($relationshipDatatype, $field, $directives, $isRequired);
Please login to merge, or discard this patch.