Completed
Pull Request — master (#5569)
by Jérémy
10:47
created
lib/Doctrine/ORM/AbstractQuery.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -22,13 +22,10 @@
 block discarded – undo
22 22
 use Doctrine\Common\Util\ClassUtils;
23 23
 use Doctrine\Common\Collections\Collection;
24 24
 use Doctrine\Common\Collections\ArrayCollection;
25
-
26 25
 use Doctrine\ORM\Query\Parameter;
27 26
 use Doctrine\ORM\Cache\QueryCacheKey;
28 27
 use Doctrine\DBAL\Cache\QueryCacheProfile;
29
-
30 28
 use Doctrine\ORM\Cache;
31
-use Doctrine\ORM\Query\QueryException;
32 29
 
33 30
 /**
34 31
  * Base contract for ORM queries. Base class for Query and NativeQuery.
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Internal/Hydration/ObjectHydrator.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -24,9 +24,6 @@
 block discarded – undo
24 24
 use Doctrine\ORM\Mapping\ClassMetadata;
25 25
 use Doctrine\ORM\PersistentCollection;
26 26
 use Doctrine\ORM\Query;
27
-use Doctrine\ORM\Events;
28
-use Doctrine\ORM\Event\LifecycleEventArgs;
29
-use Doctrine\ORM\Event\PostLoadEventDispatcher;
30 27
 use Doctrine\Common\Collections\ArrayCollection;
31 28
 use Doctrine\ORM\Proxy\Proxy;
32 29
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Persisters/Collection/OneToManyPersister.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 namespace Doctrine\ORM\Persisters\Collection;
21 21
 
22 22
 use Doctrine\Common\Collections\Criteria;
23
-use Doctrine\Common\Proxy\Proxy;
24 23
 use Doctrine\DBAL\Types\Type;
25 24
 use Doctrine\ORM\PersistentCollection;
26 25
 use Doctrine\ORM\Utility\PersisterHelper;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Persisters/Entity/JoinedSubclassPersister.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -20,11 +20,8 @@
 block discarded – undo
20 20
 namespace Doctrine\ORM\Persisters\Entity;
21 21
 
22 22
 use Doctrine\ORM\Mapping\ClassMetadata;
23
-use Doctrine\ORM\Query\ResultSetMapping;
24
-
25 23
 use Doctrine\DBAL\LockMode;
26 24
 use Doctrine\DBAL\Types\Type;
27
-
28 25
 use Doctrine\Common\Collections\Criteria;
29 26
 use Doctrine\ORM\Utility\PersisterHelper;
30 27
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Query/ResultSetMappingBuilder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 
20 20
 namespace Doctrine\ORM\Query;
21 21
 
22
-use Doctrine\DBAL\Types\Type;
23 22
 use Doctrine\ORM\EntityManagerInterface;
24 23
 use Doctrine\ORM\Mapping\ClassMetadataInfo;
25 24
 use Doctrine\ORM\Mapping\MappingException;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/QueryBuilder.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@
 block discarded – undo
21 21
 
22 22
 use Doctrine\Common\Collections\ArrayCollection;
23 23
 use Doctrine\Common\Collections\Criteria;
24
-
25 24
 use Doctrine\ORM\Query\Expr;
26 25
 use Doctrine\ORM\Query\QueryExpressionVisitor;
27 26
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Pagination/LimitSubqueryOutputWalker.php 1 patch
Unused Use Statements   -9 removed lines patch added patch discarded remove patch
@@ -18,18 +18,9 @@
 block discarded – undo
18 18
 use Doctrine\DBAL\Platforms\PostgreSqlPlatform;
19 19
 use Doctrine\DBAL\Platforms\SQLAnywherePlatform;
20 20
 use Doctrine\DBAL\Platforms\SQLServerPlatform;
21
-use Doctrine\ORM\Query\AST\ArithmeticExpression;
22
-use Doctrine\ORM\Query\AST\ArithmeticFactor;
23
-use Doctrine\ORM\Query\AST\ArithmeticTerm;
24
-use Doctrine\ORM\Query\AST\Literal;
25 21
 use Doctrine\ORM\Query\AST\OrderByClause;
26
-use Doctrine\ORM\Query\AST\OrderByItem;
27 22
 use Doctrine\ORM\Query\AST\PartialObjectExpression;
28
-use Doctrine\ORM\Query\AST\PathExpression;
29 23
 use Doctrine\ORM\Query\AST\SelectExpression;
30
-use Doctrine\ORM\Query\AST\SimpleArithmeticExpression;
31
-use Doctrine\ORM\Query\Expr\OrderBy;
32
-use Doctrine\ORM\Query\Expr\Select;
33 24
 use Doctrine\ORM\Query\SqlWalker;
34 25
 use Doctrine\ORM\Query\AST\SelectStatement;
35 26
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Pagination/LimitSubqueryWalker.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 
21 21
 use Doctrine\DBAL\Types\Type;
22 22
 use Doctrine\ORM\Mapping\ClassMetadataInfo;
23
-use Doctrine\ORM\ORMException;
24 23
 use Doctrine\ORM\Query;
25 24
 use Doctrine\ORM\Query\TreeWalkerAdapter;
26 25
 use Doctrine\ORM\Query\AST\Functions\IdentityFunction;
Please login to merge, or discard this patch.
lib/Doctrine/ORM/UnitOfWork.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@  discard block
 block discarded – undo
26 26
 use Exception;
27 27
 use InvalidArgumentException;
28 28
 use UnexpectedValueException;
29
-
30 29
 use Doctrine\Common\Collections\ArrayCollection;
31 30
 use Doctrine\Common\Collections\Collection;
32 31
 use Doctrine\Common\NotifyPropertyChanged;
@@ -34,14 +33,12 @@  discard block
 block discarded – undo
34 33
 use Doctrine\Common\Persistence\ObjectManagerAware;
35 34
 use Doctrine\ORM\Mapping\ClassMetadata;
36 35
 use Doctrine\ORM\Proxy\Proxy;
37
-
38 36
 use Doctrine\ORM\Event\LifecycleEventArgs;
39 37
 use Doctrine\ORM\Event\PreUpdateEventArgs;
40 38
 use Doctrine\ORM\Event\PreFlushEventArgs;
41 39
 use Doctrine\ORM\Event\OnFlushEventArgs;
42 40
 use Doctrine\ORM\Event\PostFlushEventArgs;
43 41
 use Doctrine\ORM\Event\ListenersInvoker;
44
-
45 42
 use Doctrine\ORM\Cache\Persister\CachedPersister;
46 43
 use Doctrine\ORM\Persisters\Entity\BasicEntityPersister;
47 44
 use Doctrine\ORM\Persisters\Entity\SingleTablePersister;
@@ -49,7 +46,6 @@  discard block
 block discarded – undo
49 46
 use Doctrine\ORM\Persisters\Collection\OneToManyPersister;
50 47
 use Doctrine\ORM\Persisters\Collection\ManyToManyPersister;
51 48
 use Doctrine\ORM\Utility\IdentifierFlattener;
52
-use Doctrine\ORM\Cache\AssociationCacheEntry;
53 49
 
54 50
 /**
55 51
  * The UnitOfWork is responsible for tracking changes to objects during an
Please login to merge, or discard this patch.