Passed
Push — master ( f90911...de9837 )
by Reza
03:38
created
src/Commands/Actions/MakeCRUDConfig.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@  discard block
 block discarded – undo
24 24
 
25 25
         $path = resource_path("cruds/{$name}.php");
26 26
 
27
-        if($this->files->exists($path) and !$this->option('force')){
27
+        if ($this->files->exists($path) and !$this->option('force')) {
28 28
             $this->warn("'{$name}'.php already exists in CRUDs config");
29 29
             return;
30 30
         }
31 31
 
32
-        if (! $this->files->isDirectory(dirname($path))) {
32
+        if (!$this->files->isDirectory(dirname($path))) {
33 33
             $this->files->makeDirectory(dirname($path), 0755, true);
34 34
         }
35 35
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     {
64 64
         $model = $this->qualifyModel($this->getNameInput());
65 65
 
66
-        if(!class_exists($model)){
66
+        if (!class_exists($model)) {
67 67
             $this->warn("Model option should be valid and model should be exist");
68 68
             die();
69 69
         }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     private function withAuth()
75 75
     {
76 76
         $fillableList = $this->getFillableList();
77
-        if(!in_array('user_id', $fillableList)){
77
+        if (!in_array('user_id', $fillableList)) {
78 78
             return 'true';
79 79
         }
80 80
 
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
     {
93 93
         $fillableList = $this->getFillableList();
94 94
         $array = [];
95
-        foreach ($fillableList as $fillable){
96
-            if(!Str::contains($fillable, 'id')){
95
+        foreach ($fillableList as $fillable) {
96
+            if (!Str::contains($fillable, 'id')) {
97 97
                 $array[] = "'$fillable'";
98 98
             }
99 99
         }
Please login to merge, or discard this patch.