@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | public function generateFolders() |
277 | 277 | { |
278 | 278 | foreach ($this->getFolders() as $folder) { |
279 | - $path = $this->module->getModulePath($this->getName()) . '/' . $folder; |
|
279 | + $path = $this->module->getModulePath($this->getName()).'/'.$folder; |
|
280 | 280 | |
281 | 281 | $this->filesystem->makeDirectory($path, 0755, true); |
282 | 282 | |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | */ |
292 | 292 | public function generateGitKeep($path) |
293 | 293 | { |
294 | - $this->filesystem->put($path . '/.gitkeep', ''); |
|
294 | + $this->filesystem->put($path.'/.gitkeep', ''); |
|
295 | 295 | } |
296 | 296 | |
297 | 297 | /** |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | public function generateFiles() |
301 | 301 | { |
302 | 302 | foreach ($this->getFiles() as $stub => $file) { |
303 | - $path = $this->module->getModulePath($this->getName()) . $file; |
|
303 | + $path = $this->module->getModulePath($this->getName()).$file; |
|
304 | 304 | |
305 | 305 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
306 | 306 | $this->filesystem->makeDirectory($dir, 0775, true); |
@@ -324,13 +324,13 @@ discard block |
||
324 | 324 | ]); |
325 | 325 | |
326 | 326 | $this->console->call('module:make-provider', [ |
327 | - 'name' => $this->getName() . 'ServiceProvider', |
|
327 | + 'name' => $this->getName().'ServiceProvider', |
|
328 | 328 | 'module' => $this->getName(), |
329 | 329 | '--master' => true, |
330 | 330 | ]); |
331 | 331 | |
332 | 332 | $this->console->call('module:make-controller', [ |
333 | - 'controller' => $this->getName() . 'Controller', |
|
333 | + 'controller' => $this->getName().'Controller', |
|
334 | 334 | 'module' => $this->getName(), |
335 | 335 | ]); |
336 | 336 | } |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | protected function getStubContents($stub) |
346 | 346 | { |
347 | 347 | return (new Stub( |
348 | - '/' . $stub . '.stub', |
|
348 | + '/'.$stub.'.stub', |
|
349 | 349 | $this->getReplacement($stub) |
350 | 350 | ) |
351 | 351 | )->render(); |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | $replaces = []; |
380 | 380 | |
381 | 381 | foreach ($keys as $key) { |
382 | - if (method_exists($this, $method = 'get' . ucfirst(studly_case(strtolower($key))) . 'Replacement')) { |
|
382 | + if (method_exists($this, $method = 'get'.ucfirst(studly_case(strtolower($key))).'Replacement')) { |
|
383 | 383 | $replaces[$key] = call_user_func([$this, $method]); |
384 | 384 | } else { |
385 | 385 | $replaces[$key] = null; |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | */ |
395 | 395 | private function generateModuleJsonFile() |
396 | 396 | { |
397 | - $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
|
397 | + $path = $this->module->getModulePath($this->getName()).'module.json'; |
|
398 | 398 | |
399 | 399 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
400 | 400 | $this->filesystem->makeDirectory($dir, 0775, true); |
@@ -411,13 +411,13 @@ discard block |
||
411 | 411 | */ |
412 | 412 | private function cleanModuleJsonFile() |
413 | 413 | { |
414 | - $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
|
414 | + $path = $this->module->getModulePath($this->getName()).'module.json'; |
|
415 | 415 | |
416 | 416 | $content = $this->filesystem->get($path); |
417 | 417 | $namespace = $this->getModuleNamespaceReplacement(); |
418 | 418 | $studlyName = $this->getStudlyNameReplacement(); |
419 | 419 | |
420 | - $provider = '"' . $namespace . '\\\\' . $studlyName . '\\\\Providers\\\\' . $studlyName . 'ServiceProvider"'; |
|
420 | + $provider = '"'.$namespace.'\\\\'.$studlyName.'\\\\Providers\\\\'.$studlyName.'ServiceProvider"'; |
|
421 | 421 | |
422 | 422 | $content = str_replace($provider, '', $content); |
423 | 423 |
@@ -20,10 +20,10 @@ |
||
20 | 20 | protected $argumentName = 'name'; |
21 | 21 | |
22 | 22 | /** |
23 | - * The console command description. |
|
24 | - * |
|
25 | - * @var string |
|
26 | - */ |
|
23 | + * The console command description. |
|
24 | + * |
|
25 | + * @var string |
|
26 | + */ |
|
27 | 27 | protected $description = 'Generate new notification class for the specified module.'; |
28 | 28 | |
29 | 29 | /** |