File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
src/Mpociot/ApiDoc/Generators Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -27,20 +27,20 @@ protected function getUri($route)
27
27
*/
28
28
public function processRoute ($ route , $ bindings = [], $ withResponse = true )
29
29
{
30
- $ response = '' ;
31
-
32
- if ($ withResponse ) {
33
- $ response = $ this ->getRouteResponse ($ route , $ bindings );
34
- }
30
+ $ content = '' ;
35
31
36
32
$ routeAction = $ route ->getAction ();
37
33
$ routeGroup = $ this ->getRouteGroup ($ routeAction ['uses ' ]);
38
34
$ routeDescription = $ this ->getRouteDescription ($ routeAction ['uses ' ]);
39
35
40
- if ($ response ->headers ->get ('Content-Type ' ) === 'application/json ' ) {
41
- $ content = json_encode (json_decode ($ response ->getContent ()), JSON_PRETTY_PRINT );
42
- } else {
43
- $ content = $ response ->getContent ();
36
+
37
+ if ($ withResponse ) {
38
+ $ response = $ this ->getRouteResponse ($ route , $ bindings );
39
+ if ($ response ->headers ->get ('Content-Type ' ) === 'application/json ' ) {
40
+ $ content = json_encode (json_decode ($ response ->getContent ()), JSON_PRETTY_PRINT );
41
+ } else {
42
+ $ content = $ response ->getContent ();
43
+ }
44
44
}
45
45
46
46
return $ this ->getParameters ([
You can’t perform that action at this time.
0 commit comments