From 80b44af772b1d40d179f0578a4f6ff7d0235ca71 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sat, 30 Mar 2019 18:33:05 +0100 Subject: [PATCH] style: Clarify long conditions --- controllers/FrontController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/FrontController.php b/controllers/FrontController.php index 04e6b7a..c2cd9d3 100644 --- a/controllers/FrontController.php +++ b/controllers/FrontController.php @@ -263,7 +263,9 @@ class FrontController private function getAudioResponse(Request $request, Response $response, array $params, $password = null) { try { - if (isset($params['from']) && !empty($params['from']) || isset($params['to']) && !empty($params['to'])) { + if ((isset($params['from']) && !empty($params['from'])) + || (isset($params['to']) && !empty($params['to'])) + ) { throw new Exception('Force convert when we need to seek.'); }