@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | |
5 | 5 | use Illuminate\Support\Facades\App; |
6 | 6 | |
7 | -trait MakeController{ |
|
7 | +trait MakeController { |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * @param $module |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | base_path() . "/app/Modules/" . $module . "/Controllers/" . $filename . ".php", |
21 | 21 | $this->compileControllerStub($module, $filename) |
22 | 22 | ); |
23 | - (file_exists(base_path() . "/app/Modules/" . $module . "/Controllers/" . $filename . ".php") ? $this->info('Done'):$this->error('An error occurred')); |
|
23 | + (file_exists(base_path() . "/app/Modules/" . $module . "/Controllers/" . $filename . ".php") ? $this->info('Done') : $this->error('An error occurred')); |
|
24 | 24 | return; |
25 | 25 | } |
26 | 26 | $this->error("Controller already exists"); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | return str_replace( |
52 | 52 | ['DummyNamespace', 'DummyClass', 'DummyRootNamespaceHttp'], |
53 | - [App::getNamespace() . 'Modules\\' . $moduleName . '\Controllers', $className, App::getNamespace() .'Http'], |
|
53 | + [App::getNamespace() . 'Modules\\' . $moduleName . '\Controllers', $className, App::getNamespace() . 'Http'], |
|
54 | 54 | file_get_contents($stub) |
55 | 55 | ); |
56 | 56 | } |