Passed
Push — master ( 2d2e7e...f06b9e )
by Bruno
03:45
created
Modelarium/Laravel/Directives/MigrationForeignDirective.php 1 patch
Switch Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,10 +41,10 @@
 block discarded – undo
41 41
             $name = $directive->name->value;
42 42
 
43 43
             switch ($name) {
44
-                case 'belongToMany':
45
-                case 'morphedByMany':
46
-                    throw new DirectiveException("Foreign keys cannot be used with many-to-many-relationships. Check field: " . $field->name);
47
-                    break;
44
+            case 'belongToMany':
45
+            case 'morphedByMany':
46
+                throw new DirectiveException("Foreign keys cannot be used with many-to-many-relationships. Check field: " . $field->name);
47
+                break;
48 48
             }
49 49
         }
50 50
 
Please login to merge, or discard this patch.
Modelarium/Laravel/Directives/MigrationFulltextIndexDirective.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
         }
25 25
         $generator->postCreateCode[] =
26 26
             "if (env('APP_ENV') !== 'testing') {
27
-            DB::statement('ALTER TABLE " . $generator->getTableName()  .
27
+            DB::statement('ALTER TABLE " . $generator->getTableName() .
28 28
                 " ADD FULLTEXT fulltext_index (`" . implode('`, `', $indexFields) . "`)');
29 29
             }";
30 30
     }
Please login to merge, or discard this patch.