瀏覽代碼

Fix style

Lucas Michot 9 年之前
父節點
當前提交
1421255747
共有 1 個文件被更改,包括 2 次插入4 次删除
  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 = [