public function findFailed($id)
    {
        $attributes = $this->connection()->hmget(
            $id, $this->keys
        );

        $job = is_array($attributes) && $attributes[0] !== null ? (object) array_combine($this->keys, $attributes) : null;

        if ($job && $job->status !== 'failed') {
            return;
        }

        return $job;
    }
public function findFailed($id)
    {
        $attributes = $this->connection()->hmget(
            $id, $this->keys
        );

        $job = is_array($attributes) && $attributes[0] !== null ? (object) array_combine($this->keys, $attributes) : null;

        if ($job && $job->status !== 'failed') {
            return;
        }

        return $job;
    }
public function findFailed ( $ id ) { $ attributes = $ this -> connection ( ) -> hmget ( $ id , $ this -> keys ) ; $ job = is_array ( $ attributes ) && $ attributes [ 0 ] !== null ? ( object ) array_combine ( $ this -> keys , $ attributes ) : null ; if ( $ job && $ job -> status !== 'failed' ) { return ; } return $ job ; }
Find a failed job by ID.

@param  string  $id
@return \stdClass|null
Find a failed job by ID .