Passed
Push — master ( a688ee...4b4c01 )
by Bruno
04:18
created
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/MorphToManyDirective.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/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.
Modelarium/Laravel/Directives/HasManyDirective.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/MorphOneDirective.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/MorphManyDirective.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/Targets/MigrationGenerator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                     'enum',
162 162
                     'App\\Datatypes',
163 163
                     'Tests\\Unit',
164
-                    function (ClassType $enumClass) use ($enumValues) {
164
+                    function(ClassType $enumClass) use ($enumValues) {
165 165
                         $enumClass->addConstant('CHOICES', $enumValues);
166 166
                         $enumClass->getMethod('__construct')->addBody('$this->choices = self::CHOICES;');
167 167
                     }
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
             }
210 210
 
211 211
             $options = []; // TODO: from directives
212
-            $codeFragment->appendBase('$table->'  . $ourType->getLaravelSQLType($fieldName, $options));
212
+            $codeFragment->appendBase('$table->' . $ourType->getLaravelSQLType($fieldName, $options));
213 213
         } elseif ($type instanceof UnionType) {
214 214
             return;
215 215
         } elseif ($type instanceof CustomScalarType) {
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
             $this->getBasePath(
485 485
                 'database/migrations/' .
486 486
                 date('Y_m_d_His') .
487
-                str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
487
+                str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
488 488
                 '_' . $this->mode . '_' .
489 489
                 $relation .
490 490
                 '_table.php'
@@ -524,7 +524,7 @@  discard block
 block discarded – undo
524 524
             $this->getBasePath(
525 525
                 'database/migrations/' .
526 526
                 date('Y_m_d_His') .
527
-                str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
527
+                str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
528 528
                 '_' . $this->mode . '_' .
529 529
                 $type1 . '_' . $type2 .
530 530
                 '_table.php'
@@ -569,7 +569,7 @@  discard block
 block discarded – undo
569 569
         return $this->getBasePath(
570 570
             'database/migrations/' .
571 571
             date('Y_m_d_His') .
572
-            str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
572
+            str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
573 573
             '_' . $this->mode . '_' .
574 574
             $basename . '_table.php'
575 575
         );
Please login to merge, or discard this patch.