From 9632b437ceb1990c640c760bc9fe5532178bc8df Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 2 Jan 2017 15:00:02 +0200 Subject: [PATCH] Always display check data ouput --- app/Console/Commands/CheckData.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/app/Console/Commands/CheckData.php b/app/Console/Commands/CheckData.php index 002fa55749d3..e37fa165f3e7 100644 --- a/app/Console/Commands/CheckData.php +++ b/app/Console/Commands/CheckData.php @@ -74,16 +74,14 @@ class CheckData extends Command { $this->logMessage('Done'); $errorEmail = env('ERROR_EMAIL'); - if ( ! $this->isValid) { - if ($errorEmail) { - Mail::raw($this->log, function ($message) use ($errorEmail) { - $message->to($errorEmail) - ->from(CONTACT_EMAIL) - ->subject('Check-Data'); - }); - } else { - $this->info($this->log); - } + $this->info($this->log); + + if ( ! $this->isValid && $errorEmail) { + Mail::raw($this->log, function ($message) use ($errorEmail) { + $message->to($errorEmail) + ->from(CONTACT_EMAIL) + ->subject('Check-Data'); + }); } }