Mercurial > packages > magicforger
diff src/Generator/Generator.php @ 22:ee8ef14e158d main-dev
Now able to include through composer
| author | Luka Sitas <sitas.luka.97@gmail.com> |
|---|---|
| date | Wed, 26 Feb 2025 20:12:17 -0500 |
| parents | 19b7a8de0019 |
| children | 827efbf4d73c |
line wrap: on
line diff
--- a/src/Generator/Generator.php Wed Feb 26 19:45:08 2025 -0500 +++ b/src/Generator/Generator.php Wed Feb 26 20:12:17 2025 -0500 @@ -83,7 +83,7 @@ * * @return array */ - protected function getOptions() + protected function getOptions(): array { return array_merge(parent::getOptions(), [ ['all', 'a', InputOption::VALUE_NONE, 'Generate a migration, seeder, factory, policy, resource controller, and form request classes for the table.'], @@ -99,15 +99,15 @@ * * @return void */ - protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) + protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output):void { } - protected function getStub() + protected function getStub():void { } - protected function createController() + protected function createController(): void { $this->call('mf:controller', ['table' => $this->getTableInput(), '--fresh' => $this->option('fresh')]); }
