return [];
} $content =
$this->
getFileContent($filename,
$reflection->
getStartLine());
if ($content === null
) { return [];
} $namespace =
preg_quote($reflection->
getNamespaceName());
$content =
preg_replace('/^.*?(\bnamespace\s+' .
$namespace . '\s*[;{].*)$/s', '\\1',
$content);
$tokenizer =
new TokenParser('<?php ' .
$content);
return $tokenizer->
parseUseStatements($reflection->
getNamespaceName());
} /**
* Gets the content of the file right up to the given line number.
*
* @param string $filename The name of the file to load.
* @param int $lineNumber The number of lines to read from file.
*
* @return string|null The content of the file or null if the file does not exist.
*/