From a6447e98138d126fb546b4a4f4be78028e20eca3 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sat, 3 Dec 2016 14:01:35 +0100 Subject: [PATCH] Lint --- controllers/FrontController.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/controllers/FrontController.php b/controllers/FrontController.php index bfe93a8..db39e2f 100644 --- a/controllers/FrontController.php +++ b/controllers/FrontController.php @@ -231,11 +231,17 @@ class FrontController $params = $request->getQueryParams(); if (isset($params['url'])) { try { - $url = $this->download->getURL($params['url'], $request->getParam('format'), $this->sessionSegment->getFlash($params['url'])); + $url = $this->download->getURL( + $params['url'], + $request->getParam('format'), + $this->sessionSegment->getFlash($params['url']) + ); return $response->withRedirect($url); } catch (PasswordException $e) { - return $response->withRedirect($this->container->get('router')->pathFor('video').'?url='.urlencode($params['url'])); + return $response->withRedirect( + $this->container->get('router')->pathFor('video').'?url='.urlencode($params['url']) + ); } catch (\Exception $e) { $response->getBody()->write($e->getMessage());