@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function handle() |
45 | 45 | { |
46 | - $file = explode("/", (string)$this->argument('name')); |
|
46 | + $file = explode("/", (string) $this->argument('name')); |
|
47 | 47 | |
48 | 48 | $name = $file[count($file) - 1]; |
49 | 49 | unset($file[count($file) - 1]); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $this->creator($name, $path, "Interfaces/", 'Interface'); |
56 | 56 | $this->creator($name, $path, "Repositories/", 'Repository'); |
57 | 57 | |
58 | - File::append(__DIR__.'../../../../routes/web.php', "\n" . 'Route::resource(\'' . str_plural($name) . "', '{$name}Controller');"); |
|
58 | + File::append(__DIR__ . '../../../../routes/web.php', "\n" . 'Route::resource(\'' . str_plural($name) . "', '{$name}Controller');"); |
|
59 | 59 | |
60 | 60 | } |
61 | 61 | |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $this->getStub($type) |
92 | 92 | ); |
93 | 93 | |
94 | - $path = $this->checkFolder(__DIR__."../../../../app/{$folder}{$path}/"); |
|
94 | + $path = $this->checkFolder(__DIR__ . "../../../../app/{$folder}{$path}/"); |
|
95 | 95 | file_put_contents($path . "{$name}{$type}.php", $template); |
96 | 96 | |
97 | 97 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | public function __construct($app) |
32 | 32 | { |
33 | 33 | parent::__construct($app); |
34 | - $contractsFolder = realpath(__DIR__.'../../../../app/Contracts'); |
|
34 | + $contractsFolder = realpath(__DIR__ . '../../../../app/Contracts'); |
|
35 | 35 | $Directory = new \RecursiveDirectoryIterator($contractsFolder); |
36 | 36 | $Iterator = new \RecursiveIteratorIterator($Directory); |
37 | 37 | $Regex = new \RegexIterator($Iterator, '/^.+\.php$/i', \RecursiveRegexIterator::GET_MATCH); |