From 1c31a66f294179da1b74c38210582915e7120d32 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Fri, 24 Nov 2023 18:53:18 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- src/Console/BatchesTableCommand.php | 1 - src/Console/CacheTableCommand.php | 3 ++- src/Console/CastMakeCommand.php | 1 - src/Console/ChannelMakeCommand.php | 1 - src/Console/CodeMakeCommand.php | 1 + src/Console/ComponentMakeCommand.php | 1 - src/Console/ControllerMakeCommand.php | 8 ++++++++ 7 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/Console/BatchesTableCommand.php b/src/Console/BatchesTableCommand.php index 91b266a2..aa58edcd 100644 --- a/src/Console/BatchesTableCommand.php +++ b/src/Console/BatchesTableCommand.php @@ -22,7 +22,6 @@ class BatchesTableCommand extends \Illuminate\Queue\Console\BatchesTableCommand * @param \Illuminate\Support\Composer $composer * @return void */ - #[\Override] public function __construct(Filesystem $files, Composer $composer) { parent::__construct($files, $composer); diff --git a/src/Console/CacheTableCommand.php b/src/Console/CacheTableCommand.php index a39723df..932ca49f 100644 --- a/src/Console/CacheTableCommand.php +++ b/src/Console/CacheTableCommand.php @@ -22,7 +22,6 @@ class CacheTableCommand extends \Illuminate\Cache\Console\CacheTableCommand * @param \Illuminate\Support\Composer $composer * @return void */ - #[\Override] public function __construct(Filesystem $files, Composer $composer) { parent::__construct($files, $composer); @@ -36,6 +35,7 @@ public function __construct(Filesystem $files, Composer $composer) * @param string $table * @return string */ + #[\Override] protected function createBaseMigration($table) { return $this->createBaseMigrationUsingCanvas($table); @@ -47,6 +47,7 @@ protected function createBaseMigration($table) * @param string $table * @return bool */ + #[\Override] protected function migrationExists($table) { return $this->migrationExistsUsingCanvas($table); diff --git a/src/Console/CastMakeCommand.php b/src/Console/CastMakeCommand.php index 12cfc7b0..d6491c89 100644 --- a/src/Console/CastMakeCommand.php +++ b/src/Console/CastMakeCommand.php @@ -21,7 +21,6 @@ class CastMakeCommand extends \Illuminate\Foundation\Console\CastMakeCommand * * @return void */ - #[\Override] public function __construct(Filesystem $files) { parent::__construct($files); diff --git a/src/Console/ChannelMakeCommand.php b/src/Console/ChannelMakeCommand.php index 60f03a03..dc5cf6f4 100644 --- a/src/Console/ChannelMakeCommand.php +++ b/src/Console/ChannelMakeCommand.php @@ -23,7 +23,6 @@ class ChannelMakeCommand extends \Illuminate\Foundation\Console\ChannelMakeComma * * @return void */ - #[\Override] public function __construct(Filesystem $files) { parent::__construct($files); diff --git a/src/Console/CodeMakeCommand.php b/src/Console/CodeMakeCommand.php index f12b0d58..32533d32 100644 --- a/src/Console/CodeMakeCommand.php +++ b/src/Console/CodeMakeCommand.php @@ -43,6 +43,7 @@ protected function resolveDefaultStubPath($stub) * * @return array */ + #[\Override] protected function getOptions() { return [ diff --git a/src/Console/ComponentMakeCommand.php b/src/Console/ComponentMakeCommand.php index 7efe5dfd..060ff1bb 100644 --- a/src/Console/ComponentMakeCommand.php +++ b/src/Console/ComponentMakeCommand.php @@ -23,7 +23,6 @@ class ComponentMakeCommand extends \Illuminate\Foundation\Console\ComponentMakeC * * @return void */ - #[\Override] public function __construct(Filesystem $files) { parent::__construct($files); diff --git a/src/Console/ControllerMakeCommand.php b/src/Console/ControllerMakeCommand.php index 4ec1b0a6..fa8adbca 100644 --- a/src/Console/ControllerMakeCommand.php +++ b/src/Console/ControllerMakeCommand.php @@ -37,6 +37,7 @@ public function __construct(Filesystem $files) * * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException */ + #[\Override] public function handle() { return $this->generateCode() ? self::SUCCESS : self::FAILURE; @@ -48,6 +49,7 @@ public function handle() * @param string $model * @return string */ + #[\Override] protected function qualifyModel(string $model) { return $this->qualifyModelUsingCanvas($model); @@ -58,6 +60,7 @@ protected function qualifyModel(string $model) * * @return array */ + #[\Override] protected function buildParentReplacements() { $parentModelClass = $this->parseModel($this->option('parent')); @@ -86,6 +89,7 @@ protected function buildParentReplacements() * @param array $replace * @return array */ + #[\Override] protected function buildModelReplacements(array $replace) { $modelClass = $this->parseModel($this->option('model')); @@ -121,6 +125,7 @@ protected function buildModelReplacements(array $replace) * @param string $name * @return string */ + #[\Override] protected function getPath($name) { return $this->getPathUsingCanvas($name); @@ -131,6 +136,7 @@ protected function getPath($name) * * @return string */ + #[\Override] protected function rootNamespace() { return $this->rootNamespaceUsingCanvas(); @@ -141,6 +147,7 @@ protected function rootNamespace() * * @return array */ + #[\Override] protected function possibleModels() { return $this->possibleModelsUsingCanvas(); @@ -154,6 +161,7 @@ protected function possibleModels() * @param string $updateRequestClass * @return array */ + #[\Override] protected function generateFormRequests($modelClass, $storeRequestClass, $updateRequestClass) { $storeRequestClass = 'Store'.class_basename($modelClass).'Request';