Skip to content

Commit 5e56cd3

Browse files
dbuStyleCIBot
authored andcommitted
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent a1532a9 commit 5e56cd3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/ChainRouter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ private function doMatch($pathinfo, Request $request = null)
203203
$info = $request
204204
? "this request\n$request"
205205
: "url '$pathinfo'";
206+
206207
throw $methodNotAllowed ?: new ResourceNotFoundException("None of the routers in the chain matched $info");
207208
}
208209

src/ContentAwareGenerator.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public function generate($name, $parameters = [], $absolute = UrlGeneratorInterf
7878

7979
if (!$route instanceof SymfonyRoute) {
8080
$hint = is_object($route) ? get_class($route) : gettype($route);
81+
8182
throw new RouteNotFoundException('Route of this document is not an instance of Symfony\Component\Routing\Route but: '.$hint);
8283
}
8384

@@ -176,6 +177,7 @@ protected function getRouteByContent($name, &$parameters)
176177
}
177178
} else {
178179
$hint = is_object($name) ? get_class($name) : gettype($name);
180+
179181
throw new RouteNotFoundException("The route name argument '$hint' is not RouteReferrersReadInterface instance and there is no 'content_id' parameter");
180182
}
181183

@@ -184,6 +186,7 @@ protected function getRouteByContent($name, &$parameters)
184186
$hint = ($this->contentRepository && $this->contentRepository->getContentId($content))
185187
? $this->contentRepository->getContentId($content)
186188
: get_class($content);
189+
187190
throw new RouteNotFoundException('Content document has no route: '.$hint);
188191
}
189192

0 commit comments

Comments
 (0)