@@ -72,7 +72,7 @@ |
||
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) |
@@ -86,7 +86,7 @@ |
||
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 | } |
@@ -53,7 +53,7 @@ |
||
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); |
@@ -141,7 +141,7 @@ |
||
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') |
@@ -24,7 +24,7 @@ discard block |
||
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 |
||
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 |
@@ -32,7 +32,7 @@ |
||
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(); |
@@ -35,7 +35,7 @@ |
||
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()), |
@@ -148,9 +148,9 @@ discard block |
||
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 |
||
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 |
||
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); |
@@ -64,7 +64,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -136,24 +136,24 @@ |
||
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 |
@@ -133,7 +133,7 @@ |
||
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']) |