Passed
Push — master ( f6ff89...7509be )
by Bruno
04:24
created
util/MakeAPIDoc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 function datatypes()
10 10
 {
11 11
     $markdown = DatatypeFactory::map(
12
-        function (\ReflectionClass $reflection): array {
12
+        function(\ReflectionClass $reflection): array {
13 13
             $class = $reflection->getName();
14 14
     
15 15
             /**
Please login to merge, or discard this patch.
Modelarium/Laravel/Console/Commands/ModelariumScaffoldCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         $files = $processor->getCollection();
92 92
         if ($name && $name !== '*' && $name !== 'all') {
93 93
             $files = $files->filter(
94
-                function (GeneratedItem $g) use ($name) {
94
+                function(GeneratedItem $g) use ($name) {
95 95
                     if (is_array($name)) {
96 96
                         throw new \Exception('Arrays not supported yet');
97 97
                     } else {
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         $this->writeFiles(
105 105
             $files,
106 106
             base_path(),
107
-            (bool)$this->option('overwrite')
107
+            (bool) $this->option('overwrite')
108 108
         );
109 109
         $this->info('Finished scaffolding. You might want to run `composer dump-autoload`');
110 110
     }
Please login to merge, or discard this patch.
Modelarium/Laravel/Targets/SeedGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         }
39 39
 
40 40
         return new GeneratedCollection(
41
-            [ new GeneratedItem(
41
+            [new GeneratedItem(
42 42
                 GeneratedItem::TYPE_SEED,
43 43
                 $this->generateString(),
44 44
                 $this->getGenerateFilename()
@@ -101,6 +101,6 @@  discard block
 block discarded – undo
101 101
 
102 102
     public function getGenerateFilename(): string
103 103
     {
104
-        return $this->getBasePath('database/seeds/'. $this->studlyName . 'Seeder.php');
104
+        return $this->getBasePath('database/seeds/' . $this->studlyName . 'Seeder.php');
105 105
     }
106 106
 }
Please login to merge, or discard this patch.
Modelarium/Frontend/Vue/Renderable/Renderable_relationship.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 
69 69
         // get the title field
70 70
         $titleField = $targetModel->firstField(
71
-            function (Field $field) {
71
+            function(Field $field) {
72 72
                 return $field->getRenderable('title', false);
73 73
             }
74 74
         );
Please login to merge, or discard this patch.
Modelarium/Laravel/Directives/CanDirective.php 1 patch
Switch Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -105,24 +105,24 @@
 block discarded – undo
105 105
         
106 106
         foreach ($directive->arguments as $arg) {
107 107
             switch ($arg->name->value) {
108
-                case 'ability':
109
-                    // @phpstan-ignore-next-line
110
-                    $ability = $arg->value->value;
111
-                break;
112
-                case 'find':
113
-                    // @phpstan-ignore-next-line
114
-                    $find = $arg->value->value;
115
-                break;
116
-                case 'model':
117
-                    // @phpstan-ignore-next-line
118
-                    $model = $arg->value->value;
119
-                break;
120
-                case 'injectArgs':
121
-                    $injected = true;
122
-                break;
123
-                case 'args':
124
-                    $args = true;
125
-                break;
108
+            case 'ability':
109
+                // @phpstan-ignore-next-line
110
+                $ability = $arg->value->value;
111
+            break;
112
+            case 'find':
113
+                // @phpstan-ignore-next-line
114
+                $find = $arg->value->value;
115
+            break;
116
+            case 'model':
117
+                // @phpstan-ignore-next-line
118
+                $model = $arg->value->value;
119
+            break;
120
+            case 'injectArgs':
121
+                $injected = true;
122
+            break;
123
+            case 'args':
124
+                $args = true;
125
+            break;
126 126
             }
127 127
         }
128 128
 
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.