Passed
Push — master ( 05f401...309985 )
by Bruno
05:42 queued 01:54
created
Modelarium/Laravel/Directives/ModelNotifiableDirective.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/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/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/BelongsToDirective.php 1 patch
Switch Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,10 +67,10 @@
 block discarded – undo
67 67
         $targetDirectives = $targetField->astNode->directives;
68 68
         foreach ($targetDirectives as $targetDirective) {
69 69
             switch ($targetDirective->name->value) {
70
-                case 'hasOne':
71
-                case 'hasMany':
72
-                    $codeFragment->appendBase('->unsignedBigInteger("' . $fieldName . '")');
73
-                break;
70
+            case 'hasOne':
71
+            case 'hasMany':
72
+                $codeFragment->appendBase('->unsignedBigInteger("' . $fieldName . '")');
73
+            break;
74 74
             }
75 75
         }
76 76
     }
Please login to merge, or discard this patch.
Modelarium/Laravel/Targets/FactoryGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         }
32 32
         
33 33
         return new GeneratedCollection(
34
-            [ new GeneratedItem(
34
+            [new GeneratedItem(
35 35
                 GeneratedItem::TYPE_FACTORY,
36 36
                 $this->generateString(),
37 37
                 $this->getGenerateFilename()
@@ -50,6 +50,6 @@  discard block
 block discarded – undo
50 50
 
51 51
     public function getGenerateFilename(): string
52 52
     {
53
-        return $this->getBasePath('database/factories/'. $this->studlyName . 'Factory.php');
53
+        return $this->getBasePath('database/factories/' . $this->studlyName . 'Factory.php');
54 54
     }
55 55
 }
Please login to merge, or discard this patch.
util/CreateDirective.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         'implements' => implode(
23 23
             ', ',
24 24
             array_map(
25
-                function ($i) {
25
+                function($i) {
26 26
                     return Str::studly($i) . 'DirectiveInterface';
27 27
                 },
28 28
                 $processors
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 }
61 61
 
62 62
 // Script example.php
63
-$longopts  = array(
63
+$longopts = array(
64 64
     "name:",
65 65
     "processors:"
66 66
 );
Please login to merge, or discard this patch.
Modelarium/Laravel/Targets/ModelGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -233,7 +233,7 @@
 block discarded – undo
233 233
             $this->fModel->appendExtradata(
234 234
                 new Extradata(
235 235
                     'hasCan',
236
-                    [ new ExtradataParameter('value', true) ]
236
+                    [new ExtradataParameter('value', true)]
237 237
                 )
238 238
             );
239 239
             return;
Please login to merge, or discard this patch.
Modelarium/Laravel/Directives/MigrationIndexDirective.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         if (!count($indexFields)) {
20 20
             throw new Exception("You must provide at least one field to an index");
21 21
         }
22
-        $generator->createCode[] = '$table->index(["' . implode('", "', $indexFields) .'"]);';
22
+        $generator->createCode[] = '$table->index(["' . implode('", "', $indexFields) . '"]);';
23 23
     }
24 24
 
25 25
     public static function processMigrationFieldDirective(
Please login to merge, or discard this patch.