diff --git a/app/Console/Commands/MailnessInstallCommand.php b/app/Console/Commands/MailnessInstallCommand.php index eb01430..f8831a9 100644 --- a/app/Console/Commands/MailnessInstallCommand.php +++ b/app/Console/Commands/MailnessInstallCommand.php @@ -31,10 +31,10 @@ public function handle() $this->createEnvFile(); - if (strlen(config('app.key')) === 0) : + if (strlen(config('app.key')) === 0) { $this->call('key:generate'); - $this->line('Secret key properly generated'); - endif; + $this->line('Secret key properly generated'); + } $credentials = $this->requestDatabaseCredentials(); diff --git a/app/Rules/EmailUniqueForEachListRule.php b/app/Rules/EmailUniqueForEachListRule.php index 7809a1b..e01ba42 100644 --- a/app/Rules/EmailUniqueForEachListRule.php +++ b/app/Rules/EmailUniqueForEachListRule.php @@ -40,7 +40,7 @@ public function passes($attribute, $value) return null === Contact::query() ->where('email', $value) - ->when($this->list, function (Builder $query) use ($contact) { + ->when($this->list, function (Builder $query) { return $query->where('list_id', '=', $this->list->id); }) ->when($contact, function (Builder $query) use ($contact) {