Passed
Push — main ( 573d92...8788e4 )
by ikechukwu
02:51
created
src/Console/Commands/MagicApiCommand.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 use Symfony\Component\Console\Attribute\AsCommand;
11 11
 use Symfony\Component\Console\Input\InputOption;
12 12
 
13
-#[AsCommand(name: 'magic:api')]
13
+#[AsCommand(name: 'magic:api') ]
14 14
 class MagicApiCommand extends GeneratorCommand
15 15
 {
16 16
     /**
@@ -59,15 +59,15 @@  discard block
 block discarded – undo
59 59
         $name = "{$name}Api";
60 60
 
61 61
         $stub = str_replace(
62
-            ['DummyModel', '{{ model }}'], class_basename($model), parent::buildClass($name)
62
+            [ 'DummyModel', '{{ model }}' ], class_basename($model), parent::buildClass($name)
63 63
         );
64 64
 
65 65
         $stub = str_replace(
66
-            ['DummyModelVariable', '{{ modelVariable }}'], trim($modelVariable, '\\'), $stub
66
+            [ 'DummyModelVariable', '{{ modelVariable }}' ], trim($modelVariable, '\\'), $stub
67 67
         );
68 68
 
69 69
         return str_replace(
70
-            ['DummyModelUnderScore', '{{ modelUnderScore }}'], trim($modelUnderScore, '\\'), $stub
70
+            [ 'DummyModelUnderScore', '{{ modelUnderScore }}' ], trim($modelUnderScore, '\\'), $stub
71 71
         );
72 72
     }
73 73
 
@@ -114,9 +114,9 @@  discard block
 block discarded – undo
114 114
     protected function getOptions()
115 115
     {
116 116
         return [
117
-            ['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the api already exists'],
118
-            ['variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this api class'],
119
-            ['underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this api class'],
117
+            [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the api already exists' ],
118
+            [ 'variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this api class' ],
119
+            [ 'underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this api class' ],
120 120
         ];
121 121
     }
122 122
 
Please login to merge, or discard this patch.
src/Console/Commands/MagicControllerCommand.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 use Symfony\Component\Console\Attribute\AsCommand;
8 8
 use Symfony\Component\Console\Input\InputOption;
9 9
 
10
-#[AsCommand(name: 'magic:controller')]
10
+#[AsCommand(name: 'magic:controller') ]
11 11
 class MagicControllerCommand extends GeneratorCommand
12 12
 {
13 13
     /**
@@ -55,15 +55,15 @@  discard block
 block discarded – undo
55 55
         $modelUnderScore = $this->option('underscore');
56 56
 
57 57
         $stub = str_replace(
58
-            ['DummyModel', '{{ model }}'], class_basename($model), parent::buildClass($name)
58
+            [ 'DummyModel', '{{ model }}' ], class_basename($model), parent::buildClass($name)
59 59
         );
60 60
 
61 61
         $stub = str_replace(
62
-            ['DummyModelVariable', '{{ modelVariable }}'], trim($modelVariable, '\\'), $stub
62
+            [ 'DummyModelVariable', '{{ modelVariable }}' ], trim($modelVariable, '\\'), $stub
63 63
         );
64 64
 
65 65
         return str_replace(
66
-            ['DummyModelUnderScore', '{{ modelUnderScore }}'], trim($modelUnderScore, '\\'), $stub
66
+            [ 'DummyModelUnderScore', '{{ modelUnderScore }}' ], trim($modelUnderScore, '\\'), $stub
67 67
         );
68 68
 
69 69
     }
@@ -122,9 +122,9 @@  discard block
 block discarded – undo
122 122
     protected function getOptions()
123 123
     {
124 124
         return [
125
-            ['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the controller already exists'],
126
-            ['variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this controller class'],
127
-            ['underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this controller class'],
125
+            [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the controller already exists' ],
126
+            [ 'variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this controller class' ],
127
+            [ 'underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this controller class' ],
128 128
         ];
129 129
     }
130 130
 
@@ -139,6 +139,6 @@  discard block
 block discarded – undo
139 139
         $name = "{$name}Controller";
140 140
         $name = Str::replaceFirst($this->rootNamespace(), '', $name);
141 141
 
142
-        return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'.php';
142
+        return $this->laravel[ 'path' ].'/'.str_replace('\\', '/', $name).'.php';
143 143
     }
144 144
 }
Please login to merge, or discard this patch.
src/Console/Commands/MagicCreateRequestCommand.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 use Symfony\Component\Console\Attribute\AsCommand;
8 8
 use Symfony\Component\Console\Input\InputOption;
9 9
 
10
-#[AsCommand(name: 'magic:createRequest')]
10
+#[AsCommand(name: 'magic:createRequest') ]
11 11
 class MagicCreateRequestCommand extends GeneratorCommand
12 12
 {
13 13
     /**
@@ -56,15 +56,15 @@  discard block
 block discarded – undo
56 56
         $name = "{$name}CreateRequest";
57 57
 
58 58
         $stub = str_replace(
59
-            ['DummyModel', '{{ model }}'], class_basename($model), parent::buildClass($name)
59
+            [ 'DummyModel', '{{ model }}' ], class_basename($model), parent::buildClass($name)
60 60
         );
61 61
 
62 62
         $stub = str_replace(
63
-            ['DummyModelVariable', '{{ modelVariable }}'], trim($modelVariable, '\\'), $stub
63
+            [ 'DummyModelVariable', '{{ modelVariable }}' ], trim($modelVariable, '\\'), $stub
64 64
         );
65 65
 
66 66
         return str_replace(
67
-            ['DummyModelUnderScore', '{{ modelUnderScore }}'], trim($modelUnderScore, '\\'), $stub
67
+            [ 'DummyModelUnderScore', '{{ modelUnderScore }}' ], trim($modelUnderScore, '\\'), $stub
68 68
         );
69 69
 
70 70
     }
@@ -123,9 +123,9 @@  discard block
 block discarded – undo
123 123
     protected function getOptions()
124 124
     {
125 125
         return [
126
-            ['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the request already exists'],
127
-            ['variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this request class'],
128
-            ['underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this request class'],
126
+            [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the request already exists' ],
127
+            [ 'variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this request class' ],
128
+            [ 'underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this request class' ],
129 129
         ];
130 130
     }
131 131
 
@@ -140,6 +140,6 @@  discard block
 block discarded – undo
140 140
         $name = "{$name}CreateRequest";
141 141
         $name = Str::replaceFirst($this->rootNamespace(), '', $name);
142 142
 
143
-        return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'.php';
143
+        return $this->laravel[ 'path' ].'/'.str_replace('\\', '/', $name).'.php';
144 144
     }
145 145
 }
Please login to merge, or discard this patch.
src/Console/Commands/MagicUpdateRequestCommand.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 use Symfony\Component\Console\Attribute\AsCommand;
8 8
 use Symfony\Component\Console\Input\InputOption;
9 9
 
10
-#[AsCommand(name: 'magic:updateRequest')]
10
+#[AsCommand(name: 'magic:updateRequest') ]
11 11
 class MagicUpdateRequestCommand extends GeneratorCommand
12 12
 {
13 13
     /**
@@ -56,15 +56,15 @@  discard block
 block discarded – undo
56 56
         $name = "{$name}UpdateRequest";
57 57
 
58 58
         $stub = str_replace(
59
-            ['DummyModel', '{{ model }}'], class_basename($model), parent::buildClass($name)
59
+            [ 'DummyModel', '{{ model }}' ], class_basename($model), parent::buildClass($name)
60 60
         );
61 61
 
62 62
         $stub = str_replace(
63
-            ['DummyModelVariable', '{{ modelVariable }}'], trim($modelVariable, '\\'), $stub
63
+            [ 'DummyModelVariable', '{{ modelVariable }}' ], trim($modelVariable, '\\'), $stub
64 64
         );
65 65
 
66 66
         return str_replace(
67
-            ['DummyModelUnderScore', '{{ modelUnderScore }}'], trim($modelUnderScore, '\\'), $stub
67
+            [ 'DummyModelUnderScore', '{{ modelUnderScore }}' ], trim($modelUnderScore, '\\'), $stub
68 68
         );
69 69
 
70 70
     }
@@ -123,9 +123,9 @@  discard block
 block discarded – undo
123 123
     protected function getOptions()
124 124
     {
125 125
         return [
126
-            ['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the request already exists'],
127
-            ['variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this request class'],
128
-            ['underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this request class'],
126
+            [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the request already exists' ],
127
+            [ 'variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this request class' ],
128
+            [ 'underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this request class' ],
129 129
         ];
130 130
     }
131 131
 
@@ -140,6 +140,6 @@  discard block
 block discarded – undo
140 140
         $name = "{$name}UpdateRequest";
141 141
         $name = Str::replaceFirst($this->rootNamespace(), '', $name);
142 142
 
143
-        return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'.php';
143
+        return $this->laravel[ 'path' ].'/'.str_replace('\\', '/', $name).'.php';
144 144
     }
145 145
 }
Please login to merge, or discard this patch.
src/Console/Commands/MagicReadRequestCommand.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 use Symfony\Component\Console\Attribute\AsCommand;
8 8
 use Symfony\Component\Console\Input\InputOption;
9 9
 
10
-#[AsCommand(name: 'magic:readRequest')]
10
+#[AsCommand(name: 'magic:readRequest') ]
11 11
 class MagicReadRequestCommand extends GeneratorCommand
12 12
 {
13 13
     /**
@@ -56,15 +56,15 @@  discard block
 block discarded – undo
56 56
         $name = "{$name}ReadRequest";
57 57
 
58 58
         $stub = str_replace(
59
-            ['DummyModel', '{{ model }}'], class_basename($model), parent::buildClass($name)
59
+            [ 'DummyModel', '{{ model }}' ], class_basename($model), parent::buildClass($name)
60 60
         );
61 61
 
62 62
         $stub = str_replace(
63
-            ['DummyModelVariable', '{{ modelVariable }}'], trim($modelVariable, '\\'), $stub
63
+            [ 'DummyModelVariable', '{{ modelVariable }}' ], trim($modelVariable, '\\'), $stub
64 64
         );
65 65
 
66 66
         return str_replace(
67
-            ['DummyModelUnderScore', '{{ modelUnderScore }}'], trim($modelUnderScore, '\\'), $stub
67
+            [ 'DummyModelUnderScore', '{{ modelUnderScore }}' ], trim($modelUnderScore, '\\'), $stub
68 68
         );
69 69
 
70 70
     }
@@ -123,9 +123,9 @@  discard block
 block discarded – undo
123 123
     protected function getOptions()
124 124
     {
125 125
         return [
126
-            ['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the request already exists'],
127
-            ['variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this request class'],
128
-            ['underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this request class'],
126
+            [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the request already exists' ],
127
+            [ 'variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this request class' ],
128
+            [ 'underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this request class' ],
129 129
         ];
130 130
     }
131 131
 
@@ -140,6 +140,6 @@  discard block
 block discarded – undo
140 140
         $name = "{$name}ReadRequest";
141 141
         $name = Str::replaceFirst($this->rootNamespace(), '', $name);
142 142
 
143
-        return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'.php';
143
+        return $this->laravel[ 'path' ].'/'.str_replace('\\', '/', $name).'.php';
144 144
     }
145 145
 }
Please login to merge, or discard this patch.
src/Console/Commands/MagicDeleteRequestCommand.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 use Symfony\Component\Console\Attribute\AsCommand;
8 8
 use Symfony\Component\Console\Input\InputOption;
9 9
 
10
-#[AsCommand(name: 'magic:deleteRequest')]
10
+#[AsCommand(name: 'magic:deleteRequest') ]
11 11
 class MagicDeleteRequestCommand extends GeneratorCommand
12 12
 {
13 13
     /**
@@ -56,15 +56,15 @@  discard block
 block discarded – undo
56 56
         $name = "{$name}DeleteRequest";
57 57
 
58 58
         $stub = str_replace(
59
-            ['DummyModel', '{{ model }}'], class_basename($model), parent::buildClass($name)
59
+            [ 'DummyModel', '{{ model }}' ], class_basename($model), parent::buildClass($name)
60 60
         );
61 61
 
62 62
         $stub = str_replace(
63
-            ['DummyModelVariable', '{{ modelVariable }}'], trim($modelVariable, '\\'), $stub
63
+            [ 'DummyModelVariable', '{{ modelVariable }}' ], trim($modelVariable, '\\'), $stub
64 64
         );
65 65
 
66 66
         return str_replace(
67
-            ['DummyModelUnderScore', '{{ modelUnderScore }}'], trim($modelUnderScore, '\\'), $stub
67
+            [ 'DummyModelUnderScore', '{{ modelUnderScore }}' ], trim($modelUnderScore, '\\'), $stub
68 68
         );
69 69
 
70 70
     }
@@ -123,9 +123,9 @@  discard block
 block discarded – undo
123 123
     protected function getOptions()
124 124
     {
125 125
         return [
126
-            ['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the request already exists'],
127
-            ['variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this request class'],
128
-            ['underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this request class'],
126
+            [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the request already exists' ],
127
+            [ 'variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this request class' ],
128
+            [ 'underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this request class' ],
129 129
         ];
130 130
     }
131 131
 
@@ -140,6 +140,6 @@  discard block
 block discarded – undo
140 140
         $name = "{$name}DeleteRequest";
141 141
         $name = Str::replaceFirst($this->rootNamespace(), '', $name);
142 142
 
143
-        return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'.php';
143
+        return $this->laravel[ 'path' ].'/'.str_replace('\\', '/', $name).'.php';
144 144
     }
145 145
 }
Please login to merge, or discard this patch.
Tests/TestCase.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     public function setUp(): void
11 11
     {
12
-      parent::setUp();
12
+        parent::setUp();
13 13
     }
14 14
 
15 15
     protected function defineDatabaseMigrations()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 
20 20
     protected function getPackageProviders($app): array
21 21
     {
22
-        return [MagicmakeServiceProvider::class];
22
+        return [ MagicmakeServiceProvider::class ];
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
src/Console/Commands/MagicInitCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,13 +67,13 @@
 block discarded – undo
67 67
 
68 68
         $this->handleResourcesPath();
69 69
 
70
-        $this->callSilently("vendor:publish", ["--provider" => "Laragear\TwoFactor\TwoFactorServiceProvider"]);
70
+        $this->callSilently("vendor:publish", [ "--provider" => "Laragear\TwoFactor\TwoFactorServiceProvider" ]);
71 71
         $this->components->info("Laragear TwoFactor migration and config file published");
72 72
 
73
-        $this->callSilently("vendor:publish", ["--provider" => "Spatie\Activitylog\ActivitylogServiceProvider", "--tag" => "activitylog-migrations"]);
73
+        $this->callSilently("vendor:publish", [ "--provider" => "Spatie\Activitylog\ActivitylogServiceProvider", "--tag" => "activitylog-migrations" ]);
74 74
         $this->components->info("Spatie ActivityLog migration and config file published");
75 75
 
76
-        $this->callSilently("vendor:publish", ["--provider" => "Spatie\Permission\PermissionServiceProvider"]);
76
+        $this->callSilently("vendor:publish", [ "--provider" => "Spatie\Permission\PermissionServiceProvider" ]);
77 77
         $this->components->info("Spatie Permissions migration and config file published");
78 78
     }
79 79
 }
Please login to merge, or discard this patch.
src/Console/Commands/MagicModelCommand.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
 use Symfony\Component\Console\Attribute\AsCommand;
8 8
 use Symfony\Component\Console\Input\InputOption;
9 9
 
10
-#[AsCommand(name: 'magic:model')]
10
+#[AsCommand(name: 'magic:model') ]
11 11
 class MagicModelCommand extends GeneratorCommand
12 12
 {
13 13
     /**
@@ -56,56 +56,56 @@  discard block
 block discarded – undo
56 56
         }
57 57
 
58 58
         $ary = explode("\\", $name);
59
-        $model = $ary[count($ary) - 1];
59
+        $model = $ary[ count($ary) - 1 ];
60 60
         $modelVariable = lcfirst($model);
61 61
         $modelUnderScore = Str::snake($modelVariable);
62 62
 
63
-        $this->callSilently("make:migration", ['name' => "create_{$modelUnderScore}s_table"]);
63
+        $this->callSilently("make:migration", [ 'name' => "create_{$modelUnderScore}s_table" ]);
64 64
         $this->components->info("Migration scaffolding for {$model} model generated successfully.");
65 65
 
66
-        $this->callSilently("magic:contract", ['name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore]);
66
+        $this->callSilently("magic:contract", [ 'name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore ]);
67 67
         $this->components->info("Magic contract scaffolding for {$model} model generated successfully.");
68 68
 
69
-        $this->callSilently("magic:repository", ['name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore]);
69
+        $this->callSilently("magic:repository", [ 'name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore ]);
70 70
         $this->components->info("Magic repository scaffolding for {$model} model generated successfully.");
71 71
 
72
-        $this->callSilently("magic:service", ['name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore]);
72
+        $this->callSilently("magic:service", [ 'name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore ]);
73 73
         $this->components->info("Magic service scaffolding for {$model} model generated successfully.");
74 74
 
75
-        $this->callSilently("magic:controller", ['name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore]);
75
+        $this->callSilently("magic:controller", [ 'name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore ]);
76 76
         $this->components->info("Magic controller scaffolding for {$model} model generated successfully.");
77 77
 
78
-        $this->callSilently("magic:createRequest", ['name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore]);
78
+        $this->callSilently("magic:createRequest", [ 'name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore ]);
79 79
         $this->components->info("Magic create request scaffolding for {$model} model generated successfully.");
80 80
 
81
-        $this->callSilently("magic:updateRequest", ['name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore]);
81
+        $this->callSilently("magic:updateRequest", [ 'name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore ]);
82 82
         $this->components->info("Magic update request scaffolding for {$model} model generated successfully.");
83 83
 
84
-        $this->callSilently("magic:deleteRequest", ['name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore]);
84
+        $this->callSilently("magic:deleteRequest", [ 'name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore ]);
85 85
         $this->components->info("Magic delete request scaffolding for {$model} model generated successfully.");
86 86
 
87
-        $this->callSilently("magic:readRequest", ['name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore]);
87
+        $this->callSilently("magic:readRequest", [ 'name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore ]);
88 88
         $this->components->info("Magic read request scaffolding for {$model} model generated successfully.");
89 89
 
90
-        $this->callSilently("magic:api", ['name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore]);
90
+        $this->callSilently("magic:api", [ 'name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore ]);
91 91
         $this->components->info("Magic api route scaffolding for {$model} model generated successfully.");
92 92
 
93
-        $this->callSilently("magic:test", ['name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore]);
93
+        $this->callSilently("magic:test", [ 'name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore ]);
94 94
         $this->components->info("Magic test scaffolding for {$model} model generated successfully.");
95 95
 
96
-        $this->callSilently("magic:factory", ['name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore]);
96
+        $this->callSilently("magic:factory", [ 'name' => "{$model}", '--variable' => $modelVariable, '--underscore' => $modelUnderScore ]);
97 97
         $this->components->info("Magic factory scaffolding for {$model} model generated successfully.");
98 98
 
99 99
         $stub = str_replace(
100
-            ['DummyModel', '{{ model }}'], class_basename($model), parent::buildClass($name)
100
+            [ 'DummyModel', '{{ model }}' ], class_basename($model), parent::buildClass($name)
101 101
         );
102 102
 
103 103
         $stub = str_replace(
104
-            ['DummyModelVariable', '{{ modelVariable }}'], trim($modelVariable, '\\'), $stub
104
+            [ 'DummyModelVariable', '{{ modelVariable }}' ], trim($modelVariable, '\\'), $stub
105 105
         );
106 106
 
107 107
         return str_replace(
108
-            ['DummyModelUnderScore', '{{ modelUnderScore }}'], trim($modelUnderScore, '\\'), $stub
108
+            [ 'DummyModelUnderScore', '{{ modelUnderScore }}' ], trim($modelUnderScore, '\\'), $stub
109 109
         );
110 110
     }
111 111
 
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
     protected function getOptions()
164 164
     {
165 165
         return [
166
-            ['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the model already exists'],
166
+            [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the model already exists' ],
167 167
         ];
168 168
     }
169 169
 }
Please login to merge, or discard this patch.