Skip to content

Commit

Permalink
Made the code more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
Baldur Rensch committed Aug 28, 2012
1 parent 79ebe98 commit 88ace78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Extractor/ApiDocExtractor.php
Expand Up @@ -306,7 +306,8 @@ protected function extractData(ApiDoc $annotation, Route $route, \ReflectionMeth
$annotation->setUri($route->getPattern());

// Include File
if ("" != ($fileToInclude = $annotation->getFileToInclude())) {
$fileToInclude = $annotation->getFileToInclude();
if (!empty($fileToInclude)) {
$refl = new \ReflectionClass($method->class);
$annotation->setFileToInclude(dirname($refl->getFileName()) . DIRECTORY_SEPARATOR . $fileToInclude);
}
Expand Down

0 comments on commit 88ace78

Please sign in to comment.