From b836dc86320e15e40b4c034c87b594c98c03da22 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Sat, 1 Mar 2014 14:40:03 +0100 Subject: [PATCH] Fix CS --- lib/Alchemy/Phrasea/TaskManager/LiveInformation.php | 5 +++-- lib/classes/Bridge/Api/Interface.php | 1 - lib/classes/patchAbstract.php | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) 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;