Mercurial > packages > magicforger
diff src/Generator/Requests/RequestGenerator.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 | 010ace248d14 |
line wrap: on
line diff
--- a/src/Generator/Requests/RequestGenerator.php Wed Feb 26 20:12:17 2025 -0500 +++ b/src/Generator/Requests/RequestGenerator.php Fri Apr 11 20:50:20 2025 -0400 @@ -38,7 +38,7 @@ public function handle() { // First we need to ensure that the table exists, then we can - if (!$this->tableExists($this->getTableInput())) { + if (! $this->tableExists($this->getTableInput())) { $this->components->error('The table: "'.$this->getTableInput().'" does not exist in the database.'); return false; @@ -60,10 +60,8 @@ /** * Get the console command options. - * - * @return array */ - protected function getOptions():array + protected function getOptions(): array { return array_merge(parent::getOptions(), [ ['all', 'a', InputOption::VALUE_NONE, 'Generate all request classes for the table.'], @@ -74,21 +72,15 @@ /** * Interact further with the user if they were prompted for missing arguments. - * - * @return void */ - protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output):void - { - } + protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output): void {} /** * Get the stub file for the generator. * * @return string */ - protected function getStub() - { - } + protected function getStub() {} protected function createStoreRequest() {
