Skip to content

Commit 528eef3

Browse files
Alpha-ordering for "use" statements
1 parent 82d13da commit 528eef3

File tree

796 files changed

+1457
-1456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

796 files changed

+1457
-1456
lines changed

.php_cs.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ return PhpCsFixer\Config::create()
1111
'@PHPUnit48Migration:risky' => true,
1212
'php_unit_no_expectation_annotation' => false, // part of `PHPUnitXYMigration:risky` ruleset, to be enabled when PHPUnit 4.x support will be dropped, as we don't want to rewrite exceptions handling twice
1313
'array_syntax' => array('syntax' => 'long'),
14+
'ordered_imports' => true,
1415
'protected_to_private' => false,
1516
// rule disabled due to https://bugs.php.net/bug.php?id=60573 bug;
1617
// to be re-enabled (by dropping next line, rule is part of @Symfony already) on branch that requires PHP 5.4+

src/Symfony/Bridge/Doctrine/DataCollector/DoctrineDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
use Doctrine\Common\Persistence\ManagerRegistry;
1515
use Doctrine\DBAL\Logging\DebugStack;
1616
use Doctrine\DBAL\Types\Type;
17-
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
1817
use Symfony\Component\HttpFoundation\Request;
1918
use Symfony\Component\HttpFoundation\Response;
19+
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
2020

2121
/**
2222
* DoctrineDataCollector.

src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
namespace Symfony\Bridge\Doctrine\DependencyInjection;
1313

14-
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
14+
use Symfony\Component\Config\Resource\FileResource;
1515
use Symfony\Component\DependencyInjection\Alias;
1616
use Symfony\Component\DependencyInjection\ContainerBuilder;
1717
use Symfony\Component\DependencyInjection\Definition;
1818
use Symfony\Component\DependencyInjection\Reference;
19-
use Symfony\Component\Config\Resource\FileResource;
19+
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
2020

2121
/**
2222
* This abstract classes groups common code that Doctrine Object Manager extensions (ORM, MongoDB, CouchDB) need.

src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/DoctrineValidationPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Bridge\Doctrine\DependencyInjection\CompilerPass;
1313

14-
use Symfony\Component\DependencyInjection\ContainerBuilder;
15-
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
1614
use Symfony\Component\Config\Resource\FileResource;
15+
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
16+
use Symfony\Component\DependencyInjection\ContainerBuilder;
1717

1818
/**
1919
* Registers additional validators.

src/Symfony/Bridge/Doctrine/DependencyInjection/CompilerPass/RegisterMappingsPass.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
namespace Symfony\Bridge\Doctrine\DependencyInjection\CompilerPass;
1313

14-
use Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException;
14+
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
1515
use Symfony\Component\DependencyInjection\ContainerBuilder;
1616
use Symfony\Component\DependencyInjection\Definition;
17+
use Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException;
1718
use Symfony\Component\DependencyInjection\Reference;
18-
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
1919

2020
/**
2121
* Base class for the doctrine bundles to provide a compiler pass class that

src/Symfony/Bridge/Doctrine/DependencyInjection/Security/UserProvider/EntityFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
namespace Symfony\Bridge\Doctrine\DependencyInjection\Security\UserProvider;
1313

14-
use Symfony\Component\Config\Definition\Builder\NodeDefinition;
1514
use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\UserProvider\UserProviderFactoryInterface;
16-
use Symfony\Component\DependencyInjection\DefinitionDecorator;
15+
use Symfony\Component\Config\Definition\Builder\NodeDefinition;
1716
use Symfony\Component\DependencyInjection\ContainerBuilder;
17+
use Symfony\Component\DependencyInjection\DefinitionDecorator;
1818

1919
/**
2020
* EntityFactory creates services for Doctrine user provider.

src/Symfony/Bridge/Doctrine/Form/ChoiceList/ORMQueryBuilderLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
namespace Symfony\Bridge\Doctrine\Form\ChoiceList;
1313

14-
use Symfony\Component\Form\Exception\UnexpectedTypeException;
15-
use Doctrine\ORM\QueryBuilder;
16-
use Doctrine\DBAL\Connection;
1714
use Doctrine\Common\Persistence\ObjectManager;
15+
use Doctrine\DBAL\Connection;
16+
use Doctrine\ORM\QueryBuilder;
17+
use Symfony\Component\Form\Exception\UnexpectedTypeException;
1818

1919
/**
2020
* Loads entities using a {@link QueryBuilder} instance.

src/Symfony/Bridge/Doctrine/Form/DataTransformer/CollectionToArrayTransformer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111

1212
namespace Symfony\Bridge\Doctrine\Form\DataTransformer;
1313

14-
use Symfony\Component\Form\Exception\TransformationFailedException;
15-
use Symfony\Component\Form\DataTransformerInterface;
16-
use Doctrine\Common\Collections\Collection;
1714
use Doctrine\Common\Collections\ArrayCollection;
15+
use Doctrine\Common\Collections\Collection;
16+
use Symfony\Component\Form\DataTransformerInterface;
17+
use Symfony\Component\Form\Exception\TransformationFailedException;
1818

1919
/**
2020
* @author Bernhard Schussek <bschussek@gmail.com>

src/Symfony/Bridge/Doctrine/Form/DoctrineOrmTypeGuesser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313

1414
use Doctrine\Common\Persistence\ManagerRegistry;
1515
use Doctrine\Common\Persistence\Mapping\MappingException;
16+
use Doctrine\Common\Util\ClassUtils;
1617
use Doctrine\DBAL\Types\Type;
1718
use Doctrine\ORM\Mapping\ClassMetadataInfo;
1819
use Doctrine\ORM\Mapping\MappingException as LegacyMappingException;
1920
use Symfony\Component\Form\FormTypeGuesserInterface;
2021
use Symfony\Component\Form\Guess\Guess;
2122
use Symfony\Component\Form\Guess\TypeGuess;
2223
use Symfony\Component\Form\Guess\ValueGuess;
23-
use Doctrine\Common\Util\ClassUtils;
2424

2525
class DoctrineOrmTypeGuesser implements FormTypeGuesserInterface
2626
{

src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
namespace Symfony\Bridge\Doctrine\Form\EventListener;
1313

1414
use Doctrine\Common\Collections\Collection;
15-
use Symfony\Component\Form\FormEvents;
16-
use Symfony\Component\Form\FormEvent;
1715
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
16+
use Symfony\Component\Form\FormEvent;
17+
use Symfony\Component\Form\FormEvents;
1818

1919
/**
2020
* Merge changes from the request to a Doctrine\Common\Collections\Collection instance.

0 commit comments

Comments
 (0)