From efd69c6de875b47f1a967cc8b8fd3b6b550d9eb2 Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Fri, 14 Feb 2014 16:40:27 +0100 Subject: [PATCH] CS fixer --- lib/Alchemy/Phrasea/Notification/Emitter.php | 1 - lib/Alchemy/Phrasea/Notification/Receiver.php | 1 - .../Phrasea/Setup/Version/PreSchemaUpgrade/Upgrade39.php | 2 +- .../ControlProvider/ControlProviderInterface.php | 7 +++---- .../Phrasea/Vocabulary/ControlProvider/UserProvider.php | 1 - lib/classes/appbox.php | 2 +- lib/classes/record/Interface.php | 1 - 7 files changed, 5 insertions(+), 10 deletions(-) diff --git a/lib/Alchemy/Phrasea/Notification/Emitter.php b/lib/Alchemy/Phrasea/Notification/Emitter.php index af700b5fb4..868182a734 100644 --- a/lib/Alchemy/Phrasea/Notification/Emitter.php +++ b/lib/Alchemy/Phrasea/Notification/Emitter.php @@ -13,7 +13,6 @@ namespace Alchemy\Phrasea\Notification; use Alchemy\Phrasea\Exception\InvalidArgumentException; use Alchemy\Phrasea\Model\Entities\User; -use Symfony\Component\Translation\TranslatorInterface; class Emitter implements EmitterInterface { diff --git a/lib/Alchemy/Phrasea/Notification/Receiver.php b/lib/Alchemy/Phrasea/Notification/Receiver.php index 4da21cf29d..e3671c882c 100644 --- a/lib/Alchemy/Phrasea/Notification/Receiver.php +++ b/lib/Alchemy/Phrasea/Notification/Receiver.php @@ -13,7 +13,6 @@ namespace Alchemy\Phrasea\Notification; use Alchemy\Phrasea\Exception\InvalidArgumentException; use Alchemy\Phrasea\Model\Entities\User; -use Symfony\Component\Translation\TranslatorInterface; class Receiver implements ReceiverInterface { diff --git a/lib/Alchemy/Phrasea/Setup/Version/PreSchemaUpgrade/Upgrade39.php b/lib/Alchemy/Phrasea/Setup/Version/PreSchemaUpgrade/Upgrade39.php index 4bd9f10db6..045f1040a1 100644 --- a/lib/Alchemy/Phrasea/Setup/Version/PreSchemaUpgrade/Upgrade39.php +++ b/lib/Alchemy/Phrasea/Setup/Version/PreSchemaUpgrade/Upgrade39.php @@ -578,7 +578,7 @@ class Upgrade39 implements PreSchemaUpgradeInterface // executes SQLS $connection->beginTransaction(); try { - foreach(array_merge($sqlPreUpdate, $sqlUpdate, $sqlPostUpdate) as $sql) { + foreach (array_merge($sqlPreUpdate, $sqlUpdate, $sqlPostUpdate) as $sql) { $connection->executeQuery($sql); } $connection->commit(); diff --git a/lib/Alchemy/Phrasea/Vocabulary/ControlProvider/ControlProviderInterface.php b/lib/Alchemy/Phrasea/Vocabulary/ControlProvider/ControlProviderInterface.php index 89eb89446f..858e594f0c 100644 --- a/lib/Alchemy/Phrasea/Vocabulary/ControlProvider/ControlProviderInterface.php +++ b/lib/Alchemy/Phrasea/Vocabulary/ControlProvider/ControlProviderInterface.php @@ -12,7 +12,6 @@ namespace Alchemy\Phrasea\Vocabulary\ControlProvider; use Alchemy\Phrasea\Model\Entities\User; -use Symfony\Component\Translation\TranslatorInterface; interface ControlProviderInterface { @@ -50,9 +49,9 @@ interface ControlProviderInterface /** * Find matching Term in the vocabulary repository * - * @param string $query A scalar quaery - * @param User $for_user The user doing the query - * @param \databox $on_databox The databox where vocabulary should be requested + * @param string $query A scalar quaery + * @param User $for_user The user doing the query + * @param \databox $on_databox The databox where vocabulary should be requested * * @return Doctrine\Common\Collections\ArrayCollection */ diff --git a/lib/Alchemy/Phrasea/Vocabulary/ControlProvider/UserProvider.php b/lib/Alchemy/Phrasea/Vocabulary/ControlProvider/UserProvider.php index 069adc45be..6a17a9062c 100644 --- a/lib/Alchemy/Phrasea/Vocabulary/ControlProvider/UserProvider.php +++ b/lib/Alchemy/Phrasea/Vocabulary/ControlProvider/UserProvider.php @@ -15,7 +15,6 @@ use Alchemy\Phrasea\Application; use Alchemy\Phrasea\Model\Entities\User; use Doctrine\Common\Collections\ArrayCollection; use Alchemy\Phrasea\Vocabulary\Term; -use Symfony\Component\Translation\TranslatorInterface; class UserProvider implements ControlProviderInterface { diff --git a/lib/classes/appbox.php b/lib/classes/appbox.php index 2600fde5cc..3f01b3c424 100644 --- a/lib/classes/appbox.php +++ b/lib/classes/appbox.php @@ -297,7 +297,7 @@ class appbox extends base // Executes stuff before applying patches $app['phraseanet.pre-schema-upgrader']->apply($app); - + $upgrader->add_steps_complete(1); /** diff --git a/lib/classes/record/Interface.php b/lib/classes/record/Interface.php index 4814fb44db..b88880691a 100644 --- a/lib/classes/record/Interface.php +++ b/lib/classes/record/Interface.php @@ -9,7 +9,6 @@ * file that was distributed with this source code. */ -use Alchemy\Phrasea\Application; use Alchemy\Phrasea\Model\Entities\User; use Alchemy\Phrasea\SearchEngine\SearchEngineInterface; use Doctrine\ORM\EntityManager;