Completed
Push — master ( 3f0582...5810d4 )
by Amo
02:56
created
src/Commands/ResourceMakeCommand.php 1 patch
Doc Comments   +23 added lines patch added patch discarded remove patch
@@ -93,6 +93,9 @@  discard block
 block discarded – undo
93 93
         $this->createModelFactory($name);
94 94
     }
95 95
 
96
+    /**
97
+     * @param string $name
98
+     */
96 99
     private function createModelFactory($name)
97 100
     {
98 101
         $model = $this->modelName($name);
@@ -162,6 +165,9 @@  discard block
 block discarded – undo
162 165
         return true;
163 166
     }
164 167
 
168
+    /**
169
+     * @param string $name
170
+     */
165 171
     private function createMigration($name)
166 172
     {
167 173
         $filename = $this->buildMigrationFilename($name);
@@ -187,6 +193,9 @@  discard block
 block discarded – undo
187 193
         return true;
188 194
     }
189 195
 
196
+    /**
197
+     * @param string $modelName
198
+     */
190 199
     private function createController($modelName)
191 200
     {
192 201
         $filename = ucfirst($modelName) . 'Controller.php';
@@ -209,6 +218,9 @@  discard block
 block discarded – undo
209 218
         return true;
210 219
     }
211 220
 
221
+    /**
222
+     * @param string $modelName
223
+     */
212 224
     private function appendRoutes($modelName)
213 225
     {
214 226
         $modelTitle = ucfirst($modelName);
@@ -251,6 +263,11 @@  discard block
 block discarded – undo
251 263
         return $stub;
252 264
     }
253 265
 
266
+    /**
267
+     * @param string $name
268
+     *
269
+     * @return string
270
+     */
254 271
     protected function buildModel($name)
255 272
     {
256 273
         $stub = $this->files->get(__DIR__ . '/../Stubs/model.stub');
@@ -278,6 +295,9 @@  discard block
 block discarded – undo
278 295
         return date('Y_m_d_his') . '_create_' . $table . '_table.php';
279 296
     }
280 297
 
298
+    /**
299
+     * @param string $stub
300
+     */
281 301
     private function replaceClassName($name, $stub)
282 302
     {
283 303
         return str_replace('NAME_PLACEHOLDER', $name, $stub);
@@ -346,6 +366,9 @@  discard block
 block discarded – undo
346 366
         return $string;
347 367
     }
348 368
 
369
+    /**
370
+     * @param string $name
371
+     */
349 372
     public function addModelAttributes($name, $attributes, $stub)
350 373
     {
351 374
         $attributes = '[' . collect($this->parseAttributesFromInputString($attributes))
Please login to merge, or discard this patch.