Преглед на файлове

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

No need to create a variable
Marcel Pociot преди 9 години
родител
ревизия
73f5d8b9e3
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  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());
     }
 
     /**