@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | continue; |
284 | 284 | } |
285 | 285 | |
286 | - $path = $this->module->getModulePath($this->getName()) . '/' . $folder->getPath(); |
|
286 | + $path = $this->module->getModulePath($this->getName()).'/'.$folder->getPath(); |
|
287 | 287 | |
288 | 288 | $this->filesystem->makeDirectory($path, 0755, true); |
289 | 289 | |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | */ |
299 | 299 | public function generateGitKeep($path) |
300 | 300 | { |
301 | - $this->filesystem->put($path . '/.gitkeep', ''); |
|
301 | + $this->filesystem->put($path.'/.gitkeep', ''); |
|
302 | 302 | } |
303 | 303 | |
304 | 304 | /** |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | public function generateFiles() |
308 | 308 | { |
309 | 309 | foreach ($this->getFiles() as $stub => $file) { |
310 | - $path = $this->module->getModulePath($this->getName()) . $file; |
|
310 | + $path = $this->module->getModulePath($this->getName()).$file; |
|
311 | 311 | |
312 | 312 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
313 | 313 | $this->filesystem->makeDirectory($dir, 0775, true); |
@@ -331,13 +331,13 @@ discard block |
||
331 | 331 | ]); |
332 | 332 | |
333 | 333 | $this->console->call('module:make-provider', [ |
334 | - 'name' => $this->getName() . 'ServiceProvider', |
|
334 | + 'name' => $this->getName().'ServiceProvider', |
|
335 | 335 | 'module' => $this->getName(), |
336 | 336 | '--master' => true, |
337 | 337 | ]); |
338 | 338 | |
339 | 339 | $this->console->call('module:make-controller', [ |
340 | - 'controller' => $this->getName() . 'Controller', |
|
340 | + 'controller' => $this->getName().'Controller', |
|
341 | 341 | 'module' => $this->getName(), |
342 | 342 | ]); |
343 | 343 | } |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | protected function getStubContents($stub) |
353 | 353 | { |
354 | 354 | return (new Stub( |
355 | - '/' . $stub . '.stub', |
|
355 | + '/'.$stub.'.stub', |
|
356 | 356 | $this->getReplacement($stub) |
357 | 357 | ) |
358 | 358 | )->render(); |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | $replaces = []; |
387 | 387 | |
388 | 388 | foreach ($keys as $key) { |
389 | - if (method_exists($this, $method = 'get' . ucfirst(studly_case(strtolower($key))) . 'Replacement')) { |
|
389 | + if (method_exists($this, $method = 'get'.ucfirst(studly_case(strtolower($key))).'Replacement')) { |
|
390 | 390 | $replaces[$key] = $this->$method(); |
391 | 391 | } else { |
392 | 392 | $replaces[$key] = null; |
@@ -401,7 +401,7 @@ discard block |
||
401 | 401 | */ |
402 | 402 | private function generateModuleJsonFile() |
403 | 403 | { |
404 | - $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
|
404 | + $path = $this->module->getModulePath($this->getName()).'module.json'; |
|
405 | 405 | |
406 | 406 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
407 | 407 | $this->filesystem->makeDirectory($dir, 0775, true); |
@@ -418,13 +418,13 @@ discard block |
||
418 | 418 | */ |
419 | 419 | private function cleanModuleJsonFile() |
420 | 420 | { |
421 | - $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
|
421 | + $path = $this->module->getModulePath($this->getName()).'module.json'; |
|
422 | 422 | |
423 | 423 | $content = $this->filesystem->get($path); |
424 | 424 | $namespace = $this->getModuleNamespaceReplacement(); |
425 | 425 | $studlyName = $this->getStudlyNameReplacement(); |
426 | 426 | |
427 | - $provider = '"' . $namespace . '\\\\' . $studlyName . '\\\\Providers\\\\' . $studlyName . 'ServiceProvider"'; |
|
427 | + $provider = '"'.$namespace.'\\\\'.$studlyName.'\\\\Providers\\\\'.$studlyName.'ServiceProvider"'; |
|
428 | 428 | |
429 | 429 | $content = str_replace($provider, '', $content); |
430 | 430 | |
@@ -493,6 +493,6 @@ discard block |
||
493 | 493 | |
494 | 494 | protected function getRoutesLocationReplacement() |
495 | 495 | { |
496 | - return '/' . $this->module->config('stubs.files.routes'); |
|
496 | + return '/'.$this->module->config('stubs.files.routes'); |
|
497 | 497 | } |
498 | 498 | } |
@@ -69,7 +69,7 @@ |
||
69 | 69 | |
70 | 70 | $resourcePath = GenerateConfigReader::read('resource'); |
71 | 71 | |
72 | - return $path . $resourcePath->getPath() . '/' . $this->getFileName() . '.php'; |
|
72 | + return $path.$resourcePath->getPath().'/'.$this->getFileName().'.php'; |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | $seederPath = GenerateConfigReader::read('seeder'); |
88 | 88 | |
89 | - return $path . $seederPath->getPath() . '/' . $this->getSeederName() . '.php'; |
|
89 | + return $path.$seederPath->getPath().'/'.$this->getSeederName().'.php'; |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
@@ -98,6 +98,6 @@ discard block |
||
98 | 98 | { |
99 | 99 | $end = $this->option('master') ? 'DatabaseSeeder' : 'TableSeeder'; |
100 | 100 | |
101 | - return Str::studly($this->argument('name')) . $end; |
|
101 | + return Str::studly($this->argument('name')).$end; |
|
102 | 102 | } |
103 | 103 | } |
@@ -78,7 +78,7 @@ |
||
78 | 78 | |
79 | 79 | $requestPath = GenerateConfigReader::read('request'); |
80 | 80 | |
81 | - return $path . $requestPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
81 | + return $path.$requestPath->getPath().'/'.$this->getFileName().'.php'; |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
@@ -53,8 +53,8 @@ discard block |
||
53 | 53 | |
54 | 54 | $string = ''; |
55 | 55 | foreach ($pieces as $i => $piece) { |
56 | - if ($i+1 < count($pieces)) { |
|
57 | - $string .= strtolower($piece) . '_'; |
|
56 | + if ($i + 1 < count($pieces)) { |
|
57 | + $string .= strtolower($piece).'_'; |
|
58 | 58 | } else { |
59 | 59 | $string .= Str::plural(strtolower($piece)); |
60 | 60 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | private function handleOptionalMigrationOption() |
96 | 96 | { |
97 | 97 | if ($this->option('migration') === true) { |
98 | - $migrationName = 'create_' . $this->createMigrationName() . '_table'; |
|
98 | + $migrationName = 'create_'.$this->createMigrationName().'_table'; |
|
99 | 99 | $this->call('module:make-migration', ['name' => $migrationName, 'module' => $this->argument('module')]); |
100 | 100 | } |
101 | 101 | } |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | |
129 | 129 | $modelPath = GenerateConfigReader::read('model'); |
130 | 130 | |
131 | - return $path . $modelPath->getPath() . '/' . $this->getModelName() . '.php'; |
|
131 | + return $path.$modelPath->getPath().'/'.$this->getModelName().'.php'; |
|
132 | 132 | } |
133 | 133 | |
134 | 134 | /** |
@@ -44,7 +44,7 @@ |
||
44 | 44 | |
45 | 45 | $controllerPath = GenerateConfigReader::read('controller'); |
46 | 46 | |
47 | - return $path . $controllerPath->getPath() . '/' . $this->getControllerName() . '.php'; |
|
47 | + return $path.$controllerPath->getPath().'/'.$this->getControllerName().'.php'; |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -87,7 +87,7 @@ |
||
87 | 87 | |
88 | 88 | $jobPath = GenerateConfigReader::read('jobs'); |
89 | 89 | |
90 | - return $path . $jobPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
90 | + return $path.$jobPath->getPath().'/'.$this->getFileName().'.php'; |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | $generatorPath = GenerateConfigReader::read('provider'); |
75 | 75 | |
76 | - return $path . $generatorPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
76 | + return $path.$generatorPath->getPath().'/'.$this->getFileName().'.php'; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -81,6 +81,6 @@ discard block |
||
81 | 81 | */ |
82 | 82 | protected function getRoutesPath() |
83 | 83 | { |
84 | - return '/' . $this->laravel['config']->get('stubs.files.routes', 'Http/routes.php'); |
|
84 | + return '/'.$this->laravel['config']->get('stubs.files.routes', 'Http/routes.php'); |
|
85 | 85 | } |
86 | 86 | } |
@@ -76,7 +76,7 @@ |
||
76 | 76 | |
77 | 77 | $rulePath = GenerateConfigReader::read('rules'); |
78 | 78 | |
79 | - return $path . $rulePath->getPath() . '/' . $this->getFileName() . '.php'; |
|
79 | + return $path.$rulePath->getPath().'/'.$this->getFileName().'.php'; |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |