style: Clarify long conditions

This commit is contained in:
Pierre Rudloff 2019-03-30 18:33:05 +01:00
parent 5835bd67a5
commit 80b44af772

View file

@ -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.');
}