Passed
Push — master ( da8729...ed7987 )
by Bruno
04:15
created
Modelarium/Laravel/Directives/MigrationSoftDeletesDirective.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
         MigrationGenerator $generator,
15 15
         \GraphQL\Language\AST\DirectiveNode $directive
16 16
     ): void {
17
-        $generator->createCode[] ='$table->softDeletes();';
17
+        $generator->createCode[] = '$table->softDeletes();';
18 18
     }
19 19
 
20 20
     public static function processMigrationFieldDirective(
Please login to merge, or discard this patch.
Modelarium/Laravel/Directives/MigrationTimestampsDirective.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
         MigrationGenerator $generator,
15 15
         \GraphQL\Language\AST\DirectiveNode $directive
16 16
     ): void {
17
-        $generator->createCode[] ='$table->timestamps();';
17
+        $generator->createCode[] = '$table->timestamps();';
18 18
     }
19 19
 
20 20
     public static function processMigrationFieldDirective(
Please login to merge, or discard this patch.
Modelarium/Laravel/Directives/MigrationSpatialIndexDirective.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
         \GraphQL\Language\AST\DirectiveNode $directive
16 16
     ): void {
17 17
         /** @phpstan-ignore-next-line */
18
-        $generator->createCode[] = '$table->spatialIndex("' . $directive->arguments[0]->value->value .'");';
18
+        $generator->createCode[] = '$table->spatialIndex("' . $directive->arguments[0]->value->value . '");';
19 19
     }
20 20
 
21 21
     public static function processMigrationFieldDirective(
Please login to merge, or discard this patch.
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/Modelarium.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     public static function getGeneratorDirectiveNamespaces(): array
37 37
     {
38 38
         return array_map(
39
-            function ($i) {
39
+            function($i) {
40 40
                 return $i . '\\Laravel\\Directives';
41 41
             },
42 42
             self::$directiveLaravelLibraries
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     public static function getGeneratorLighthouseDirectiveNamespaces(): array
52 52
     {
53 53
         return array_map(
54
-            function ($i) {
54
+            function($i) {
55 55
                 return $i . '\\Laravel\\Lighthouse\\Directives';
56 56
             },
57 57
             self::$directiveLaravelLibraries
Please login to merge, or discard this patch.
Modelarium/Laravel/Directives/ModelNotifiableDirective.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     public static function processModelFieldDirective(
18 18
         ModelGenerator $generator,
19 19
         \GraphQL\Type\Definition\FieldDefinition $field,
20
-       \Formularium\Field $fieldFormularium,
20
+        \Formularium\Field $fieldFormularium,
21 21
         \GraphQL\Language\AST\DirectiveNode $directive
22 22
     ): void {
23 23
     }
Please login to merge, or discard this patch.
Modelarium/Laravel/Directives/CastsDirective.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     public static function processModelFieldDirective(
17 17
         ModelGenerator $generator,
18 18
         \GraphQL\Type\Definition\FieldDefinition $field,
19
-       \Formularium\Field $fieldFormularium,
19
+        \Formularium\Field $fieldFormularium,
20 20
         \GraphQL\Language\AST\DirectiveNode $directive
21 21
     ): void {
22 22
         $fieldName = $field->name;
Please login to merge, or discard this patch.
Modelarium/Laravel/Directives/ModelMustVerifyEmailDirective.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     public static function processModelFieldDirective(
18 18
         ModelGenerator $generator,
19 19
         \GraphQL\Type\Definition\FieldDefinition $field,
20
-       \Formularium\Field $fieldFormularium,
20
+        \Formularium\Field $fieldFormularium,
21 21
         \GraphQL\Language\AST\DirectiveNode $directive
22 22
     ): void {
23 23
     }
Please login to merge, or discard this patch.
Modelarium/Laravel/Directives/ModelHiddenDirective.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     public static function processModelFieldDirective(
17 17
         ModelGenerator $generator,
18 18
         \GraphQL\Type\Definition\FieldDefinition $field,
19
-       \Formularium\Field $fieldFormularium,
19
+        \Formularium\Field $fieldFormularium,
20 20
         \GraphQL\Language\AST\DirectiveNode $directive
21 21
     ): void {
22 22
         $fieldName = $field->name;
Please login to merge, or discard this patch.