Passed
Push — master ( a41166...4c99b3 )
by Bruno
03:13
created
Modelarium/Laravel/Directives/MigrationIndexDirective.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         if (!count($indexFields)) {
25 25
             throw new Exception("You must provide at least one field to an index");
26 26
         }
27
-        $generator->createCode[] ='$table->index("' . implode('", "', $indexFields) .'");';
27
+        $generator->createCode[] = '$table->index("' . implode('", "', $indexFields) . '");';
28 28
     }
29 29
 
30 30
     public static function processMigrationFieldDirective(
Please login to merge, or discard this patch.
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/ModelExtendsDirective.php 1 patch
Switch Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
26 26
             $value = $arg->value->value;
27 27
 
28 28
             switch ($arg->name->value) {
29
-                case 'class':
30
-                    $generator->parentClassName = $value;
31
-                break;
29
+            case 'class':
30
+                $generator->parentClassName = $value;
31
+            break;
32 32
             }
33 33
         }
34 34
     }
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/Targets/MigrationGenerator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                     'enum',
161 161
                     'App\\Datatypes',
162 162
                     'Tests\\Unit',
163
-                    function (ClassType $enumClass) use ($enumValues) {
163
+                    function(ClassType $enumClass) use ($enumValues) {
164 164
                         $enumClass->addConstant('CHOICES', $enumValues);
165 165
                         $enumClass->getMethod('__construct')->addBody('$this->choices = self::CHOICES;');
166 166
                     }
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
             $this->getBasePath(
465 465
                 'database/migrations/' .
466 466
                 date('Y_m_d_His') .
467
-                str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
467
+                str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
468 468
                 '_' . $this->mode . '_' .
469 469
                 $relation .
470 470
                 '_table.php'
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
             $this->getBasePath(
505 505
                 'database/migrations/' .
506 506
                 date('Y_m_d_His') .
507
-                str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
507
+                str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
508 508
                 '_' . $this->mode . '_' .
509 509
                 $type1 . '_' . $type2 .
510 510
                 '_table.php'
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
         return $this->getBasePath(
550 550
             'database/migrations/' .
551 551
             date('Y_m_d_His') .
552
-            str_pad((string)(static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
552
+            str_pad((string) (static::$counter++), 3, "0", STR_PAD_LEFT) . // so we keep the same order of types in schema
553 553
             '_' . $this->mode . '_' .
554 554
             $basename . '_table.php'
555 555
         );
Please login to merge, or discard this patch.