Passed
Push — master ( f107ac...afc3cc )
by Bruno
08:11
created
Modelarium/Laravel/Datatypes/Datatype_relationship.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                 $graphqlQuery = array_merge(
84 84
                     $graphqlQuery,
85 85
                     $formulariumModel->mapFields(
86
-                        function (Field $f) use ($recurseLevel) {
86
+                        function(Field $f) use ($recurseLevel) {
87 87
                             $type = $f->getDatatype();
88 88
                             if ($type instanceof Datatype_relationship && !$type->getIsInverse()) {
89 89
                                 return '';
@@ -100,8 +100,8 @@  discard block
 block discarded – undo
100 100
              */
101 101
             $formulariumModel = call_user_func("$model::getFormularium"); /** @phpstan-ignore-line */
102 102
             $graphqlQuery = $formulariumModel->mapFields(
103
-                function (Field $f) use ($recurseLevel) {
104
-                    return \Modelarium\Frontend\Util::fieldShow($f) ? $f->toGraphqlQuery([self::RECURSE => $recurseLevel-1]) : null;
103
+                function(Field $f) use ($recurseLevel) {
104
+                    return \Modelarium\Frontend\Util::fieldShow($f) ? $f->toGraphqlQuery([self::RECURSE => $recurseLevel - 1]) : null;
105 105
                 }
106 106
             );
107 107
             array_unshift($graphqlQuery, 'id');
Please login to merge, or discard this patch.
Modelarium/Laravel/Directives/ModelFillableDirective.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/CastsDirective.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
         $fieldName = $field->name;
Please login to merge, or discard this patch.
Modelarium/Laravel/Directives/MigrationPrimaryIndexDirective.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     public static function processModelFieldDirective(
37 37
         ModelGenerator $generator,
38 38
         \GraphQL\Type\Definition\FieldDefinition $field,
39
-       \Formularium\Field $fieldFormularium,
39
+        \Formularium\Field $fieldFormularium,
40 40
         \GraphQL\Language\AST\DirectiveNode $directive
41 41
     ): void {
42 42
         // nothing
Please login to merge, or discard this patch.
Modelarium/Laravel/Directives/MigrationIndexDirective.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     public static function processModelFieldDirective(
46 46
         ModelGenerator $generator,
47 47
         \GraphQL\Type\Definition\FieldDefinition $field,
48
-       \Formularium\Field $fieldFormularium,
48
+        \Formularium\Field $fieldFormularium,
49 49
         \GraphQL\Language\AST\DirectiveNode $directive
50 50
     ): void {
51 51
         // nothing
Please login to merge, or discard this patch.
Modelarium/Laravel/Directives/MigrationSoftDeletesDirective.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     public static function processModelFieldDirective(
36 36
         ModelGenerator $generator,
37 37
         \GraphQL\Type\Definition\FieldDefinition $field,
38
-       \Formularium\Field $fieldFormularium,
38
+        \Formularium\Field $fieldFormularium,
39 39
         \GraphQL\Language\AST\DirectiveNode $directive
40 40
     ): void {
41 41
         // nothing
Please login to merge, or discard this patch.
Modelarium/Laravel/Directives/RenderableDirective.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     public static function processModelFieldDirective(
26 26
         ModelGenerator $generator,
27 27
         \GraphQL\Type\Definition\FieldDefinition $field,
28
-       \Formularium\Field $fieldFormularium,
28
+        \Formularium\Field $fieldFormularium,
29 29
         \GraphQL\Language\AST\DirectiveNode $directive
30 30
     ): void {
31 31
         // handled by FormulariumUtils::getFieldFromDirectives()
Please login to merge, or discard this patch.
Modelarium/Laravel/Directives/ModelExtendsDirective.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
         foreach ($directive->arguments as $arg) {
Please login to merge, or discard this patch.
Modelarium/Laravel/Directives/MorphToManyDirective.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public static function processModelFieldDirective(
25 25
         ModelGenerator $generator,
26 26
         \GraphQL\Type\Definition\FieldDefinition $field,
27
-       \Formularium\Field $fieldFormularium,
27
+        \Formularium\Field $fieldFormularium,
28 28
         \GraphQL\Language\AST\DirectiveNode $directive
29 29
     ): void {
30 30
         // nothing
Please login to merge, or discard this patch.