Skip to content

Commit

Permalink
sorted use statements
Browse files Browse the repository at this point in the history
  • Loading branch information
kriswallsmith committed Dec 16, 2011
1 parent 4aea73b commit a97293b
Show file tree
Hide file tree
Showing 31 changed files with 79 additions and 80 deletions.
4 changes: 2 additions & 2 deletions Command/ClearMetadataCacheDoctrineODMCommand.php
Expand Up @@ -11,10 +11,10 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;

use Symfony\Component\Console\Input\InputOption;
use Doctrine\ODM\MongoDB\Tools\Console\Command\ClearCache\MetadataCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Doctrine\ODM\MongoDB\Tools\Console\Command\ClearCache\MetadataCommand;

/**
* Command to clear the metadata cache of the various cache drivers.
Expand Down
6 changes: 3 additions & 3 deletions Command/CreateSchemaDoctrineODMCommand.php
Expand Up @@ -11,12 +11,12 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;

use Doctrine\ODM\MongoDB\Tools\Console\Command\Schema\CreateCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output;
use Doctrine\ODM\MongoDB\Tools\Console\Command\Schema\CreateCommand;
use Symfony\Component\Console\Output\OutputInterface;

/**
* Command to create the database schema for a set of classes based on their mappings.
Expand Down
6 changes: 3 additions & 3 deletions Command/DoctrineODMCommand.php
Expand Up @@ -11,12 +11,12 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;

use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Doctrine\ODM\MongoDB\Tools\Console\Helper\DocumentManagerHelper;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Doctrine\ODM\MongoDB\Tools\DisconnectedClassMetadataFactory;
use Doctrine\ODM\MongoDB\Tools\DocumentGenerator;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
* Base class for Doctrine ODM console commands to extend.
Expand Down
6 changes: 3 additions & 3 deletions Command/DropSchemaDoctrineODMCommand.php
Expand Up @@ -11,12 +11,12 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;

use Doctrine\ODM\MongoDB\Tools\Console\Command\Schema\DropCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output;
use Doctrine\ODM\MongoDB\Tools\Console\Command\Schema\DropCommand;
use Symfony\Component\Console\Output\OutputInterface;

/**
* Command to create the database schema for a set of classes based on their mappings.
Expand Down
4 changes: 2 additions & 2 deletions Command/GenerateDocumentsDoctrineODMCommand.php
Expand Up @@ -12,10 +12,10 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;

use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output;
use Symfony\Component\Console\Output\OutputInterface;

/**
* Generate document classes from mapping information
Expand Down
6 changes: 3 additions & 3 deletions Command/GenerateHydratorsDoctrineODMCommand.php
Expand Up @@ -11,12 +11,12 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;

use Doctrine\ODM\MongoDB\Tools\Console\Command\GenerateHydratorsCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output;
use Doctrine\ODM\MongoDB\Tools\Console\Command\GenerateHydratorsCommand;
use Symfony\Component\Console\Output\OutputInterface;

/**
* Generate the Doctrine ORM document hydrators to your cache directory.
Expand Down
6 changes: 3 additions & 3 deletions Command/GenerateProxiesDoctrineODMCommand.php
Expand Up @@ -11,12 +11,12 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;

use Doctrine\ODM\MongoDB\Tools\Console\Command\GenerateProxiesCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output;
use Doctrine\ODM\MongoDB\Tools\Console\Command\GenerateProxiesCommand;
use Symfony\Component\Console\Output\OutputInterface;

/**
* Generate the Doctrine ORM document proxies to your cache directory.
Expand Down
6 changes: 3 additions & 3 deletions Command/GenerateRepositoriesDoctrineODMCommand.php
Expand Up @@ -11,12 +11,12 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;

use Doctrine\ODM\MongoDB\Tools\DocumentRepositoryGenerator;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output;
use Doctrine\ODM\MongoDB\Tools\DocumentRepositoryGenerator;
use Symfony\Component\Console\Output\OutputInterface;

/**
* Command to generate repository classes for mapping information.
Expand Down
2 changes: 1 addition & 1 deletion Command/InfoDoctrineODMCommand.php
Expand Up @@ -12,8 +12,8 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;

use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

/**
Expand Down
16 changes: 8 additions & 8 deletions Command/LoadDataFixturesDoctrineODMCommand.php
Expand Up @@ -11,20 +11,20 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;

use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Output\Output;
use Symfony\Component\Finder\Finder;
use Symfony\Component\HttpKernel\Util\Filesystem;
use Symfony\Bundle\DoctrineFixturesBundle\Common\DataFixtures\Loader as DataFixturesLoader;
use Doctrine\Common\DataFixtures\Executor\MongoDBExecutor;
use Doctrine\Common\DataFixtures\Purger\MongoDBPurger;
use Doctrine\ODM\MongoDB\DocumentManager;
use Doctrine\ODM\MongoDB\Internal\CommitOrderCalculator;
use Doctrine\ODM\MongoDB\Mapping\ClassMetadata;
use InvalidArgumentException;
use Symfony\Bundle\DoctrineFixturesBundle\Common\DataFixtures\Loader as DataFixturesLoader;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Finder\Finder;
use Symfony\Component\HttpKernel\Util\Filesystem;

/**
* Load data fixtures from bundles.
Expand Down
6 changes: 3 additions & 3 deletions Command/QueryDoctrineODMCommand.php
Expand Up @@ -11,12 +11,12 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\Command;

use Doctrine\ODM\MongoDB\Tools\Console\Command\QueryCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\Output;
use Doctrine\ODM\MongoDB\Tools\Console\Command\QueryCommand;
use Symfony\Component\Console\Output\OutputInterface;

/**
* Execute a Doctrine MongoDB ODM query and output the results.
Expand Down
Expand Up @@ -2,8 +2,8 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;

class CreateHydratorDirectoryPass implements CompilerPassInterface
{
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/CreateProxyDirectoryPass.php
Expand Up @@ -2,8 +2,8 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;

class CreateProxyDirectoryPass implements CompilerPassInterface
{
Expand Down
6 changes: 3 additions & 3 deletions DoctrineMongoDBBundle.php
Expand Up @@ -11,13 +11,13 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle;

use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler\CreateHydratorDirectoryPass;
use Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler\CreateProxyDirectoryPass;
use Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler\EventManagerPass;
use Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\DoctrineMongoDBExtension;
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

/**
* Doctrine MongoDB ODM bundle.
Expand Down
14 changes: 7 additions & 7 deletions Form/ChoiceList/DocumentChoiceList.php
Expand Up @@ -11,16 +11,16 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\Form\ChoiceList;

use Symfony\Component\Form\Util\PropertyPath;
use Symfony\Component\Form\Exception\FormException;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Component\Form\Extension\Core\ChoiceList\ArrayChoiceList;
use Doctrine\Common\Collections\Collection;
use Doctrine\ODM\MongoDB\DocumentManager;
use Doctrine\ODM\MongoDB\Query\Builder;
use Doctrine\ODM\MongoDB\NoResultException;
use Doctrine\ODM\MongoDB\Mapping\ClassMetadata;
use Doctrine\ODM\MongoDB\NoResultException;
use Doctrine\ODM\MongoDB\Query\Builder;
use Doctrine\ODM\MongoDB\UnitOfWork;
use Doctrine\Common\Collections\Collection;
use Symfony\Component\Form\Exception\FormException;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Component\Form\Extension\Core\ChoiceList\ArrayChoiceList;
use Symfony\Component\Form\Util\PropertyPath;

/**
* Allows to choose from a list of documents
Expand Down
2 changes: 1 addition & 1 deletion Form/DataTransformer/DocumentToIdTransformer.php
Expand Up @@ -13,8 +13,8 @@

use Doctrine\Bundle\DoctrineMongoDBBundle\Form\ChoiceList\DocumentChoiceList;
use Symfony\Component\Form\DataTransformerInterface;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Component\Form\Exception\TransformationFailedException;
use Symfony\Component\Form\Exception\UnexpectedTypeException;

/**
* Transforms documents to ids
Expand Down
8 changes: 4 additions & 4 deletions Form/DataTransformer/DocumentsToArrayTransformer.php
Expand Up @@ -12,11 +12,11 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Form\DataTransformer;

use Doctrine\Bundle\DoctrineMongoDBBundle\Form\ChoiceList\DocumentChoiceList;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Component\Form\Exception\TransformationFailedException;
use Symfony\Component\Form\DataTransformerInterface;
use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Symfony\Component\Form\DataTransformerInterface;
use Symfony\Component\Form\Exception\TransformationFailedException;
use Symfony\Component\Form\Exception\UnexpectedTypeException;

/**
* Transforms collections into arrays of ids
Expand Down
4 changes: 2 additions & 2 deletions Form/EventListener/MergeCollectionListener.php
Expand Up @@ -11,9 +11,9 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\Form\EventListener;

use Symfony\Component\Form\FormEvents;
use Symfony\Component\Form\Event\FilterDataEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Form\Event\FilterDataEvent;
use Symfony\Component\Form\FormEvents;

/**
* Merge changes from the request to a Doctrine\Common\Collections\Collection instance.
Expand Down
8 changes: 4 additions & 4 deletions Form/Type/DocumentType.php
Expand Up @@ -11,14 +11,14 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\Form\Type;

use Doctrine\Common\Persistence\ManagerRegistry;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\FormFactoryInterface;
use Doctrine\Bundle\DoctrineMongoDBBundle\Form\ChoiceList\DocumentChoiceList;
use Doctrine\Bundle\DoctrineMongoDBBundle\Form\EventListener\MergeCollectionListener;
use Doctrine\Bundle\DoctrineMongoDBBundle\Form\DataTransformer\DocumentsToArrayTransformer;
use Doctrine\Bundle\DoctrineMongoDBBundle\Form\DataTransformer\DocumentToIdTransformer;
use Doctrine\Bundle\DoctrineMongoDBBundle\Form\EventListener\MergeCollectionListener;
use Doctrine\Common\Persistence\ManagerRegistry;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;
use Symfony\Component\Form\FormFactoryInterface;

/**
* Form type for a MongoDB document
Expand Down
4 changes: 2 additions & 2 deletions Security/DocumentUserProvider.php
Expand Up @@ -12,10 +12,10 @@
namespace Doctrine\Bundle\DoctrineMongoDBBundle\Security;

use Doctrine\ODM\MongoDB\DocumentManager;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\UserProviderInterface;
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Core\User\UserProviderInterface;

class DocumentUserProvider implements UserProviderInterface
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/DependencyInjection/AbstractMongoDBExtensionTest.php
Expand Up @@ -11,9 +11,9 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\Tests\DependencyInjection;

use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\TestCase;
use Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\Compiler\AddValidatorNamespaceAliasPass;
use Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\DoctrineMongoDBExtension;
use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\TestCase;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
use Symfony\Component\DependencyInjection\Reference;
Expand Down
4 changes: 2 additions & 2 deletions Tests/DependencyInjection/ConfigurationTest.php
Expand Up @@ -11,10 +11,10 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\Tests\DependencyInjection;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\Configuration;
use Symfony\Component\Yaml\Yaml;
use Symfony\Component\Config\Definition\Processor;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Yaml\Yaml;

class ConfigurationTest extends \PHPUnit_Framework_TestCase
{
Expand Down
3 changes: 1 addition & 2 deletions Tests/DependencyInjection/DoctrineMongoDBExtensionTest.php
Expand Up @@ -11,10 +11,9 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\Tests\DependencyInjection;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Doctrine\Bundle\DoctrineMongoDBBundle\DependencyInjection\DoctrineMongoDBExtension;

use Symfony\Component\Config\Definition\Processor;
use Symfony\Component\DependencyInjection\ContainerBuilder;

class DoctrineMongoDBExtensionTest extends \PHPUnit_Framework_TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/DependencyInjection/XmlMongoDBExtensionTest.php
Expand Up @@ -11,9 +11,9 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\Tests\DependencyInjection;

use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
use Symfony\Component\Config\FileLocator;

class XmlMongoDBExtensionTest extends AbstractMongoDBExtensionTest
{
Expand Down
2 changes: 1 addition & 1 deletion Tests/DependencyInjection/YamlMongoDBExtensionTest.php
Expand Up @@ -11,9 +11,9 @@

namespace Doctrine\Bundle\DoctrineMongoDBBundle\Tests\DependencyInjection;

use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
use Symfony\Component\Config\FileLocator;

class YamlMongoDBExtensionTest extends AbstractMongoDBExtensionTest
{
Expand Down
4 changes: 2 additions & 2 deletions Tests/Form/ChoiceList/DocumentChoiceListTest.php
Expand Up @@ -13,9 +13,9 @@

require_once __DIR__.'/../../Fixtures/Form/Document.php';

use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\TestCase;
use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\Fixtures\Form\Document;
use Doctrine\Bundle\DoctrineMongoDBBundle\Form\ChoiceList\DocumentChoiceList;
use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\Fixtures\Form\Document;
use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\TestCase;

class DocumentChoiceListTest extends TestCase
{
Expand Down
10 changes: 5 additions & 5 deletions Tests/Form/Type/DocumentTypeTest.php
Expand Up @@ -14,13 +14,13 @@
//require_once __DIR__.'/../../TestCase.php';
require_once __DIR__.'/../../Fixtures/Form/Document.php';

use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Tests\Component\Form\Extension\Core\Type\TypeTestCase;
use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\TestCase;
use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\Fixtures\Form\Document;
use Doctrine\Bundle\DoctrineMongoDBBundle\Form\DoctrineMongoDBExtension;
use Doctrine\ODM\MongoDB\DocumentManager;
use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\Fixtures\Form\Document;
use Doctrine\Bundle\DoctrineMongoDBBundle\Tests\TestCase;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ODM\MongoDB\DocumentManager;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Tests\Component\Form\Extension\Core\Type\TypeTestCase;

/**
* Tests for DocumentType
Expand Down

0 comments on commit a97293b

Please sign in to comment.