Completed
Pull Request — master (#7902)
by
unknown
63:54
created
tests/Doctrine/Tests/ORM/Functional/Ticket/GH6699Test.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@  discard block
 block discarded – undo
20 20
     public function testMixedParametersWithZeroNumber() : void
21 21
     {
22 22
         $query = $this->em->createQueryBuilder()
23
-                           ->select('u')
24
-                           ->from(CmsUser::class, 'u')
25
-                           ->andWhere('u.username = :username')
26
-                           ->andWhere('u.id = ?0')
27
-                           ->getQuery();
23
+                            ->select('u')
24
+                            ->from(CmsUser::class, 'u')
25
+                            ->andWhere('u.username = :username')
26
+                            ->andWhere('u.id = ?0')
27
+                            ->getQuery();
28 28
 
29 29
         $query->setParameter('username', 'bar');
30 30
         $query->setParameter(0, 0);
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
     public function testMixedParametersWithZeroNumberOnQueryBuilder() : void
40 40
     {
41 41
         $query = $this->em->createQueryBuilder()
42
-                           ->select('u')
43
-                           ->from(CmsUser::class, 'u')
44
-                           ->andWhere('u.username = :username')
45
-                           ->andWhere('u.id = ?0')
46
-                           ->setParameter('username', 'bar')
47
-                           ->setParameter(0, 0)
48
-                           ->getQuery();
42
+                            ->select('u')
43
+                            ->from(CmsUser::class, 'u')
44
+                            ->andWhere('u.username = :username')
45
+                            ->andWhere('u.id = ?0')
46
+                            ->setParameter('username', 'bar')
47
+                            ->setParameter(0, 0)
48
+                            ->getQuery();
49 49
 
50 50
         $query->execute();
51 51
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3785Test.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         $this->em->flush();
47 47
 
48 48
         $asset->getAttributes()
49
-              ->removeElement($attribute1);
49
+                ->removeElement($attribute1);
50 50
 
51 51
         $idToBeRemoved = $attribute1->id;
52 52
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1250Test.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         $this->em->clear();
40 40
 
41 41
         $history = $this->em->createQuery('SELECT h FROM ' . __NAMESPACE__ . '\\DDC1250ClientHistory h WHERE h.id = ?1')
42
-                  ->setParameter(1, $c2->id)->getSingleResult();
42
+                    ->setParameter(1, $c2->id)->getSingleResult();
43 43
 
44 44
         self::assertInstanceOf(DDC1250ClientHistory::class, $history);
45 45
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
         $this->em->flush();
37 37
         $this->em->clear();
38 38
 
39
-        $history = $this->em->createQuery('SELECT h FROM ' . __NAMESPACE__ . '\\DDC1250ClientHistory h WHERE h.id = ?1')
39
+        $history = $this->em->createQuery('SELECT h FROM '.__NAMESPACE__.'\\DDC1250ClientHistory h WHERE h.id = ?1')
40 40
                   ->setParameter(1, $c2->id)->getSingleResult();
41 41
 
42 42
         self::assertInstanceOf(DDC1250ClientHistory::class, $history);
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Tools/Console/Command/InfoCommand.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,13 +21,13 @@  discard block
 block discarded – undo
21 21
     protected function configure()
22 22
     {
23 23
         $this->setName('orm:info')
24
-             ->setDescription('Show basic information about all mapped entities')
25
-             ->setHelp(<<<'EOT'
24
+                ->setDescription('Show basic information about all mapped entities')
25
+                ->setHelp(<<<'EOT'
26 26
 The <info>%command.name%</info> shows basic information about which
27 27
 entities exist and possibly if their mapping information contains errors or
28 28
 not.
29 29
 EOT
30
-             );
30
+                );
31 31
     }
32 32
 
33 33
     /**
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
         $entityManager = $this->getHelper('em')->getEntityManager();
42 42
 
43 43
         $entityClassNames = $entityManager->getConfiguration()
44
-                                          ->getMetadataDriverImpl()
45
-                                          ->getAllClassNames();
44
+                                            ->getMetadataDriverImpl()
45
+                                            ->getAllClassNames();
46 46
 
47 47
         if (! $entityClassNames) {
48 48
             $ui->caution(
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
                                           ->getMetadataDriverImpl()
48 48
                                           ->getAllClassNames();
49 49
 
50
-        if (! $entityClassNames) {
50
+        if ( ! $entityClassNames) {
51 51
             $ui->caution(
52 52
                 [
53 53
                     'You do not have any mapped Doctrine ORM entities according to the current configuration.',
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC698Test.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
     {
27 27
         $qb = $this->em->createQueryBuilder();
28 28
         $qb->select('p', 'r')
29
-           ->from(__NAMESPACE__ . '\DDC698Privilege', 'p')
30
-           ->leftJoin('p.roles', 'r');
29
+            ->from(__NAMESPACE__ . '\DDC698Privilege', 'p')
30
+            ->leftJoin('p.roles', 'r');
31 31
 
32 32
         self::assertSQLEquals(
33 33
             'SELECT t0."privilegeID" AS c0, t0."name" AS c1, t1."roleID" AS c2, t1."name" AS c3, t1."shortName" AS c4 FROM "Privileges" t0 LEFT JOIN "RolePrivileges" t2 ON t0."privilegeID" = t2."privilegeID" LEFT JOIN "Roles" t1 ON t1."roleID" = t2."roleID"',
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     {
28 28
         $qb = $this->em->createQueryBuilder();
29 29
         $qb->select('p', 'r')
30
-           ->from(__NAMESPACE__ . '\DDC698Privilege', 'p')
30
+           ->from(__NAMESPACE__.'\DDC698Privilege', 'p')
31 31
            ->leftJoin('p.roles', 'r');
32 32
 
33 33
         self::assertSQLEquals(
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/QueryTest.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -88,18 +88,18 @@  discard block
 block discarded – undo
88 88
     {
89 89
         $q  = $this->em->createQuery('select a from Doctrine\Tests\Models\CMS\CmsArticle a');
90 90
         $q2 = $q->expireQueryCache(true)
91
-          ->setQueryCacheLifetime(3600)
92
-          ->setQueryCacheDriver(null)
93
-          ->expireResultCache(true)
94
-          ->setHint('foo', 'bar')
95
-          ->setHint('bar', 'baz')
96
-          ->setParameter(1, 'bar')
97
-          ->setParameters(new ArrayCollection([new Parameter(2, 'baz')]))
98
-          ->setResultCacheDriver(null)
99
-          ->setResultCacheId('foo')
100
-          ->setDQL('foo')
101
-          ->setFirstResult(10)
102
-          ->setMaxResults(10);
91
+            ->setQueryCacheLifetime(3600)
92
+            ->setQueryCacheDriver(null)
93
+            ->expireResultCache(true)
94
+            ->setHint('foo', 'bar')
95
+            ->setHint('bar', 'baz')
96
+            ->setParameter(1, 'bar')
97
+            ->setParameters(new ArrayCollection([new Parameter(2, 'baz')]))
98
+            ->setResultCacheDriver(null)
99
+            ->setResultCacheId('foo')
100
+            ->setDQL('foo')
101
+            ->setFirstResult(10)
102
+            ->setMaxResults(10);
103 103
 
104 104
         self::assertSame($q2, $q);
105 105
     }
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
         $this->em->getConfiguration()->setResultCacheImpl(new ArrayCache());
257 257
 
258 258
         $query = $this->em->createQuery('SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u')
259
-                          ->useResultCache(true);
259
+                            ->useResultCache(true);
260 260
 
261 261
         /** @var DriverConnectionMock $driverConnectionMock */
262 262
         $driverConnectionMock = $this->em->getConnection()
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
      */
338 338
     public function testGetParameterTypeJuggling() : void
339 339
     {
340
-        $query = $this->em->createQuery('select u from ' . CmsUser::class . ' u where u.id = ?0');
340
+        $query = $this->em->createQuery('select u from '.CmsUser::class.' u where u.id = ?0');
341 341
 
342 342
         $query->setParameter(0, 0);
343 343
 
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
      */
352 352
     public function testSetParameterWithNameZeroIsNotOverridden() : void
353 353
     {
354
-        $query = $this->em->createQuery('select u from ' . CmsUser::class . ' u where u.id != ?0 and u.username = :name');
354
+        $query = $this->em->createQuery('select u from '.CmsUser::class.' u where u.id != ?0 and u.username = :name');
355 355
 
356 356
         $query->setParameter(0, 0);
357 357
         $query->setParameter('name', 'Doctrine');
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
      */
367 367
     public function testSetParameterWithNameZeroDoesNotOverrideAnotherParameter() : void
368 368
     {
369
-        $query = $this->em->createQuery('select u from ' . CmsUser::class . ' u where u.id != ?0 and u.username = :name');
369
+        $query = $this->em->createQuery('select u from '.CmsUser::class.' u where u.id != ?0 and u.username = :name');
370 370
 
371 371
         $query->setParameter('name', 'Doctrine');
372 372
         $query->setParameter(0, 0);
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
      */
382 382
     public function testSetParameterWithTypeJugglingWorks() : void
383 383
     {
384
-        $query = $this->em->createQuery('select u from ' . CmsUser::class . ' u where u.id != ?0 and u.username = :name');
384
+        $query = $this->em->createQuery('select u from '.CmsUser::class.' u where u.id != ?0 and u.username = :name');
385 385
 
386 386
         $query->setParameter('0', 1);
387 387
         $query->setParameter('name', 'Doctrine');
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
     {
402 402
         $this->em->getConfiguration()->setResultCacheImpl(new ArrayCache());
403 403
 
404
-        $query = $this->em->createQuery('SELECT u FROM ' . CmsUser::class . ' u');
404
+        $query = $this->em->createQuery('SELECT u FROM '.CmsUser::class.' u');
405 405
         $query->useResultCache(true);
406 406
         $query->setResultCacheProfile();
407 407
 
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
             ->expects(self::never())
420 420
             ->method('getSingleIdentifierValue');
421 421
 
422
-        $query = $this->em->createQuery('SELECT d FROM ' . DateTimeModel::class . ' d WHERE d.datetime = :value');
422
+        $query = $this->em->createQuery('SELECT d FROM '.DateTimeModel::class.' d WHERE d.datetime = :value');
423 423
 
424 424
         $query->setParameter('value', new DateTime(), Type::DATETIME);
425 425
 
Please login to merge, or discard this patch.
Tests/ORM/Cache/Persister/Collection/AbstractCollectionPersisterTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,8 +86,8 @@
 block discarded – undo
86 86
         $this->em                  = $this->getTestEntityManager();
87 87
         $this->region              = $this->createRegion();
88 88
         $this->collectionPersister = $this->getMockBuilder(CollectionPersister::class)
89
-                                           ->setMethods($this->collectionPersisterMockMethods)
90
-                                           ->getMock();
89
+                                            ->setMethods($this->collectionPersisterMockMethods)
90
+                                            ->getMock();
91 91
     }
92 92
 
93 93
     /**
Please login to merge, or discard this patch.
Doctrine/Tests/ORM/Cache/Persister/Entity/AbstractEntityPersisterTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,8 @@
 block discarded – undo
103 103
         $this->em              = $this->getTestEntityManager();
104 104
         $this->region          = $this->createRegion();
105 105
         $this->entityPersister = $this->getMockBuilder(EntityPersister::class)
106
-                                       ->setMethods($this->entityPersisterMockMethods)
107
-                                       ->getMock();
106
+                                        ->setMethods($this->entityPersisterMockMethods)
107
+                                        ->getMock();
108 108
     }
109 109
 
110 110
     /**
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/OrderedCollectionTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,8 +104,8 @@
 block discarded – undo
104 104
         $routeId = $this->createPersistedRouteWithLegs();
105 105
 
106 106
         $route = $this->em->createQuery('SELECT r, l FROM Doctrine\Tests\Models\Routing\RoutingRoute r JOIN r.legs l WHERE r.id = ?1')
107
-                           ->setParameter(1, $routeId)
108
-                           ->getSingleResult();
107
+                            ->setParameter(1, $routeId)
108
+                            ->getSingleResult();
109 109
 
110 110
         self::assertCount(2, $route->legs);
111 111
         self::assertEquals('Berlin', $route->legs[0]->fromLocation->getName());
Please login to merge, or discard this patch.