Devise\Pages\Interpreter\ViewOpener::includeStatements PHP Method

includeStatements() protected method

Gets the included views from all these matches
protected includeStatements ( string $content ) : array
$content string
return array
    protected function includeStatements($content)
    {
        $includes = [];
        $pattern = "/@include\\s*\\(\\s*\\'([^']+)\\'|" . '@include\\s*\\(\\s*\\"([^"]+)\\"/';
        preg_match_all($pattern, $content, $matches);
        for ($i = 0; $i < count($matches[1]); $i++) {
            $includes[] = $matches[1][$i] ? $matches[1][$i] : $matches[2][$i];
        }
        return array_unique($includes);
    }