Passed
Pull Request — master (#138)
by
unknown
07:14
created
app/Shop/Categories/Repositories/CategoryRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
         // just make current category as root
124 124
         // else we need to find the parent
125 125
         // and associate it as child
126
-        if ( (int)$params['parent'] == 0) {
126
+        if ((int) $params['parent'] == 0) {
127 127
             $category->saveAsRoot();
128 128
         } else {
129 129
             $parent = $this->findCategoryById($params['parent']);
Please login to merge, or discard this patch.
app/Console/Commands/LaraStructure.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -112,13 +112,13 @@
 block discarded – undo
112 112
     {
113 113
         // get plural from model name
114 114
         $pluralModel = str_plural($this->model);
115
-         // create container folder
115
+            // create container folder
116 116
         $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}"));
117
-         // add requests folder
117
+            // add requests folder
118 118
         $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}/Requests"));
119
-         // add repositories folder
119
+            // add repositories folder
120 120
         $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}/Repositories/"));
121
-         // add Interfaces folder
121
+            // add Interfaces folder
122 122
         $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}/Repositories/Interfaces"));
123 123
     }
124 124
 }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         $pluralModel = str_plural($this->model);
61 61
 
62 62
         // Check if the model already created
63
-        if ( $this->filesystem->exists(app_path("Shop/{$pluralModel}/{$this->model}.php")) ){
63
+        if ($this->filesystem->exists(app_path("Shop/{$pluralModel}/{$this->model}.php"))) {
64 64
             return $this->error("The given model already exists!");
65 65
         }
66 66
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         
82 82
         // Create Model under default instalation folder
83 83
         $this->call('make:model', [
84
-            'name' => 'Shop/' . $pluralModel . '/' .$this->model,
84
+            'name' => 'Shop/' . $pluralModel . '/' . $this->model,
85 85
             '--migration' => $this->option('migration'),
86 86
         ]);
87 87
     }
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
113 113
         // get plural from model name
114 114
         $pluralModel = str_plural($this->model);
115 115
          // create container folder
116
-        $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}"));
116
+        $this->filesystem->makeDirectory(app_path($baseFolder . "/{$pluralModel}"));
117 117
          // add requests folder
118
-        $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}/Requests"));
118
+        $this->filesystem->makeDirectory(app_path($baseFolder . "/{$pluralModel}/Requests"));
119 119
          // add repositories folder
120
-        $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}/Repositories/"));
120
+        $this->filesystem->makeDirectory(app_path($baseFolder . "/{$pluralModel}/Repositories/"));
121 121
          // add Interfaces folder
122
-        $this->filesystem->makeDirectory(app_path($baseFolder."/{$pluralModel}/Repositories/Interfaces"));
122
+        $this->filesystem->makeDirectory(app_path($baseFolder . "/{$pluralModel}/Repositories/Interfaces"));
123 123
     }
124 124
 }
Please login to merge, or discard this patch.