Explorar el Código

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

No need to create a variable
Marcel Pociot hace 9 años
padre
commit
73f5d8b9e3
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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());
     }
 
     /**