protected function horizonIsRunning()
    {
        if (! $masters = app(MasterSupervisorRepository::class)->all()) {
            return false;
        }

        return collect($masters)->contains(function ($master) {
            return $master->status === 'paused';
        })
            ? false
            : true;
    }
protected function horizonIsRunning()
    {
        if (! $masters = app(MasterSupervisorRepository::class)->all()) {
            return false;
        }

        return collect($masters)->contains(function ($master) {
            return $master->status === 'paused';
        })
            ? false
            : true;
    }
protected function horizonIsRunning ( ) { if ( ! $ masters = app ( MasterSupervisorRepository :: class ) -> all ( ) ) { return false ; } return collect ( $ masters ) -> contains ( function ( $ master ) { return $ master -> status === 'paused' ; } ) ? false : true ; }
Check if Horizon is up.

@return bool
Check if Horizon is up .