Skip to content
Browse files

Made the code more clear

  • Loading branch information...
1 parent 79ebe98 commit 88ace78b3e9405a99fa10b672316959d36c15885 @baldurrensch committed Aug 28, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 Extractor/ApiDocExtractor.php
View
3 Extractor/ApiDocExtractor.php
@@ -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);
}

0 comments on commit 88ace78

Please sign in to comment.
Something went wrong with that request. Please try again.