@@ -30,8 +30,8 @@ |
||
30 | 30 | public function testCmsModelSet(string $path) |
31 | 31 | { |
32 | 32 | $this->em->getConfiguration() |
33 | - ->getMetadataDriverImpl() |
|
34 | - ->addPaths([$path]); |
|
33 | + ->getMetadataDriverImpl() |
|
34 | + ->addPaths([$path]); |
|
35 | 35 | |
36 | 36 | self::assertEmpty($this->validator->validateMapping()); |
37 | 37 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\Tests\ORM\Tools; |
6 | 6 | |
@@ -42,12 +42,12 @@ discard block |
||
42 | 42 | public function modelSetProvider(): array |
43 | 43 | { |
44 | 44 | return [ |
45 | - 'cms' => [__DIR__ . '/../../Models/CMS'], |
|
46 | - 'company' => [__DIR__ . '/../../Models/Company'], |
|
47 | - 'ecommerce' => [__DIR__ . '/../../Models/ECommerce'], |
|
48 | - 'forum' => [__DIR__ . '/../../Models/Forum'], |
|
49 | - 'navigation' => [__DIR__ . '/../../Models/Navigation'], |
|
50 | - 'routing' => [__DIR__ . '/../../Models/Routing'], |
|
45 | + 'cms' => [__DIR__.'/../../Models/CMS'], |
|
46 | + 'company' => [__DIR__.'/../../Models/Company'], |
|
47 | + 'ecommerce' => [__DIR__.'/../../Models/ECommerce'], |
|
48 | + 'forum' => [__DIR__.'/../../Models/Forum'], |
|
49 | + 'navigation' => [__DIR__.'/../../Models/Navigation'], |
|
50 | + 'routing' => [__DIR__.'/../../Models/Routing'], |
|
51 | 51 | ]; |
52 | 52 | } |
53 | 53 |
@@ -72,7 +72,7 @@ |
||
72 | 72 | /** |
73 | 73 | * Arbitrary Join |
74 | 74 | */ |
75 | - public function testLimitSubqueryWithArbitraryJoin() |
|
75 | + public function testLimitSubqueryWithArbitraryJoin() |
|
76 | 76 | { |
77 | 77 | $dql = 'SELECT p, c FROM Doctrine\Tests\ORM\Tools\Pagination\MyBlogPost p JOIN Doctrine\Tests\ORM\Tools\Pagination\Category c WITH p.category = c'; |
78 | 78 | $query = $this->entityManager->createQuery($dql); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\Tests\ORM\Tools\Pagination; |
6 | 6 |
@@ -84,7 +84,7 @@ |
||
84 | 84 | $this->entityManager->getConnection()->setDatabasePlatform(new PostgreSqlPlatform); |
85 | 85 | |
86 | 86 | $query = $this->entityManager->createQuery( |
87 | - 'SELECT u, g, COUNT(g.id) AS hidden g_quantity FROM Doctrine\Tests\ORM\Tools\Pagination\User u JOIN u.groups g ORDER BY g_quantity, u.id DESC' |
|
87 | + 'SELECT u, g, COUNT(g.id) AS hidden g_quantity FROM Doctrine\Tests\ORM\Tools\Pagination\User u JOIN u.groups g ORDER BY g_quantity, u.id DESC' |
|
88 | 88 | ); |
89 | 89 | $limitQuery = clone $query; |
90 | 90 | $limitQuery->setHint(Query::HINT_CUSTOM_OUTPUT_WALKER, LimitSubqueryOutputWalker::class); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\Tests\ORM\Tools\Pagination; |
6 | 6 |
@@ -130,7 +130,7 @@ |
||
130 | 130 | { |
131 | 131 | $this->expectException(MappingException::class); |
132 | 132 | $this->expectExceptionMessage( |
133 | - 'Entity \'Doctrine\Tests\ORM\Mapping\HierarchyBEntity\' has to be part of the discriminator map' |
|
133 | + 'Entity \'Doctrine\Tests\ORM\Mapping\HierarchyBEntity\' has to be part of the discriminator map' |
|
134 | 134 | . ' of \'Doctrine\Tests\ORM\Mapping\HierarchyBase\' to be properly mapped in the inheritance hierarchy.' |
135 | 135 | . ' Alternatively you can make \'Doctrine\Tests\ORM\Mapping\HierarchyBEntity\' an abstract class to' |
136 | 136 | . ' avoid this exception from occurring.' |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\Tests\ORM\Mapping; |
6 | 6 |
@@ -24,18 +24,18 @@ |
||
24 | 24 | public $avatar; |
25 | 25 | |
26 | 26 | public function getId() { |
27 | - return $this->id; |
|
27 | + return $this->id; |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | public function getUsername() { |
31 | - return $this->username; |
|
31 | + return $this->username; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | public function getAvatar() { |
35 | - return $this->avatar; |
|
35 | + return $this->avatar; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | public function setAvatar(ForumAvatar $avatar) { |
39 | - $this->avatar = $avatar; |
|
39 | + $this->avatar = $avatar; |
|
40 | 40 | } |
41 | 41 | } |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\Tests\Models\Forum; |
6 | 6 |
@@ -25,12 +25,12 @@ |
||
25 | 25 | |
26 | 26 | if ($this->maxRunningTime != 0 && $time > $this->maxRunningTime) { |
27 | 27 | $this->fail( |
28 | - sprintf( |
|
28 | + sprintf( |
|
29 | 29 | 'expected running time: <= %s but was: %s', |
30 | 30 | |
31 | 31 | $this->maxRunningTime, |
32 | 32 | $time |
33 | - ) |
|
33 | + ) |
|
34 | 34 | ); |
35 | 35 | } |
36 | 36 | } |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Doctrine\Tests; |
6 | 6 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public function setMaxRunningTime($maxRunningTime) |
50 | 50 | { |
51 | - if (! (is_int($maxRunningTime) && $maxRunningTime >= 0)) { |
|
51 | + if ( ! (is_int($maxRunningTime) && $maxRunningTime >= 0)) { |
|
52 | 52 | throw new \InvalidArgumentException; |
53 | 53 | } |
54 | 54 |
@@ -23,7 +23,6 @@ |
||
23 | 23 | namespace Doctrine\ORM\Cache; |
24 | 24 | |
25 | 25 | use Doctrine\Common\Util\ClassUtils; |
26 | - |
|
27 | 26 | use Doctrine\ORM\Mapping\FetchMode; |
28 | 27 | use Doctrine\ORM\Mapping\FieldMetadata; |
29 | 28 | use Doctrine\ORM\Mapping\OneToOneAssociationMetadata; |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * <http://www.doctrine-project.org>. |
19 | 19 | */ |
20 | 20 | |
21 | -declare(strict_types=1); |
|
21 | +declare(strict_types = 1); |
|
22 | 22 | |
23 | 23 | namespace Doctrine\ORM\Cache; |
24 | 24 | |
@@ -76,11 +76,11 @@ discard block |
||
76 | 76 | $data = array_merge($data, $persister->getIdentifier($entity)); // why update has no identifier values ? |
77 | 77 | |
78 | 78 | foreach ($metadata->getProperties() as $name => $association) { |
79 | - if (! isset($data[$name]) || $association instanceof FieldMetadata) { |
|
79 | + if ( ! isset($data[$name]) || $association instanceof FieldMetadata) { |
|
80 | 80 | continue; |
81 | 81 | } |
82 | 82 | |
83 | - if (! $association instanceof ToOneAssociationMetadata) { |
|
83 | + if ( ! $association instanceof ToOneAssociationMetadata) { |
|
84 | 84 | unset($data[$name]); |
85 | 85 | |
86 | 86 | continue; |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $targetClassMetadata = $this->em->getClassMetadata($targetEntity); |
91 | 91 | $targetPersister = $this->uow->getEntityPersister($targetEntity); |
92 | 92 | |
93 | - if (! $association->getCache()) { |
|
93 | + if ( ! $association->getCache()) { |
|
94 | 94 | $owningAssociation = ! $association->isOwningSide() |
95 | 95 | ? $targetClassMetadata->getProperty($association->getMappedBy()) |
96 | 96 | : $association; |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | continue; |
139 | 139 | } |
140 | 140 | |
141 | - if (! $association->isPrimaryKey()) { |
|
141 | + if ( ! $association->isPrimaryKey()) { |
|
142 | 142 | $targetClass = ClassUtils::getClass($data[$name]); |
143 | 143 | $targetId = $this->uow->getEntityIdentifier($data[$name]); |
144 | 144 | $data[$name] = new AssociationCacheEntry($targetClass, $targetId); |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | ($association instanceof OneToOneAssociationMetadata && ! $association->isOwningSide()) |
189 | 189 | ); |
190 | 190 | |
191 | - if (! $isEagerLoad) { |
|
191 | + if ( ! $isEagerLoad) { |
|
192 | 192 | $data[$name] = $this->em->getReference($assocClass, $assocId); |
193 | 193 | |
194 | 194 | continue; |
@@ -45,6 +45,7 @@ |
||
45 | 45 | * {@inheritDoc} |
46 | 46 | * |
47 | 47 | * @param MultiGetCache $cache |
48 | + * @param string $name |
|
48 | 49 | */ |
49 | 50 | public function __construct($name, MultiGetCache $cache, $lifetime = 0) |
50 | 51 | { |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * <http://www.doctrine-project.org>. |
19 | 19 | */ |
20 | 20 | |
21 | -declare(strict_types=1); |
|
21 | +declare(strict_types = 1); |
|
22 | 22 | |
23 | 23 | namespace Doctrine\ORM\Cache\Region; |
24 | 24 |
@@ -600,7 +600,7 @@ |
||
600 | 600 | * Clears the EntityManager. All entities that are currently managed |
601 | 601 | * by this EntityManager become detached. |
602 | 602 | * |
603 | - * @param null $entityName Unused. @todo Remove from ObjectManager. |
|
603 | + * @param string|null $entityName Unused. @todo Remove from ObjectManager. |
|
604 | 604 | * |
605 | 605 | * @return void |
606 | 606 | */ |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * <http://www.doctrine-project.org>. |
18 | 18 | */ |
19 | 19 | |
20 | -declare(strict_types=1); |
|
20 | +declare(strict_types = 1); |
|
21 | 21 | |
22 | 22 | namespace Doctrine\ORM; |
23 | 23 | |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | $class = $this->metadataFactory->getMetadataFor(ltrim($entityName, '\\')); |
399 | 399 | $className = $class->getClassName(); |
400 | 400 | |
401 | - if (! is_array($id)) { |
|
401 | + if ( ! is_array($id)) { |
|
402 | 402 | if ($class->isIdentifierComposite()) { |
403 | 403 | throw ORMInvalidArgumentException::invalidCompositeIdentifier(); |
404 | 404 | } |
@@ -817,7 +817,7 @@ discard block |
||
817 | 817 | */ |
818 | 818 | public function isOpen() |
819 | 819 | { |
820 | - return (!$this->closed); |
|
820 | + return ( ! $this->closed); |
|
821 | 821 | } |
822 | 822 | |
823 | 823 | /** |
@@ -928,7 +928,7 @@ discard block |
||
928 | 928 | sprintf( |
929 | 929 | 'Invalid $connection argument of type %s given%s.', |
930 | 930 | is_object($connection) ? get_class($connection) : gettype($connection), |
931 | - is_object($connection) ? '' : ': "' . $connection . '"' |
|
931 | + is_object($connection) ? '' : ': "'.$connection.'"' |
|
932 | 932 | ) |
933 | 933 | ); |
934 | 934 | } |