Skip to content

Commit

Permalink
Inline local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jan 20, 2023
1 parent e3d1d0b commit 291e5d4
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,9 @@ protected function validatePublicationType(PublicationType $publicationType): vo
protected function getPublicationTypesToValidate(): Collection
{
$publicationTypes = PublicationService::getPublicationTypes();
$name = $this->argument('publicationType');

if (filled($name)) {
return $this->getPublicationTypeFromArgument($publicationTypes, $name);
if (filled($this->argument('publicationType'))) {
return $this->getPublicationTypeFromArgument($publicationTypes, $this->argument('publicationType'));
}

if ($publicationTypes->isEmpty()) {
Expand Down

0 comments on commit 291e5d4

Please sign in to comment.