Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Nov 24, 2023
1 parent b58cd37 commit 1c31a66
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/Console/BatchesTableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion src/Console/CacheTableCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -47,6 +47,7 @@ protected function createBaseMigration($table)
* @param string $table
* @return bool
*/
#[\Override]
protected function migrationExists($table)
{
return $this->migrationExistsUsingCanvas($table);
Expand Down
1 change: 0 additions & 1 deletion src/Console/CastMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class CastMakeCommand extends \Illuminate\Foundation\Console\CastMakeCommand
*
* @return void
*/
#[\Override]
public function __construct(Filesystem $files)
{
parent::__construct($files);
Expand Down
1 change: 0 additions & 1 deletion src/Console/ChannelMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class ChannelMakeCommand extends \Illuminate\Foundation\Console\ChannelMakeComma
*
* @return void
*/
#[\Override]
public function __construct(Filesystem $files)
{
parent::__construct($files);
Expand Down
1 change: 1 addition & 0 deletions src/Console/CodeMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ protected function resolveDefaultStubPath($stub)
*
* @return array<int, array>
*/
#[\Override]
protected function getOptions()
{
return [
Expand Down
1 change: 0 additions & 1 deletion src/Console/ComponentMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class ComponentMakeCommand extends \Illuminate\Foundation\Console\ComponentMakeC
*
* @return void
*/
#[\Override]
public function __construct(Filesystem $files)
{
parent::__construct($files);
Expand Down
8 changes: 8 additions & 0 deletions src/Console/ControllerMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -48,6 +49,7 @@ public function handle()
* @param string $model
* @return string
*/
#[\Override]
protected function qualifyModel(string $model)
{
return $this->qualifyModelUsingCanvas($model);
Expand All @@ -58,6 +60,7 @@ protected function qualifyModel(string $model)
*
* @return array
*/
#[\Override]
protected function buildParentReplacements()
{
$parentModelClass = $this->parseModel($this->option('parent'));
Expand Down Expand Up @@ -86,6 +89,7 @@ protected function buildParentReplacements()
* @param array $replace
* @return array
*/
#[\Override]
protected function buildModelReplacements(array $replace)
{
$modelClass = $this->parseModel($this->option('model'));
Expand Down Expand Up @@ -121,6 +125,7 @@ protected function buildModelReplacements(array $replace)
* @param string $name
* @return string
*/
#[\Override]
protected function getPath($name)
{
return $this->getPathUsingCanvas($name);
Expand All @@ -131,6 +136,7 @@ protected function getPath($name)
*
* @return string
*/
#[\Override]
protected function rootNamespace()
{
return $this->rootNamespaceUsingCanvas();
Expand All @@ -141,6 +147,7 @@ protected function rootNamespace()
*
* @return array<int, string>
*/
#[\Override]
protected function possibleModels()
{
return $this->possibleModelsUsingCanvas();
Expand All @@ -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';
Expand Down

0 comments on commit 1c31a66

Please sign in to comment.