private function removeTitle($content)
    {
        $titles = [
            'Whoops, looks like something went wrong.',
            'Sorry, the page you are looking for could not be found.',
        ];

        foreach ($titles as $title) {
            $content = str_replace("<h1>{$title}</h1>", '', $content);
        }

        return $content;
    }
private function removeTitle($content)
    {
        $titles = [
            'Whoops, looks like something went wrong.',
            'Sorry, the page you are looking for could not be found.',
        ];

        foreach ($titles as $title) {
            $content = str_replace("<h1>{$title}</h1>", '', $content);
        }

        return $content;
    }
private function removeTitle ( $ content ) { $ titles = [ 'Whoops, looks like something went wrong.' , 'Sorry, the page you are looking for could not be found.' , ] ; foreach ( $ titles as $ title ) { $ content = str_replace ( "<h1>{$title}</h1>" , '' , $ content ) ; } return $ content ; }
Removes title from content as it is same for all exceptions and has no real value.

@param  string $content
@return string
Removes title from content as it is same for all exceptions and has no real value .