Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 committed Jun 6, 2024
2 parents 5a9728d + a2363aa commit 46727ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
8 changes: 1 addition & 7 deletions src/Commands/RequestMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ class RequestMakeCommand extends GeneratorCommand

/**
* Get the console command arguments.
*
* @return array
*/
protected function getArguments(): array
{
Expand All @@ -56,8 +54,6 @@ protected function getArguments(): array

/**
* Get the console command options.
*
* @return array
*/
protected function getOptions(): array
{
Expand All @@ -79,14 +75,12 @@ protected function getTemplateContents(): string
return (new Stub('/request.stub', [
'NAMESPACE' => $this->getClassNamespace(),
'CLASS' => $this->getClass(),
'RULES' => $this->getRules()
'RULES' => $this->getRules(),
]))->render();
}

/**
* return the default rules needed in request class
*
* @return string
*/
protected function getRules(): string
{
Expand Down
5 changes: 0 additions & 5 deletions src/Commands/ResourceMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ class ResourceMakeCommand extends GeneratorCommand

/**
* Get the console command arguments.
*
* @return array
*/
protected function getArguments(): array
{
Expand Down Expand Up @@ -92,9 +90,6 @@ protected function isCollection(): bool
Str::endsWith($this->argument('name'), 'Collection');
}

/**
* @return string
*/
protected function getFileName(): string
{
return Str::studly($this->argument('name')).'.php';
Expand Down

0 comments on commit 46727ac

Please sign in to comment.