Mercurial > packages > magicforger
diff src/Generator/Controller/ControllerGenerator.php @ 23:827efbf4d73c main-dev
Huge changes to the relationships for models and more complex
| author | Luka Sitas <sitas.luka.97@gmail.com> |
|---|---|
| date | Fri, 11 Apr 2025 20:50:20 -0400 |
| parents | ee8ef14e158d |
| children |
line wrap: on
line diff
--- a/src/Generator/Controller/ControllerGenerator.php Wed Feb 26 20:12:17 2025 -0500 +++ b/src/Generator/Controller/ControllerGenerator.php Fri Apr 11 20:50:20 2025 -0400 @@ -31,8 +31,6 @@ /** * Execute the console command. - * - * @return void */ public function handle(): void { @@ -41,8 +39,6 @@ /** * Get the stub file for the generator. - * - * @return string */ protected function getStub(): string { @@ -51,15 +47,12 @@ /** * Resolve the fully-qualified path to the stub. - * - * @param string $stub - * @return string */ protected function resolveStubPath(string $stub): string { $customPath = $this->laravel->basePath(trim($stub, '/')); - return is_file($customPath) ? $customPath : __DIR__ . $stub; + return is_file($customPath) ? $customPath : __DIR__.$stub; } /** @@ -70,15 +63,12 @@ return str_replace( ['App\\', '\\'], ['app/', '/'], - $this->getControllerNamespace() . '/' . $this->controller_name($this->getTableInput()) . '.php' + $this->getControllerNamespace().'/'.$this->controller_name($this->getTableInput()).'.php' ); } /** * Get the class name for the controller. - * - * @param string $name - * @return string */ protected function getClassName(string $name): string {
