Skip to content

Commit

Permalink
Merge pull request #47 from emchooo/analysis-0gnLbM
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
emchooo authored Jul 31, 2020
2 parents bfb5740 + 6aef091 commit e0234fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/Console/Commands/MailnessInstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion app/Rules/EmailUniqueForEachListRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e0234fa

Please sign in to comment.