protected function pingTimedout()
    {
        $timedout = false;

        $this->database = $this->database->filter(function ($item) use (
            &$timedout
        ) {
            if (! $item['ponged_at']) {
                if (
                    Carbon::now()->diffInSeconds(
                        $this->parseDate($item['pinged_at'])
                    ) > $this->target->timeout
                ) {
                    $timedout = true;

                    return false;
                }

                return true;
            }

            return false;
        });

        return $timedout;
    }
protected function pingTimedout()
    {
        $timedout = false;

        $this->database = $this->database->filter(function ($item) use (
            &$timedout
        ) {
            if (! $item['ponged_at']) {
                if (
                    Carbon::now()->diffInSeconds(
                        $this->parseDate($item['pinged_at'])
                    ) > $this->target->timeout
                ) {
                    $timedout = true;

                    return false;
                }

                return true;
            }

            return false;
        });

        return $timedout;
    }
protected function pingTimedout ( ) { $ timedout = false ; $ this -> database = $ this -> database -> filter ( function ( $ item ) use ( & $ timedout ) { if ( ! $ item [ 'ponged_at' ] ) { if ( Carbon :: now ( ) -> diffInSeconds ( $ this -> parseDate ( $ item [ 'pinged_at' ] ) ) > $ this -> target -> timeout ) { $ timedout = true ; return false ; } return true ; } return false ; } ) ; return $ timedout ; }
Check if a ping timed out.

@return bool
Check if a ping timed out .