protected function getFrames(Inspector $inspector): array
    {
        return $inspector->getFrames()
            ->filter(
                function ($frame) {
                    foreach ($this->ignore as $ignore) {
                        if (preg_match($ignore, $frame->getFile())) {
                            return false;
                        }
                    }

                    return true;
                }
            )
            ->getArray();
    }
protected function getFrames(Inspector $inspector): array
    {
        return $inspector->getFrames()
            ->filter(
                function ($frame) {
                    foreach ($this->ignore as $ignore) {
                        if (preg_match($ignore, $frame->getFile())) {
                            return false;
                        }
                    }

                    return true;
                }
            )
            ->getArray();
    }
protected function getFrames ( Inspector $ inspector ) : array { return $ inspector -> getFrames ( ) -> filter ( function ( $ frame ) { foreach ( $ this -> ignore as $ ignore ) { if ( preg_match ( $ ignore , $ frame -> getFile ( ) ) ) { return false ; } } return true ; } ) -> getArray ( ) ; }
Returns pertinent frames.

@param  \Whoops\Exception\Inspector $inspector

@return array
Returns pertinent frames .