Always display check data ouput

This commit is contained in:
Hillel Coren 2017-01-02 15:00:02 +02:00
parent 9b13321a7f
commit 9632b437ce

View File

@ -74,16 +74,14 @@ class CheckData extends Command {
$this->logMessage('Done');
$errorEmail = env('ERROR_EMAIL');
if ( ! $this->isValid) {
if ($errorEmail) {
$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');
});
} else {
$this->info($this->log);
}
}
}