Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 8, 2019
1 parent 4aa3d81 commit e4d4b78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Console/StatusCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class StatusCommand extends Command
*
* @var string
*/
protected $description = 'Get the current status of Horizon.';
protected $description = 'Get the current status of Horizon';

/**
* Execute the console command.
Expand All @@ -41,11 +41,11 @@ public function handle(MasterSupervisorRepository $masterSupervisorRepository)
protected function currentStatus(MasterSupervisorRepository $masterSupervisorRepository)
{
if (! $masters = $masterSupervisorRepository->all()) {
return 'inactive';
return 'Horizon is inactive.';
}

return collect($masters)->contains(function ($master) {
return $master->status === 'paused';
}) ? 'paused' : 'running';
}) ? 'Horizon is paused.' : 'Horizon is running.';
}
}

0 comments on commit e4d4b78

Please sign in to comment.