mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
CS fixer
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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();
|
||||
|
@@ -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
|
||||
*/
|
||||
|
@@ -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
|
||||
{
|
||||
|
@@ -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);
|
||||
|
||||
/**
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user