Passed
Push — master ( 4e6115...77d3fa )
by Bruno
10:05 queued 05:29
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
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
                 'enum',
206 206
                 'App\\Datatypes',
207 207
                 'Tests\\Unit',
208
-                function (ClassType $enumClass) use ($enumValues) {
208
+                function(ClassType $enumClass) use ($enumValues) {
209 209
                     $enumClass->addConstant('CHOICES', $enumValues);
210 210
                     $enumClass->getMethod('__construct')->addBody('$this->choices = self::CHOICES;');
211 211
                 }
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
         }
254 254
 
255 255
         $options = []; // TODO: from directives
256
-        $codeFragment->appendBase('$table->'  . $ourType->getLaravelSQLType($fieldName, $options));
256
+        $codeFragment->appendBase('$table->' . $ourType->getLaravelSQLType($fieldName, $options));
257 257
     }
258 258
 
259 259
     protected function processRelationship(
@@ -488,7 +488,7 @@  discard block
 block discarded – undo
488 488
             $this->getBasePath(
489 489
                 'database/migrations/' .
490 490
                 date('Y_m_d_His') .
491
-                str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
491
+                str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
492 492
                 '_' . $this->mode . '_' .
493 493
                 $relation .
494 494
                 '_table.php'
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
             $this->getBasePath(
529 529
                 'database/migrations/' .
530 530
                 date('Y_m_d_His') .
531
-                str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
531
+                str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
532 532
                 '_' . $this->mode . '_' .
533 533
                 $type1 . '_' . $type2 .
534 534
                 '_table.php'
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
         return $this->getBasePath(
574 574
             'database/migrations/' .
575 575
             date('Y_m_d_His') .
576
-            str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
576
+            str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
577 577
             '_' . $this->mode . '_' .
578 578
             $basename . '_table.php'
579 579
         );
Please login to merge, or discard this patch.