Browse Source

Merge pull request #22 from lucasmichot/feature/master/useless-variable

No need to create a variable
Marcel Pociot 9 years ago
parent
commit
73f5d8b9e3
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/Mpociot/ApiDoc/ApiDocGenerator.php

+ 1 - 2
src/Mpociot/ApiDoc/ApiDocGenerator.php

@@ -64,9 +64,8 @@ class ApiDocGenerator
     private function getRouteResponse(Route $route)
     {
         $methods = $route->getMethods();
-        $response = $this->callRoute(array_shift($methods), $route->getUri());
 
-        return $response;
+        return $this->callRoute(array_shift($methods), $route->getUri());
     }
 
     /**