mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Fix CS
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
namespace Alchemy\Phrasea\Command\Developer;
|
||||
|
||||
use Alchemy\Phrasea\Command\Command;
|
||||
use Alchemy\Phrasea\Exception\InvalidArgumentException;
|
||||
use Alchemy\BinaryDriver\Exception\ExecutionFailureException;
|
||||
use Alchemy\Phrasea\Exception\RuntimeException;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
|
@@ -4,16 +4,7 @@ namespace Alchemy\Phrasea\Command\Developer;
|
||||
|
||||
use Alchemy\Phrasea\Command\Command;
|
||||
use Alchemy\Phrasea\Core\Provider\ORMServiceProvider;
|
||||
use Doctrine\ORM\Tools\Setup;
|
||||
use Doctrine\ORM\Configuration as ORMConfiguration;
|
||||
use Doctrine\ORM\Tools\SchemaTool;
|
||||
use Doctrine\ORM\EntityManager;
|
||||
use Doctrine\Common\Annotations\AnnotationReader;
|
||||
use Doctrine\Common\Annotations\AnnotationRegistry;
|
||||
use Doctrine\Common\Annotations\FileCacheReader;
|
||||
use Doctrine\Common\EventManager;
|
||||
use Doctrine\ORM\Mapping\Driver\AnnotationDriver;
|
||||
use Doctrine\ORM\Mapping\Driver\DriverChain;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Filesystem\Filesystem;
|
||||
|
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace Alchemy\Phrasea\Controller\Admin;
|
||||
|
||||
use Alchemy\Phrasea\Application as PhraseaApplication;
|
||||
use Alchemy\Phrasea\Metadata\TagProvider;
|
||||
use Alchemy\Phrasea\Vocabulary\Controller as VocabularyController;
|
||||
use Silex\Application;
|
||||
|
@@ -601,6 +601,7 @@ class Users implements ControllerProviderInterface
|
||||
$columns = array_filter($columnsSanitized, function ($columnName) use (&$out, $equivalenceToMysqlField) {
|
||||
if (!isset($equivalenceToMysqlField[$columnName])) {
|
||||
$out['ignored_row'][] = $columnName;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace Alchemy\Phrasea\Controller\Thesaurus;
|
||||
|
||||
use Alchemy\Phrasea\Application as PhraseaApplication;
|
||||
use Silex\Application;
|
||||
use Silex\ControllerProviderInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
@@ -12,7 +12,6 @@
|
||||
namespace Alchemy\Phrasea\Core\Event\Subscriber;
|
||||
|
||||
use Silex\Application;
|
||||
use Alchemy\Phrasea\Application as PhraseaApplication;
|
||||
use Symfony\Component\HttpKernel\KernelEvents;
|
||||
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
|
||||
|
@@ -65,6 +65,7 @@ class BytesConverter extends \Twig_Extension
|
||||
return round($bytes / pow(1024, ($i = floor(log($bytes, 1024)))), $precision) . ' ' . $unit[$i];
|
||||
default:
|
||||
$i = array_search($suffix, $unit);
|
||||
|
||||
return round($bytes / pow(1024, $i), $precision) . ' ' . $unit[$i];
|
||||
}
|
||||
}
|
||||
|
@@ -11,7 +11,6 @@
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
|
||||
use Alchemy\Phrasea\Exception\SessionNotFound;
|
||||
use Alchemy\Geonames\Exception\ExceptionInterface as GeonamesExceptionInterface;
|
||||
use Entities\FtpCredential;
|
||||
|
||||
|
@@ -103,8 +103,7 @@ class patch_3902 implements patchInterface
|
||||
$user->setRequestNotificationsActivated(!!$row['request_notifications']);
|
||||
$user->setSaltedPassword(!!$row['salted_password']);
|
||||
|
||||
switch ($row['usr_sexe'])
|
||||
{
|
||||
switch ($row['usr_sexe']) {
|
||||
case 0:
|
||||
$gender = User::GENDER_MISS;
|
||||
break;
|
||||
|
@@ -2,8 +2,6 @@
|
||||
|
||||
namespace Alchemy\Tests\Phrasea\Controller\Prod;
|
||||
|
||||
use Alchemy\Phrasea\Controller\RecordsRequest;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Entities\Order;
|
||||
use Entities\OrderElement;
|
||||
|
||||
|
@@ -1,8 +1,5 @@
|
||||
<?php
|
||||
|
||||
use Alchemy\Phrasea\Controller\RecordsRequest;
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
|
||||
class record_adapterTest extends PhraseanetPHPUnitAuthenticatedAbstract
|
||||
{
|
||||
/**
|
||||
|
Reference in New Issue
Block a user