Browse Source

Fix style

Lucas Michot 9 năm trước cách đây
mục cha
commit
1421255747

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

@@ -24,11 +24,9 @@ class ApiDocGenerator
         $routeAction = $route->getAction();
         $routeAction = $route->getAction();
         $response = $this->getRouteResponse($route);
         $response = $this->getRouteResponse($route);
         $routeDescription = $this->getRouteDescription($routeAction['uses']);
         $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);
             $content = json_encode(json_decode($response->getContent()), JSON_PRETTY_PRINT);
-        } else
-        {
+        } else {
             $content = $response->getContent();
             $content = $response->getContent();
         }
         }
         $routeData = [
         $routeData = [