@@ -54,7 +54,7 @@ public function processRoute(Route $route, array $rulesToApply = [])
5454 $ method = $ controller ->getMethod ($ methodName );
5555
5656 $ parsedRoute = [
57- 'id ' => md5 ($ this ->getUri ($ route ) . ': ' . implode ($ this ->getMethods ($ route ))),
57+ 'id ' => md5 ($ this ->getUri ($ route ). ': ' . implode ($ this ->getMethods ($ route ))),
5858 'methods ' => $ this ->getMethods ($ route ),
5959 'uri ' => $ this ->getUri ($ route ),
6060 'boundUri ' => Utils::getFullUrl ($ route , $ rulesToApply ['bindings ' ] ?? ($ rulesToApply ['response_calls ' ]['bindings ' ] ?? [])),
@@ -71,7 +71,7 @@ public function processRoute(Route $route, array $rulesToApply = [])
7171
7272 $ responses = $ this ->fetchResponses ($ controller , $ method , $ route , $ rulesToApply , $ parsedRoute );
7373 $ parsedRoute ['response ' ] = $ responses ;
74- $ parsedRoute ['showresponse ' ] = !empty ($ responses );
74+ $ parsedRoute ['showresponse ' ] = ! empty ($ responses );
7575
7676 $ parsedRoute ['headers ' ] = $ rulesToApply ['headers ' ] ?? [];
7777
@@ -91,6 +91,7 @@ protected function fetchMetadata(ReflectionClass $controller, ReflectionMethod $
9191 'description ' => '' ,
9292 'authenticated ' => false ,
9393 ];
94+
9495 return $ this ->iterateThroughStrategies ('metadata ' , $ context , [$ route , $ controller , $ method , $ rulesToApply ]);
9596 }
9697
@@ -127,7 +128,7 @@ protected function iterateThroughStrategies(string $key, array $context, array $
127128 $ strategy = new $ strategyClass ($ this ->config );
128129 $ arguments [] = $ context ;
129130 $ results = $ strategy (...$ arguments );
130- if (!is_null ($ results )) {
131+ if (! is_null ($ results )) {
131132 foreach ($ results as $ index => $ item ) {
132133 // Using a for loop rather than array_merge or +=
133134 // so it does not renumber numeric keys
@@ -142,6 +143,7 @@ protected function iterateThroughStrategies(string $key, array $context, array $
142143 }
143144 }
144145 }
146+
145147 return $ context [$ key ];
146148 }
147149
0 commit comments