Lucas Michot 9 anni fa
parent
commit
1421255747
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  1. 2 4
      src/Mpociot/ApiDoc/ApiDocGenerator.php

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

@@ -24,11 +24,9 @@ class ApiDocGenerator
         $routeAction = $route->getAction();
         $response = $this->getRouteResponse($route);
         $routeDescription = $this->getRouteDescription($routeAction['uses']);
-        if ($response->headers->get('Content-Type') === 'application/json')
-        {
+        if ($response->headers->get('Content-Type') === 'application/json') {
             $content = json_encode(json_decode($response->getContent()), JSON_PRETTY_PRINT);
-        } else
-        {
+        } else {
             $content = $response->getContent();
         }
         $routeData = [