Passed
Pull Request — 2.6 (#7551)
by Michael
63:33
created
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC2931Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
             ->_em
73 73
             ->createQuery(
74 74
                 'SELECT e, p, c FROM '
75
-                . __NAMESPACE__ . '\\DDC2931User e LEFT JOIN e.parent p LEFT JOIN e.child c WHERE e = :id'
75
+                . __NAMESPACE__.'\\DDC2931User e LEFT JOIN e.parent p LEFT JOIN e.child c WHERE e = :id'
76 76
             )
77 77
             ->setParameter('id', $second)
78 78
             ->setHint(Query::HINT_REFRESH, true)
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/Ticket69.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
         $this->assertInstanceOf(Lemma::class, $lemma);
87 87
         $relations = $lemma->getRelations();
88 88
 
89
-        foreach($relations as $relation) {
89
+        foreach ($relations as $relation) {
90 90
             $this->assertInstanceOf(Relation::class, $relation);
91 91
             $this->assertTrue($relation->getType()->getType() != '');
92 92
         }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1514Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         $this->_em->flush();
54 54
         $this->_em->clear();
55 55
 
56
-        $dql = "SELECT a, b, ba, c FROM " . __NAMESPACE__ . "\DDC1514EntityA AS a LEFT JOIN a.entitiesB AS b LEFT JOIN b.entityATo AS ba LEFT JOIN a.entityC AS c ORDER BY a.title";
56
+        $dql = "SELECT a, b, ba, c FROM ".__NAMESPACE__."\DDC1514EntityA AS a LEFT JOIN a.entitiesB AS b LEFT JOIN b.entityATo AS ba LEFT JOIN a.entityC AS c ORDER BY a.title";
57 57
         $results = $this->_em->createQuery($dql)->getResult();
58 58
 
59 59
         $this->assertEquals($a1->id, $results[0]->id);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1884Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
     {
142 142
         $qb = $this->_em->createQueryBuilder();
143 143
 
144
-        $result =  $qb->select('r, d, c')
144
+        $result = $qb->select('r, d, c')
145 145
             ->from(PaidRide::class, 'r')
146 146
             ->leftJoin('r.driver', 'd')
147 147
             ->leftJoin('r.car', 'c')
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1526Test.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
             $entity = new DDC1526Menu;
25 25
 
26 26
             if (isset ($parents[($i % 3)])) {
27
-                $entity->parent = $parents[($i%3)];
27
+                $entity->parent = $parents[($i % 3)];
28 28
             }
29 29
 
30 30
             $this->_em->persist($entity);
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
 
37 37
         $dql = "SELECT m, c
38
-            FROM " . __NAMESPACE__ . "\DDC1526Menu m
38
+            FROM " . __NAMESPACE__."\DDC1526Menu m
39 39
             LEFT JOIN m.children c";
40 40
         $menus = $this->_em->createQuery($dql)->getResult();
41 41
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC1925Test.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $product->addBuyer($user);
33 33
 
34 34
         $this->_em->getUnitOfWork()
35
-                  ->computeChangeSets();
35
+                    ->computeChangeSets();
36 36
 
37 37
         $this->_em->persist($product);
38 38
         $this->_em->flush();
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3634Test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
     public function testSavesVeryLargeIntegerAutoGeneratedValue()
37 37
     {
38
-        $veryLargeId = PHP_INT_MAX . PHP_INT_MAX;
38
+        $veryLargeId = PHP_INT_MAX.PHP_INT_MAX;
39 39
 
40 40
         $entityManager = EntityManager::create(
41 41
             new DDC3634LastInsertIdMockingConnection($veryLargeId, $this->_em->getConnection()),
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/Ticket/DDC117Test.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -148,9 +148,9 @@  discard block
 block discarded – undo
148 148
 
149 149
         $dql = "DELETE Doctrine\Tests\Models\DDC117\DDC117Reference r WHERE r.source = ?1 AND r.target = ?2";
150 150
         $this->_em->createQuery($dql)
151
-                  ->setParameter(1, $this->article1->id())
152
-                  ->setParameter(2, $this->article2->id())
153
-                  ->execute();
151
+                    ->setParameter(1, $this->article1->id())
152
+                    ->setParameter(2, $this->article2->id())
153
+                    ->execute();
154 154
 
155 155
         $this->assertNull($this->_em->find(DDC117Reference::class, $idCriteria));
156 156
     }
@@ -200,9 +200,9 @@  discard block
 block discarded – undo
200 200
 
201 201
         $dql = 'SELECT t, a FROM Doctrine\Tests\Models\DDC117\DDC117Translation t JOIN t.article a WHERE t.article = ?1 AND t.language = ?2';
202 202
         $dqlTrans = $this->_em->createQuery($dql)
203
-                              ->setParameter(1, $this->article1->id())
204
-                              ->setParameter(2, 'en')
205
-                              ->getSingleResult();
203
+                                ->setParameter(1, $this->article1->id())
204
+                                ->setParameter(2, 'en')
205
+                                ->getSingleResult();
206 206
 
207 207
         $this->assertInstanceOf(DDC117Translation::class, $this->translation);
208 208
     }
@@ -367,11 +367,11 @@  discard block
 block discarded – undo
367 367
         $this->_em->clear();
368 368
 
369 369
         $dql = "SELECT t, e FROM Doctrine\Tests\Models\DDC117\DDC117Translation t ".
370
-               "JOIN t.reviewedByEditors e WHERE t.article = ?1 AND t.language = ?2";
370
+                "JOIN t.reviewedByEditors e WHERE t.article = ?1 AND t.language = ?2";
371 371
         $trans = $this->_em->createQuery($dql)
372
-                           ->setParameter(1, $this->translation->getArticleId())
373
-                           ->setParameter(2, $this->translation->getLanguage())
374
-                           ->getSingleResult();
372
+                            ->setParameter(1, $this->translation->getArticleId())
373
+                            ->setParameter(2, $this->translation->getLanguage())
374
+                            ->getSingleResult();
375 375
 
376 376
         $this->assertInstanceOf(DDC117Translation::class, $trans);
377 377
         $this->assertContainsOnly(DDC117Editor::class, $trans->reviewedByEditors);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 
65 65
         $this->_em->clear();
66 66
 
67
-        $dql = 'SELECT r, s FROM ' . DDC117Reference::class . ' r JOIN r.source s WHERE r.source = ?1';
67
+        $dql = 'SELECT r, s FROM '.DDC117Reference::class.' r JOIN r.source s WHERE r.source = ?1';
68 68
         $dqlRef = $this->_em->createQuery($dql)->setParameter(1, 1)->getSingleResult();
69 69
 
70 70
         $this->assertInstanceOf(DDC117Reference::class, $mapRef);
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         $this->_em->clear();
76 76
 
77
-        $dql = 'SELECT r, s FROM ' . DDC117Reference::class . ' r JOIN r.source s WHERE s.title = ?1';
77
+        $dql = 'SELECT r, s FROM '.DDC117Reference::class.' r JOIN r.source s WHERE s.title = ?1';
78 78
         $dqlRef = $this->_em->createQuery($dql)->setParameter(1, 'Foo')->getSingleResult();
79 79
 
80 80
         $this->assertInstanceOf(DDC117Reference::class, $dqlRef);
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $this->assertInstanceOf(DDC117Article::class, $dqlRef->source());
83 83
         $this->assertSame($dqlRef, $this->_em->find(DDC117Reference::class, $idCriteria));
84 84
 
85
-        $dql = 'SELECT r, s FROM ' . DDC117Reference::class . ' r JOIN r.source s WHERE s.title = ?1';
85
+        $dql = 'SELECT r, s FROM '.DDC117Reference::class.' r JOIN r.source s WHERE s.title = ?1';
86 86
         $dqlRef = $this->_em->createQuery($dql)->setParameter(1, 'Foo')->getSingleResult();
87 87
 
88 88
         $this->_em->contains($dqlRef);
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
         try {
221 221
             // exception depending on the underlying Database Driver
222 222
             $this->_em->flush();
223
-        } catch(\Exception $e) {
223
+        } catch (\Exception $e) {
224 224
             $exceptionThrown = true;
225 225
         }
226 226
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Functional/QueryCacheTest.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -136,24 +136,24 @@
 block discarded – undo
136 136
                     ->will($this->returnValue( 10 ));
137 137
 
138 138
         $parserResultMock = $this->getMockBuilder(ParserResult::class)
139
-                                 ->setMethods(['getSqlExecutor'])
140
-                                 ->getMock();
139
+                                    ->setMethods(['getSqlExecutor'])
140
+                                    ->getMock();
141 141
         $parserResultMock->expects($this->once())
142
-                         ->method('getSqlExecutor')
143
-                         ->will($this->returnValue($sqlExecMock));
142
+                            ->method('getSqlExecutor')
143
+                            ->will($this->returnValue($sqlExecMock));
144 144
 
145 145
         $cache = $this->getMockBuilder(CacheProvider::class)
146
-                      ->setMethods(['doFetch', 'doContains', 'doSave', 'doDelete', 'doFlush', 'doGetStats'])
147
-                      ->getMock();
146
+                        ->setMethods(['doFetch', 'doContains', 'doSave', 'doDelete', 'doFlush', 'doGetStats'])
147
+                        ->getMock();
148 148
 
149 149
         $cache->expects($this->at(0))->method('doFetch')->will($this->returnValue(1));
150 150
         $cache->expects($this->at(1))
151
-              ->method('doFetch')
152
-              ->with($this->isType('string'))
153
-              ->will($this->returnValue($parserResultMock));
151
+                ->method('doFetch')
152
+                ->with($this->isType('string'))
153
+                ->will($this->returnValue($parserResultMock));
154 154
 
155 155
         $cache->expects($this->never())
156
-              ->method('doSave');
156
+                ->method('doSave');
157 157
 
158 158
         $query->setQueryCacheDriver($cache);
159 159
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
 
134 134
         $sqlExecMock->expects($this->once())
135 135
                     ->method('execute')
136
-                    ->will($this->returnValue( 10 ));
136
+                    ->will($this->returnValue(10));
137 137
 
138 138
         $parserResultMock = $this->getMockBuilder(ParserResult::class)
139 139
                                  ->setMethods(['getSqlExecutor'])
Please login to merge, or discard this patch.