Failed Conditions
Push — master ( 752351...1e3bf6 )
by Marco
16:07 queued 13s
created
tests/Doctrine/Tests/ORM/Query/QueryTest.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -85,18 +85,18 @@  discard block
 block discarded – undo
85 85
     {
86 86
         $q = $this->_em->createQuery("select a from Doctrine\Tests\Models\CMS\CmsArticle a");
87 87
         $q2 = $q->expireQueryCache(true)
88
-          ->setQueryCacheLifetime(3600)
89
-          ->setQueryCacheDriver(null)
90
-          ->expireResultCache(true)
91
-          ->setHint('foo', 'bar')
92
-          ->setHint('bar', 'baz')
93
-          ->setParameter(1, 'bar')
94
-          ->setParameters(new ArrayCollection([new Parameter(2, 'baz')]))
95
-          ->setResultCacheDriver(null)
96
-          ->setResultCacheId('foo')
97
-          ->setDQL('foo')
98
-          ->setFirstResult(10)
99
-          ->setMaxResults(10);
88
+            ->setQueryCacheLifetime(3600)
89
+            ->setQueryCacheDriver(null)
90
+            ->expireResultCache(true)
91
+            ->setHint('foo', 'bar')
92
+            ->setHint('bar', 'baz')
93
+            ->setParameter(1, 'bar')
94
+            ->setParameters(new ArrayCollection([new Parameter(2, 'baz')]))
95
+            ->setResultCacheDriver(null)
96
+            ->setResultCacheId('foo')
97
+            ->setDQL('foo')
98
+            ->setFirstResult(10)
99
+            ->setMaxResults(10);
100 100
 
101 101
         $this->assertSame($q2, $q);
102 102
     }
@@ -254,11 +254,11 @@  discard block
 block discarded – undo
254 254
         $this->_em->getConfiguration()->setResultCacheImpl(new ArrayCache());
255 255
 
256 256
         $query = $this->_em->createQuery("SELECT u FROM Doctrine\Tests\Models\CMS\CmsUser u")
257
-                           ->useResultCache(true);
257
+                            ->useResultCache(true);
258 258
 
259 259
         /** @var DriverConnectionMock $driverConnectionMock */
260 260
         $driverConnectionMock = $this->_em->getConnection()
261
-                                          ->getWrappedConnection();
261
+                                            ->getWrappedConnection();
262 262
 
263 263
         $driverConnectionMock->setStatementMock(new StatementArrayMock([['id_0' => 1]]));
264 264
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             9 => "St Julien"
164 164
         ];
165 165
 
166
-        $query  = $this->_em
166
+        $query = $this->_em
167 167
                 ->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)")
168 168
                 ->setParameter('cities', $cities);
169 169
 
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      */
180 180
     public function testProcessParameterValueClassMetadata()
181 181
     {
182
-        $query  = $this->_em->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)");
182
+        $query = $this->_em->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)");
183 183
         $this->assertEquals(
184 184
             CmsAddress::class,
185 185
             $query->processParameterValue($this->_em->getClassMetadata(CmsAddress::class))
Please login to merge, or discard this patch.