Skip to content

Commit 3518d67

Browse files
committed
Update for coding standards.
1 parent 574266f commit 3518d67

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ChainRouter.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,12 @@ private function doMatch($url, Request $request = null)
170170
// matching requests is more powerful than matching URLs only, so try that first
171171
if ($router instanceof RequestMatcherInterface) {
172172
if (null === $request) {
173-
$request_for_matching = Request::create($url);
174-
}
175-
else {
176-
$request_for_matching = $request;
173+
$requestForMatching = Request::create($url);
174+
} else {
175+
$requestForMatching = $request;
177176
}
178177

179-
return $router->matchRequest($request_for_matching);
178+
return $router->matchRequest($requestForMatching);
180179
}
181180
// every router implements the match method
182181
return $router->match($url);

0 commit comments

Comments
 (0)