Passed
Push — master ( 314b9f...4e7aa2 )
by Reza
02:52
created
src/Commands/MakeCRUD.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@  discard block
 block discarded – undo
15 15
     public function handle()
16 16
     {
17 17
         $names = $this->argument('name') ? [$this->argument('name')] : array_keys(config('easy_panel.actions', []));
18
-        if($names == null) {
18
+        if ($names == null) {
19 19
             throw new CommandNotFoundException("There is no action in config file");
20 20
         }
21 21
         foreach ($names as $name) {
22
-            $config = config('easy_panel.actions.' . $name);
22
+            $config = config('easy_panel.actions.'.$name);
23 23
             if (!$config) {
24 24
                 throw new CommandNotFoundException("There is no {$name} in config file");
25 25
             }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $model = explode('\\', $model);
48 48
         $model = strtolower(end($model));
49 49
 
50
-        if($model != $name){
50
+        if ($model != $name) {
51 51
             throw new CommandNotFoundException("Action key should be equal to model name, You are using {$name} as key name but your model name is {$model}");
52 52
         }
53 53
     }
Please login to merge, or discard this patch.