Passed
Push — master ( 93e766...8dade9 )
by Bruno
21:50 queued 11:45
created
Modelarium/Laravel/Directives/HasOneDirective.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/Directives/BelongsToManyDirective.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/MigrationFulltextIndexDirective.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
-            $base = '$table->'  . $ourType->getLaravelSQLType($fieldName, $options);
212
+            $base = '$table->' . $ourType->getLaravelSQLType($fieldName, $options);
213 213
         } elseif ($type instanceof UnionType) {
214 214
             return;
215 215
         } elseif ($type instanceof CustomScalarType) {
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
             $this->getBasePath(
486 486
                 'database/migrations/' .
487 487
                 date('Y_m_d_His') .
488
-                str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
488
+                str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
489 489
                 '_' . $this->mode . '_' .
490 490
                 $relation .
491 491
                 '_table.php'
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
             $this->getBasePath(
526 526
                 'database/migrations/' .
527 527
                 date('Y_m_d_His') .
528
-                str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
528
+                str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
529 529
                 '_' . $this->mode . '_' .
530 530
                 $type1 . '_' . $type2 .
531 531
                 '_table.php'
@@ -570,7 +570,7 @@  discard block
 block discarded – undo
570 570
         return $this->getBasePath(
571 571
             'database/migrations/' .
572 572
             date('Y_m_d_His') .
573
-            str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
573
+            str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
574 574
             '_' . $this->mode . '_' .
575 575
             $basename . '_table.php'
576 576
         );
Please login to merge, or discard this patch.