mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
Fix CS
This commit is contained in:
@@ -14,7 +14,6 @@ namespace Alchemy\Phrasea\Command\Task;
|
||||
use Alchemy\TaskManager\TaskManager;
|
||||
use Alchemy\Phrasea\Command\Command;
|
||||
use Alchemy\TaskManager\Event\TaskManagerSubscriber\LockFileSubscriber;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
|
||||
|
@@ -15,7 +15,6 @@ use Alchemy\Phrasea\Command\Command;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use Alchemy\Phrasea\TaskManager\TaskManagerStatus;
|
||||
|
||||
class SchedulerState extends Command
|
||||
{
|
||||
|
@@ -15,7 +15,6 @@ use Alchemy\Phrasea\Command\Command;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Input\InputArgument;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
|
||||
class TaskStart extends Command
|
||||
{
|
||||
|
@@ -15,7 +15,6 @@ use Alchemy\Phrasea\Command\Command;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
use Symfony\Component\Console\Input\InputArgument;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
|
||||
class TaskStop extends Command
|
||||
{
|
||||
|
@@ -12,7 +12,6 @@
|
||||
namespace Alchemy\Phrasea\Model\Entities;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Gedmo\Mapping\Annotation as Gedmo;
|
||||
|
||||
/**
|
||||
* @ORM\Table(name="AggregateTokens")
|
||||
|
@@ -561,6 +561,7 @@ class Feed implements FeedInterface
|
||||
|| in_array($coll->get_base_id(), array_keys($user->ACL()->get_granted_base()))) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@@ -12,7 +12,6 @@
|
||||
namespace Alchemy\Phrasea\Model\Entities;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Gedmo\Mapping\Annotation as Gedmo;
|
||||
|
||||
/**
|
||||
* @ORM\Table(name="FeedTokens")
|
||||
|
@@ -13,7 +13,6 @@ namespace Alchemy\Phrasea\Model\Entities;
|
||||
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Gedmo\Mapping\Annotation as Gedmo;
|
||||
use Alchemy\Phrasea\Application;
|
||||
|
||||
/**
|
||||
* @ORM\Table(name="FtpCredential")
|
||||
|
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace Alchemy\Phrasea\Model\Entities;
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Gedmo\Mapping\Annotation as Gedmo;
|
||||
|
||||
|
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace Alchemy\Phrasea\Model\Entities;
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Gedmo\Mapping\Annotation as Gedmo;
|
||||
|
||||
|
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace Alchemy\Phrasea\Model\Entities;
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use Gedmo\Mapping\Annotation as Gedmo;
|
||||
|
||||
|
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace Alchemy\Phrasea\Model\Manager;
|
||||
|
||||
use Alchemy\Phrasea\Exception\InvalidArgumentException;
|
||||
use Doctrine\Common\Persistence\ObjectManager;
|
||||
use Alchemy\Phrasea\Model\Entities\User;
|
||||
use Alchemy\Phrasea\Model\Entities\UserSetting;
|
||||
|
@@ -15,10 +15,8 @@ use Alchemy\Geonames\Connector as GeonamesConnector;
|
||||
use Alchemy\Geonames\Exception\ExceptionInterface as GeonamesExceptionInterface;
|
||||
use Alchemy\Phrasea\Model\Manager\UserManager;
|
||||
use Alchemy\Phrasea\Model\Entities\User;
|
||||
use Alchemy\Phrasea\Model\Repositories\UserRepository;
|
||||
use Alchemy\Phrasea\Exception\RuntimeException;
|
||||
use Alchemy\Phrasea\Exception\InvalidArgumentException;
|
||||
use Doctrine\Common\Persistence\ObjectManager;
|
||||
use Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface;
|
||||
|
||||
/**
|
||||
|
@@ -3,8 +3,6 @@
|
||||
namespace Alchemy\Phrasea\Model\Repositories;
|
||||
|
||||
use Doctrine\ORM\EntityRepository;
|
||||
use Alchemy\Phrasea\Model\Entities\Feed;
|
||||
use Alchemy\Phrasea\Model\Entities\FeedPublisher;
|
||||
|
||||
/**
|
||||
* FeedPublisherRepository
|
||||
|
@@ -2,9 +2,7 @@
|
||||
|
||||
namespace Alchemy\Phrasea\Model\Repositories;
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Doctrine\ORM\EntityRepository;
|
||||
use Alchemy\Phrasea\Model\Entities\Feed;
|
||||
|
||||
/**
|
||||
* FeedRepository
|
||||
|
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace Alchemy\Phrasea\Model\Repositories;
|
||||
|
||||
use Alchemy\Phrasea\Application;
|
||||
use Doctrine\ORM\EntityRepository;
|
||||
|
||||
/**
|
||||
|
@@ -118,7 +118,6 @@ class FtpJob extends AbstractJob
|
||||
, " (" . date('r') . ")"
|
||||
) . PHP_EOL;
|
||||
|
||||
|
||||
$this->log('debug', $line);
|
||||
|
||||
try {
|
||||
|
@@ -105,6 +105,7 @@ class FtpPullJob extends AbstractJob
|
||||
if (!$this->isStarted()) {
|
||||
$ftp->close();
|
||||
$this->log('debug', "Stopping");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -13,7 +13,7 @@ namespace Alchemy\Phrasea\TaskManager\Log;
|
||||
|
||||
use Alchemy\Phrasea\Model\Entities\Task;
|
||||
|
||||
class LogFileFactory
|
||||
class LogFilefactory
|
||||
{
|
||||
private $root;
|
||||
|
||||
|
@@ -79,6 +79,7 @@ class TaskManagerStatus
|
||||
{
|
||||
if (!isset($this->conf['task-manager'])) {
|
||||
$this->conf['task-manager'] = array('status' => static::STATUS_STARTED);
|
||||
|
||||
return;
|
||||
}
|
||||
if (!isset($this->conf['task-manager']['status'])) {
|
||||
|
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace Alchemy\Tests\Phrasea\Model\Manipulator;
|
||||
|
||||
use Alchemy\Phrasea\Model\Manager\UserManager;
|
||||
use Alchemy\Phrasea\Model\Entities\UserNotificationSetting;
|
||||
use Alchemy\Phrasea\Model\Entities\UserQuery;
|
||||
use Alchemy\Phrasea\Model\Entities\UserSetting;
|
||||
|
@@ -11,7 +11,6 @@
|
||||
|
||||
namespace Alchemy\Tests\Phrasea\Model\Manipulator;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use Alchemy\Phrasea\Model\Manipulator\UserManipulator;
|
||||
use Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface;
|
||||
use Alchemy\Phrasea\Model\Entities\User;
|
||||
|
@@ -2,10 +2,6 @@
|
||||
|
||||
namespace Alchemy\Tests\Phrasea\Model\Repositories;
|
||||
|
||||
use Alchemy\Phrasea\Model\Entities\FtpExport;
|
||||
use Alchemy\Phrasea\Model\Entities\FtpExportElement;
|
||||
use Gedmo\Timestampable\TimestampableListener;
|
||||
|
||||
class FeedItemRepositoryTest extends \PhraseanetPHPUnitAbstract
|
||||
{
|
||||
public function testIs_record_in_public_feedInPublicFeed()
|
||||
|
@@ -47,7 +47,6 @@ class LiveInformationTest extends \PhraseanetPHPUnitAbstract
|
||||
$this->assertEquals($expected, $live->getManager());
|
||||
}
|
||||
|
||||
|
||||
public function testItReturnsWorkingTaskStatus()
|
||||
{
|
||||
$task = new Task();
|
||||
|
@@ -8,7 +8,6 @@ use Alchemy\Phrasea\Model\Entities\AggregateToken;
|
||||
use Alchemy\Phrasea\Model\Entities\Feed;
|
||||
use Alchemy\Phrasea\Model\Entities\FeedEntry;
|
||||
use Alchemy\Phrasea\Model\Entities\FeedItem;
|
||||
use Alchemy\Phrasea\Model\Entities\FeedPublisher;
|
||||
use Alchemy\Phrasea\Model\Entities\FeedToken;
|
||||
use Alchemy\Phrasea\Model\Entities\Task;
|
||||
use Alchemy\Phrasea\Model\Entities\User;
|
||||
|
Reference in New Issue
Block a user