private function shouldCapture(Exception $exception)
    {
        $capture = $this->config->get('sneaker.capture');

        if (! is_array($capture)) {
            return false;
        }

        if (in_array('*', $capture)) {
            return true;
        }

        foreach ($capture as $type) {
            if ($exception instanceof $type) {
                return true;
            }
        }

        return false;
    }
private function shouldCapture(Exception $exception)
    {
        $capture = $this->config->get('sneaker.capture');

        if (! is_array($capture)) {
            return false;
        }

        if (in_array('*', $capture)) {
            return true;
        }

        foreach ($capture as $type) {
            if ($exception instanceof $type) {
                return true;
            }
        }

        return false;
    }
private function shouldCapture ( Exception $ exception ) { $ capture = $ this -> config -> get ( 'sneaker.capture' ) ; if ( ! is_array ( $ capture ) ) { return false ; } if ( in_array ( '*' , $ capture ) ) { return true ; } foreach ( $ capture as $ type ) { if ( $ exception instanceof $ type ) { return true ; } } return false ; }
Determine if the exception is in the "capture" list.

@param  Exception $exception
@return boolean
Determine if the exception is in the capture list .