protected function findEventMutex($mutex)
    {
        return collect($this->schedule->events())->filter(function ($value) use ($mutex) {
            if (Eye::laravelVersionIs('<', '5.4.0')) {
                $value = $this->convertEvent($value);
            }

            return $value->mutexName() === $mutex;
        })->first();
    }
protected function findEventMutex($mutex)
    {
        return collect($this->schedule->events())->filter(function ($value) use ($mutex) {
            if (Eye::laravelVersionIs('<', '5.4.0')) {
                $value = $this->convertEvent($value);
            }

            return $value->mutexName() === $mutex;
        })->first();
    }
protected function findEventMutex ( $ mutex ) { return collect ( $ this -> schedule -> events ( ) ) -> filter ( function ( $ value ) use ( $ mutex ) { if ( Eye :: laravelVersionIs ( '<' , '5.4.0' ) ) { $ value = $ this -> convertEvent ( $ value ) ; } return $ value -> mutexName ( ) === $ mutex ; } ) -> first ( ) ; }
Find the event that matches the mutex.

@param  $mutex
@return mixd
Find the event that matches the mutex .