Skip to content

Commit c807731

Browse files
authored
Update RequestResponseListener.php
1 parent 516bc1a commit c807731

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/EventListener/RequestResponseListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ protected function getRoutingOption(string $routeName, string $optionName): ?str
224224

225225
protected function getRedirectUrl(Request $request, string $view): ?string
226226
{
227-
if (($routingOption = $this->getRoutingOption($request->get('_route'), $view))) {
227+
if ($routingOption = $this->getRoutingOption($request->get('_route'), $view)) {
228228
if (self::REDIRECT === $routingOption) {
229229
// Make sure to hint at the device override, otherwise infinite loop
230230
// redirection may occur if different device views are hosted on
@@ -254,7 +254,7 @@ protected function getRedirectUrl(Request $request, string $view): ?string
254254
*/
255255
protected function getRedirectResponse(Request $request, string $view): ?RedirectResponse
256256
{
257-
if (($host = $this->getRedirectUrl($request, $view))) {
257+
if ($host = $this->getRedirectUrl($request, $view)) {
258258
return $this->deviceView->getRedirectResponse(
259259
$view,
260260
$host,

0 commit comments

Comments
 (0)