Passed
Pull Request — 2.7 (#7701)
by
unknown
09:43
created
tests/Doctrine/Tests/ORM/Query/QueryTest.php 1 patch
Indentation   +14 added lines, -14 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
         $this->assertSame($q2, $q);
105 105
     }
@@ -257,11 +257,11 @@  discard block
 block discarded – undo
257 257
         $this->_em->getConfiguration()->setResultCacheImpl(new ArrayCache());
258 258
 
259 259
         $query = $this->_em->createQuery("SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u")
260
-                           ->enableResultCache();
260
+                            ->enableResultCache();
261 261
 
262 262
         /** @var DriverConnectionMock $driverConnectionMock */
263 263
         $driverConnectionMock = $this->_em->getConnection()
264
-                                          ->getWrappedConnection();
264
+                                            ->getWrappedConnection();
265 265
 
266 266
         $driverConnectionMock->setStatementMock(new StatementArrayMock([['id_0' => 1]]));
267 267
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/GH2947Test.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
     private function createQuery()
45 45
     {
46 46
         return $this->_em->createQueryBuilder()
47
-                         ->select('car')
48
-                         ->from(GH2947Car::class, 'car')
49
-                         ->getQuery()
50
-                         ->enableResultCache(3600, 'foo-cache-id');
47
+                            ->select('car')
48
+                            ->from(GH2947Car::class, 'car')
49
+                            ->getQuery()
50
+                            ->enableResultCache(3600, 'foo-cache-id');
51 51
     }
52 52
 
53 53
     private function createData()
@@ -60,13 +60,13 @@  discard block
 block discarded – undo
60 60
     private function updateData()
61 61
     {
62 62
         $this->_em->createQueryBuilder()
63
-                  ->update(GH2947Car::class, 'car')
64
-                  ->set('car.brand', ':newBrand')
65
-                  ->where('car.brand = :oldBrand')
66
-                  ->setParameter('newBrand', 'Dacia')
67
-                  ->setParameter('oldBrand', 'BMW')
68
-                  ->getQuery()
69
-                  ->execute();
63
+                    ->update(GH2947Car::class, 'car')
64
+                    ->set('car.brand', ':newBrand')
65
+                    ->where('car.brand = :oldBrand')
66
+                    ->setParameter('newBrand', 'Dacia')
67
+                    ->setParameter('oldBrand', 'BMW')
68
+                    ->getQuery()
69
+                    ->execute();
70 70
     }
71 71
 }
72 72
 
Please login to merge, or discard this patch.