@@ -223,13 +223,13 @@ |
||
223 | 223 | |
224 | 224 | $q = $this->em->createNativeQuery('SELECT id, name, status, phonenumber FROM cms_users INNER JOIN cms_phonenumbers ON id = user_id WHERE username = ?', $rsm); |
225 | 225 | $q2 = $q->setSQL('foo') |
226 | - ->setResultSetMapping($rsm) |
|
227 | - ->expireResultCache(true) |
|
228 | - ->setHint('foo', 'bar') |
|
229 | - ->setParameter(1, 'foo') |
|
230 | - ->setParameters($parameters) |
|
231 | - ->setResultCacheDriver(null) |
|
232 | - ->setResultCacheLifetime(3500); |
|
226 | + ->setResultSetMapping($rsm) |
|
227 | + ->expireResultCache(true) |
|
228 | + ->setHint('foo', 'bar') |
|
229 | + ->setParameter(1, 'foo') |
|
230 | + ->setParameters($parameters) |
|
231 | + ->setResultCacheDriver(null) |
|
232 | + ->setResultCacheLifetime(3500); |
|
233 | 233 | |
234 | 234 | self::assertSame($q, $q2); |
235 | 235 | } |
@@ -36,37 +36,37 @@ |
||
36 | 36 | $dql = 'SELECT u FROM Doctrine\Tests\Models\Cms\CmsUser u'; |
37 | 37 | |
38 | 38 | $users = $this->em->createQuery($dql) |
39 | - ->setHydrationCacheProfile(new QueryCacheProfile(null, null, $cache)) |
|
40 | - ->getResult(); |
|
39 | + ->setHydrationCacheProfile(new QueryCacheProfile(null, null, $cache)) |
|
40 | + ->getResult(); |
|
41 | 41 | |
42 | 42 | $c = $this->getCurrentQueryCount(); |
43 | 43 | $users = $this->em->createQuery($dql) |
44 | - ->setHydrationCacheProfile(new QueryCacheProfile(null, null, $cache)) |
|
45 | - ->getResult(); |
|
44 | + ->setHydrationCacheProfile(new QueryCacheProfile(null, null, $cache)) |
|
45 | + ->getResult(); |
|
46 | 46 | |
47 | 47 | self::assertEquals($c, $this->getCurrentQueryCount(), 'Should not execute query. Its cached!'); |
48 | 48 | |
49 | 49 | $users = $this->em->createQuery($dql) |
50 | - ->setHydrationCacheProfile(new QueryCacheProfile(null, null, $cache)) |
|
51 | - ->getArrayResult(); |
|
50 | + ->setHydrationCacheProfile(new QueryCacheProfile(null, null, $cache)) |
|
51 | + ->getArrayResult(); |
|
52 | 52 | |
53 | 53 | self::assertEquals($c + 1, $this->getCurrentQueryCount(), 'Hydration is part of cache key.'); |
54 | 54 | |
55 | 55 | $users = $this->em->createQuery($dql) |
56 | - ->setHydrationCacheProfile(new QueryCacheProfile(null, null, $cache)) |
|
57 | - ->getArrayResult(); |
|
56 | + ->setHydrationCacheProfile(new QueryCacheProfile(null, null, $cache)) |
|
57 | + ->getArrayResult(); |
|
58 | 58 | |
59 | 59 | self::assertEquals($c + 1, $this->getCurrentQueryCount(), 'Hydration now cached'); |
60 | 60 | |
61 | 61 | $users = $this->em->createQuery($dql) |
62 | - ->setHydrationCacheProfile(new QueryCacheProfile(null, 'cachekey', $cache)) |
|
63 | - ->getArrayResult(); |
|
62 | + ->setHydrationCacheProfile(new QueryCacheProfile(null, 'cachekey', $cache)) |
|
63 | + ->getArrayResult(); |
|
64 | 64 | |
65 | 65 | self::assertTrue($cache->contains('cachekey'), 'Explicit cache key'); |
66 | 66 | |
67 | 67 | $users = $this->em->createQuery($dql) |
68 | - ->setHydrationCacheProfile(new QueryCacheProfile(null, 'cachekey', $cache)) |
|
69 | - ->getArrayResult(); |
|
68 | + ->setHydrationCacheProfile(new QueryCacheProfile(null, 'cachekey', $cache)) |
|
69 | + ->getArrayResult(); |
|
70 | 70 | self::assertEquals($c + 2, $this->getCurrentQueryCount(), 'Hydration now cached'); |
71 | 71 | } |
72 | 72 |
@@ -37,19 +37,19 @@ discard block |
||
37 | 37 | |
38 | 38 | $dql = 'SELECT a FROM Doctrine\Tests\Models\CMS\CmsArticle a WHERE a.user = :author'; |
39 | 39 | $this->em->createQuery($dql) |
40 | - ->setParameter('author', $user) |
|
41 | - ->getResult(); |
|
40 | + ->setParameter('author', $user) |
|
41 | + ->getResult(); |
|
42 | 42 | |
43 | 43 | $dql = 'SELECT a FROM Doctrine\Tests\Models\CMS\CmsArticle a WHERE a.user = :author AND a.user = :author'; |
44 | 44 | $this->em->createQuery($dql) |
45 | - ->setParameter('author', $user) |
|
46 | - ->getResult(); |
|
45 | + ->setParameter('author', $user) |
|
46 | + ->getResult(); |
|
47 | 47 | |
48 | 48 | $dql = 'SELECT a FROM Doctrine\Tests\Models\CMS\CmsArticle a WHERE a.topic = :topic AND a.user = :author AND a.user = :author'; |
49 | 49 | $farticle = $this->em->createQuery($dql) |
50 | - ->setParameter('author', $user) |
|
51 | - ->setParameter('topic', 'This is John Galt speaking!') |
|
52 | - ->getSingleResult(); |
|
50 | + ->setParameter('author', $user) |
|
51 | + ->setParameter('topic', 'This is John Galt speaking!') |
|
52 | + ->getSingleResult(); |
|
53 | 53 | |
54 | 54 | self::assertSame($article, $farticle); |
55 | 55 | } |
@@ -72,10 +72,10 @@ discard block |
||
72 | 72 | |
73 | 73 | $dql = 'SELECT a FROM Doctrine\Tests\Models\CMS\CmsArticle a WHERE a.topic = ?1 AND a.user = ?2 AND a.user = ?3'; |
74 | 74 | $farticle = $this->em->createQuery($dql) |
75 | - ->setParameter(1, 'This is John Galt speaking!') |
|
76 | - ->setParameter(2, $user) |
|
77 | - ->setParameter(3, $user) |
|
78 | - ->getSingleResult(); |
|
75 | + ->setParameter(1, 'This is John Galt speaking!') |
|
76 | + ->setParameter(2, $user) |
|
77 | + ->setParameter(3, $user) |
|
78 | + ->getSingleResult(); |
|
79 | 79 | |
80 | 80 | self::assertSame($article, $farticle); |
81 | 81 | } |
@@ -150,9 +150,9 @@ discard block |
||
150 | 150 | |
151 | 151 | $dql = 'DELETE Doctrine\Tests\Models\DDC117\DDC117Reference r WHERE r.source = ?1 AND r.target = ?2'; |
152 | 152 | $this->em->createQuery($dql) |
153 | - ->setParameter(1, $this->article1->id()) |
|
154 | - ->setParameter(2, $this->article2->id()) |
|
155 | - ->execute(); |
|
153 | + ->setParameter(1, $this->article1->id()) |
|
154 | + ->setParameter(2, $this->article2->id()) |
|
155 | + ->execute(); |
|
156 | 156 | |
157 | 157 | self::assertNull($this->em->find(DDC117Reference::class, $idCriteria)); |
158 | 158 | } |
@@ -202,9 +202,9 @@ discard block |
||
202 | 202 | |
203 | 203 | $dql = 'SELECT t, a FROM Doctrine\Tests\Models\DDC117\DDC117Translation t JOIN t.article a WHERE t.article = ?1 AND t.language = ?2'; |
204 | 204 | $dqlTrans = $this->em->createQuery($dql) |
205 | - ->setParameter(1, $this->article1->id()) |
|
206 | - ->setParameter(2, 'en') |
|
207 | - ->getSingleResult(); |
|
205 | + ->setParameter(1, $this->article1->id()) |
|
206 | + ->setParameter(2, 'en') |
|
207 | + ->getSingleResult(); |
|
208 | 208 | |
209 | 209 | self::assertInstanceOf(DDC117Translation::class, $this->translation); |
210 | 210 | } |
@@ -369,11 +369,11 @@ discard block |
||
369 | 369 | $this->em->clear(); |
370 | 370 | |
371 | 371 | $dql = 'SELECT t, e FROM Doctrine\Tests\Models\DDC117\DDC117Translation t ' . |
372 | - 'JOIN t.reviewedByEditors e WHERE t.article = ?1 AND t.language = ?2'; |
|
372 | + 'JOIN t.reviewedByEditors e WHERE t.article = ?1 AND t.language = ?2'; |
|
373 | 373 | $trans = $this->em->createQuery($dql) |
374 | - ->setParameter(1, $this->translation->getArticleId()) |
|
375 | - ->setParameter(2, $this->translation->getLanguage()) |
|
376 | - ->getSingleResult(); |
|
374 | + ->setParameter(1, $this->translation->getArticleId()) |
|
375 | + ->setParameter(2, $this->translation->getLanguage()) |
|
376 | + ->getSingleResult(); |
|
377 | 377 | |
378 | 378 | self::assertInstanceOf(DDC117Translation::class, $trans); |
379 | 379 | self::assertContainsOnly(DDC117Editor::class, $trans->reviewedByEditors); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | $this->em->clear(); |
72 | 72 | |
73 | - $dql = 'SELECT r, s FROM ' . DDC117Reference::class . ' r JOIN r.source s WHERE r.source = ?1'; |
|
73 | + $dql = 'SELECT r, s FROM '.DDC117Reference::class.' r JOIN r.source s WHERE r.source = ?1'; |
|
74 | 74 | $dqlRef = $this->em->createQuery($dql)->setParameter(1, 1)->getSingleResult(); |
75 | 75 | |
76 | 76 | self::assertInstanceOf(DDC117Reference::class, $mapRef); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | |
81 | 81 | $this->em->clear(); |
82 | 82 | |
83 | - $dql = 'SELECT r, s FROM ' . DDC117Reference::class . ' r JOIN r.source s WHERE s.title = ?1'; |
|
83 | + $dql = 'SELECT r, s FROM '.DDC117Reference::class.' r JOIN r.source s WHERE s.title = ?1'; |
|
84 | 84 | $dqlRef = $this->em->createQuery($dql)->setParameter(1, 'Foo')->getSingleResult(); |
85 | 85 | |
86 | 86 | self::assertInstanceOf(DDC117Reference::class, $dqlRef); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | self::assertInstanceOf(DDC117Article::class, $dqlRef->source()); |
89 | 89 | self::assertSame($dqlRef, $this->em->find(DDC117Reference::class, $idCriteria)); |
90 | 90 | |
91 | - $dql = 'SELECT r, s FROM ' . DDC117Reference::class . ' r JOIN r.source s WHERE s.title = ?1'; |
|
91 | + $dql = 'SELECT r, s FROM '.DDC117Reference::class.' r JOIN r.source s WHERE s.title = ?1'; |
|
92 | 92 | $dqlRef = $this->em->createQuery($dql)->setParameter(1, 'Foo')->getSingleResult(); |
93 | 93 | |
94 | 94 | $this->em->contains($dqlRef); |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | */ |
273 | 273 | public function testOneToOneCascadePersist() : void |
274 | 274 | { |
275 | - if (! $this->em->getConnection()->getDatabasePlatform()->prefersSequences()) { |
|
275 | + if ( ! $this->em->getConnection()->getDatabasePlatform()->prefersSequences()) { |
|
276 | 276 | $this->markTestSkipped('Test only works with databases that prefer sequences as ID strategy.'); |
277 | 277 | } |
278 | 278 | |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | |
373 | 373 | $this->em->clear(); |
374 | 374 | |
375 | - $dql = 'SELECT t, e FROM Doctrine\Tests\Models\DDC117\DDC117Translation t ' . |
|
375 | + $dql = 'SELECT t, e FROM Doctrine\Tests\Models\DDC117\DDC117Translation t '. |
|
376 | 376 | 'JOIN t.reviewedByEditors e WHERE t.article = ?1 AND t.language = ?2'; |
377 | 377 | $trans = $this->em->createQuery($dql) |
378 | 378 | ->setParameter(1, $this->translation->getArticleId()) |
@@ -135,13 +135,13 @@ |
||
135 | 135 | $cmf = new ClassMetadataFactory(); |
136 | 136 | $driver = $this->createMock(MappingDriver::class); |
137 | 137 | $driver->expects($this->at(0)) |
138 | - ->method('isTransient') |
|
139 | - ->with($this->equalTo(CmsUser::class)) |
|
140 | - ->will($this->returnValue(true)); |
|
138 | + ->method('isTransient') |
|
139 | + ->with($this->equalTo(CmsUser::class)) |
|
140 | + ->will($this->returnValue(true)); |
|
141 | 141 | $driver->expects($this->at(1)) |
142 | - ->method('isTransient') |
|
143 | - ->with($this->equalTo(CmsArticle::class)) |
|
144 | - ->will($this->returnValue(false)); |
|
142 | + ->method('isTransient') |
|
143 | + ->with($this->equalTo(CmsArticle::class)) |
|
144 | + ->will($this->returnValue(false)); |
|
145 | 145 | |
146 | 146 | $em = $this->createEntityManager($driver); |
147 | 147 |
@@ -76,9 +76,9 @@ discard block |
||
76 | 76 | |
77 | 77 | public function testHasGetMetadataNamespaceSeparatorIsNotNormalized() : void |
78 | 78 | { |
79 | - require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php'; |
|
79 | + require_once __DIR__.'/../../Models/Global/GlobalNamespaceModel.php'; |
|
80 | 80 | |
81 | - $metadataDriver = $this->createAnnotationDriver([__DIR__ . '/../../Models/Global/']); |
|
81 | + $metadataDriver = $this->createAnnotationDriver([__DIR__.'/../../Models/Global/']); |
|
82 | 82 | |
83 | 83 | $entityManager = $this->createEntityManager($metadataDriver); |
84 | 84 | |
@@ -86,10 +86,10 @@ discard block |
||
86 | 86 | |
87 | 87 | self::assertSame( |
88 | 88 | $mf->getMetadataFor(DoctrineGlobalArticle::class), |
89 | - $mf->getMetadataFor('\\' . DoctrineGlobalArticle::class) |
|
89 | + $mf->getMetadataFor('\\'.DoctrineGlobalArticle::class) |
|
90 | 90 | ); |
91 | 91 | self::assertTrue($mf->hasMetadataFor(DoctrineGlobalArticle::class)); |
92 | - self::assertTrue($mf->hasMetadataFor('\\' . DoctrineGlobalArticle::class)); |
|
92 | + self::assertTrue($mf->hasMetadataFor('\\'.DoctrineGlobalArticle::class)); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | public function testNoDefaultDiscriminatorMapIsAssumed(string $rootClassName, string $targetClassName) : void |
121 | 121 | { |
122 | 122 | $cmf = new ClassMetadataFactory(); |
123 | - $driver = $this->createAnnotationDriver([__DIR__ . '/../../Models/JoinedInheritanceType/']); |
|
123 | + $driver = $this->createAnnotationDriver([__DIR__.'/../../Models/JoinedInheritanceType/']); |
|
124 | 124 | $em = $this->createEntityManager($driver); |
125 | 125 | $cmf->setEntityManager($em); |
126 | 126 | |
@@ -170,10 +170,10 @@ discard block |
||
170 | 170 | $driverMock = new DriverMock(); |
171 | 171 | $config = new Configuration(); |
172 | 172 | |
173 | - $config->setProxyDir(__DIR__ . '/../../Proxies'); |
|
173 | + $config->setProxyDir(__DIR__.'/../../Proxies'); |
|
174 | 174 | $config->setProxyNamespace('Doctrine\Tests\Proxies'); |
175 | 175 | |
176 | - if (! $conn) { |
|
176 | + if ( ! $conn) { |
|
177 | 177 | $conn = new ConnectionMock([], $driverMock, $config, new EventManager()); |
178 | 178 | } |
179 | 179 | $eventManager = $conn->getEventManager(); |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | public function testQuoteMetadata() : void |
269 | 269 | { |
270 | 270 | $cmf = new ClassMetadataFactory(); |
271 | - $driver = $this->createAnnotationDriver([__DIR__ . '/../../Models/Quote/']); |
|
271 | + $driver = $this->createAnnotationDriver([__DIR__.'/../../Models/Quote/']); |
|
272 | 272 | $em = $this->createEntityManager($driver); |
273 | 273 | $cmf->setEntityManager($em); |
274 | 274 | |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | $listener |
349 | 349 | ->expects($this->any()) |
350 | 350 | ->method('onClassMetadataNotFound') |
351 | - ->will($this->returnCallback(static function (OnClassMetadataNotFoundEventArgs $args) use ($metadata, $em) { |
|
351 | + ->will($this->returnCallback(static function(OnClassMetadataNotFoundEventArgs $args) use ($metadata, $em) { |
|
352 | 352 | self::assertNull($args->getFoundMetadata()); |
353 | 353 | self::assertSame('Foo', $args->getClassName()); |
354 | 354 | self::assertSame($em, $args->getObjectManager()); |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | public function testInheritsIdGeneratorMappingFromEmbeddable() : void |
411 | 411 | { |
412 | 412 | $cmf = new ClassMetadataFactory(); |
413 | - $driver = $this->createAnnotationDriver([__DIR__ . '/../../Models/DDC4006/']); |
|
413 | + $driver = $this->createAnnotationDriver([__DIR__.'/../../Models/DDC4006/']); |
|
414 | 414 | $em = $this->createEntityManager($driver); |
415 | 415 | $cmf->setEntityManager($em); |
416 | 416 | |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | ) : ClassMetadata { |
434 | 434 | $this->requestedClasses[] = $className; |
435 | 435 | |
436 | - if (! isset($this->mockMetadata[$className])) { |
|
436 | + if ( ! isset($this->mockMetadata[$className])) { |
|
437 | 437 | throw new InvalidArgumentException(sprintf('No mock metadata found for class %s.', $className)); |
438 | 438 | } |
439 | 439 |
@@ -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 |
@@ -27,9 +27,9 @@ |
||
27 | 27 | { |
28 | 28 | $qb = $this->em->createQueryBuilder(); |
29 | 29 | $qb->from(DDC1225TestEntity1::class, 'te1') |
30 | - ->select('te1') |
|
31 | - ->where('te1.testEntity2 = ?1') |
|
32 | - ->setParameter(1, 0); |
|
30 | + ->select('te1') |
|
31 | + ->where('te1.testEntity2 = ?1') |
|
32 | + ->setParameter(1, 0); |
|
33 | 33 | |
34 | 34 | self::assertSQLEquals( |
35 | 35 | 'SELECT t0."testentity2_id" AS c0 FROM "te1" t0 WHERE t0."testentity2_id" = ?', |
@@ -30,8 +30,8 @@ |
||
30 | 30 | public function testCmsModelSet(string $path) : void |
31 | 31 | { |
32 | 32 | $this->em->getConfiguration() |
33 | - ->getMetadataDriverImpl() |
|
34 | - ->addPaths([$path]); |
|
33 | + ->getMetadataDriverImpl() |
|
34 | + ->addPaths([$path]); |
|
35 | 35 | |
36 | 36 | self::assertEmpty($this->validator->validateMapping()); |
37 | 37 | } |
@@ -39,12 +39,12 @@ |
||
39 | 39 | public function modelSetProvider() : array |
40 | 40 | { |
41 | 41 | return [ |
42 | - 'cms' => [__DIR__ . '/../../Models/CMS'], |
|
43 | - 'company' => [__DIR__ . '/../../Models/Company'], |
|
44 | - 'ecommerce' => [__DIR__ . '/../../Models/ECommerce'], |
|
45 | - 'forum' => [__DIR__ . '/../../Models/Forum'], |
|
46 | - 'navigation' => [__DIR__ . '/../../Models/Navigation'], |
|
47 | - 'routing' => [__DIR__ . '/../../Models/Routing'], |
|
42 | + 'cms' => [__DIR__.'/../../Models/CMS'], |
|
43 | + 'company' => [__DIR__.'/../../Models/Company'], |
|
44 | + 'ecommerce' => [__DIR__.'/../../Models/ECommerce'], |
|
45 | + 'forum' => [__DIR__.'/../../Models/Forum'], |
|
46 | + 'navigation' => [__DIR__.'/../../Models/Navigation'], |
|
47 | + 'routing' => [__DIR__.'/../../Models/Routing'], |
|
48 | 48 | ]; |
49 | 49 | } |
50 | 50 |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | public function testExceptionIsThrownWhenCallingFindByWithoutParameter() : void |
284 | 284 | { |
285 | 285 | $this->em->getRepository(CmsUser::class) |
286 | - ->findByStatus(); |
|
286 | + ->findByStatus(); |
|
287 | 287 | } |
288 | 288 | |
289 | 289 | /** |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | public function testExceptionIsThrownWhenUsingInvalidFieldName() : void |
293 | 293 | { |
294 | 294 | $this->em->getRepository(CmsUser::class) |
295 | - ->findByThisFieldDoesNotExist('testvalue'); |
|
295 | + ->findByThisFieldDoesNotExist('testvalue'); |
|
296 | 296 | } |
297 | 297 | |
298 | 298 | /** |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | $this->expectException(TransactionRequiredException::class); |
305 | 305 | |
306 | 306 | $this->em->getRepository(CmsUser::class) |
307 | - ->find(1, LockMode::PESSIMISTIC_READ); |
|
307 | + ->find(1, LockMode::PESSIMISTIC_READ); |
|
308 | 308 | } |
309 | 309 | |
310 | 310 | /** |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | $this->expectException(TransactionRequiredException::class); |
317 | 317 | |
318 | 318 | $this->em->getRepository(CmsUser::class) |
319 | - ->find(1, LockMode::PESSIMISTIC_WRITE); |
|
319 | + ->find(1, LockMode::PESSIMISTIC_WRITE); |
|
320 | 320 | } |
321 | 321 | |
322 | 322 | /** |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | $this->expectException(OptimisticLockException::class); |
329 | 329 | |
330 | 330 | $this->em->getRepository(CmsUser::class) |
331 | - ->find(1, LockMode::OPTIMISTIC); |
|
331 | + ->find(1, LockMode::OPTIMISTIC); |
|
332 | 332 | } |
333 | 333 | |
334 | 334 | /** |
@@ -616,7 +616,7 @@ |
||
616 | 616 | public function testCanRetrieveRepositoryFromClassNameWithLeadingBackslash() : void |
617 | 617 | { |
618 | 618 | self::assertSame( |
619 | - $this->em->getRepository('\\' . CmsUser::class), |
|
619 | + $this->em->getRepository('\\'.CmsUser::class), |
|
620 | 620 | $this->em->getRepository(CmsUser::class) |
621 | 621 | ); |
622 | 622 | } |