diff --git a/lib/Alchemy/Phrasea/TaskManager/LiveInformation.php b/lib/Alchemy/Phrasea/TaskManager/LiveInformation.php index 9712ce363c..459034255d 100644 --- a/lib/Alchemy/Phrasea/TaskManager/LiveInformation.php +++ b/lib/Alchemy/Phrasea/TaskManager/LiveInformation.php @@ -56,7 +56,7 @@ class LiveInformation /** * Returns live informations about some tasks. * - * @param Task[] $tasks + * @param Task[] $tasks * @param boolean $throwException * * @return array @@ -89,9 +89,10 @@ class LiveInformation try { return $this->notifier->notify(Notifier::MESSAGE_INFORMATIONS); } catch (RuntimeException $e) { - if($throwException) { + if ($throwException) { throw $e; } + return []; } } diff --git a/lib/classes/Bridge/Api/Interface.php b/lib/classes/Bridge/Api/Interface.php index f1ff28b84e..155029a613 100644 --- a/lib/classes/Bridge/Api/Interface.php +++ b/lib/classes/Bridge/Api/Interface.php @@ -9,7 +9,6 @@ * file that was distributed with this source code. */ -use Symfony\Component\Routing\Generator\UrlGenerator; use Symfony\Component\HttpFoundation\Request; interface Bridge_Api_Interface diff --git a/lib/classes/patchAbstract.php b/lib/classes/patchAbstract.php index 32db2ab1de..70400ea56f 100644 --- a/lib/classes/patchAbstract.php +++ b/lib/classes/patchAbstract.php @@ -9,7 +9,6 @@ * file that was distributed with this source code. */ -use Alchemy\Phrasea\Application; use Doctrine\ORM\NoResultException; use Doctrine\ORM\EntityManager;