@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | 9 => "St Julien" |
| 169 | 169 | ]; |
| 170 | 170 | |
| 171 | - $query = $this->_em |
|
| 171 | + $query = $this->_em |
|
| 172 | 172 | ->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)") |
| 173 | 173 | ->setParameter('cities', $cities); |
| 174 | 174 | |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | */ |
| 185 | 185 | public function testProcessParameterValueClassMetadata() |
| 186 | 186 | { |
| 187 | - $query = $this->_em->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)"); |
|
| 187 | + $query = $this->_em->createQuery("SELECT a FROM Doctrine\Tests\Models\CMS\CmsAddress a WHERE a.city IN (:cities)"); |
|
| 188 | 188 | $this->assertEquals( |
| 189 | 189 | CmsAddress::class, |
| 190 | 190 | $query->processParameterValue($this->_em->getClassMetadata(CmsAddress::class)) |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | */ |
| 333 | 333 | public function testGetParameterTypeJuggling() : void |
| 334 | 334 | { |
| 335 | - $query = $this->_em->createQuery('select u from ' . CmsUser::class . ' u where u.id = ?0'); |
|
| 335 | + $query = $this->_em->createQuery('select u from '.CmsUser::class.' u where u.id = ?0'); |
|
| 336 | 336 | |
| 337 | 337 | $query->setParameter(0, 0); |
| 338 | 338 | |
@@ -346,7 +346,7 @@ discard block |
||
| 346 | 346 | */ |
| 347 | 347 | public function testSetParameterWithNameZeroIsNotOverridden() : void |
| 348 | 348 | { |
| 349 | - $query = $this->_em->createQuery('select u from ' . CmsUser::class . ' u where u.id != ?0 and u.username = :name'); |
|
| 349 | + $query = $this->_em->createQuery('select u from '.CmsUser::class.' u where u.id != ?0 and u.username = :name'); |
|
| 350 | 350 | |
| 351 | 351 | $query->setParameter(0, 0); |
| 352 | 352 | $query->setParameter('name', 'Doctrine'); |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | */ |
| 362 | 362 | public function testSetParameterWithNameZeroDoesNotOverrideAnotherParameter() : void |
| 363 | 363 | { |
| 364 | - $query = $this->_em->createQuery('select u from ' . CmsUser::class . ' u where u.id != ?0 and u.username = :name'); |
|
| 364 | + $query = $this->_em->createQuery('select u from '.CmsUser::class.' u where u.id != ?0 and u.username = :name'); |
|
| 365 | 365 | |
| 366 | 366 | $query->setParameter('name', 'Doctrine'); |
| 367 | 367 | $query->setParameter(0, 0); |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | */ |
| 377 | 377 | public function testSetParameterWithTypeJugglingWorks() : void |
| 378 | 378 | { |
| 379 | - $query = $this->_em->createQuery('select u from ' . CmsUser::class . ' u where u.id != ?0 and u.username = :name'); |
|
| 379 | + $query = $this->_em->createQuery('select u from '.CmsUser::class.' u where u.id != ?0 and u.username = :name'); |
|
| 380 | 380 | |
| 381 | 381 | $query->setParameter('0', 1); |
| 382 | 382 | $query->setParameter('name', 'Doctrine'); |
@@ -396,7 +396,7 @@ discard block |
||
| 396 | 396 | { |
| 397 | 397 | $this->_em->getConfiguration()->setResultCacheImpl(new ArrayCache()); |
| 398 | 398 | |
| 399 | - $query = $this->_em->createQuery('SELECT u FROM ' . CmsUser::class . ' u'); |
|
| 399 | + $query = $this->_em->createQuery('SELECT u FROM '.CmsUser::class.' u'); |
|
| 400 | 400 | $query->useResultCache(true); |
| 401 | 401 | $query->setResultCacheProfile(); |
| 402 | 402 | |
@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | ->expects(self::never()) |
| 415 | 415 | ->method('getSingleIdentifierValue'); |
| 416 | 416 | |
| 417 | - $query = $this->_em->createQuery('SELECT d FROM ' . DateTimeModel::class . ' d WHERE d.datetime = :value'); |
|
| 417 | + $query = $this->_em->createQuery('SELECT d FROM '.DateTimeModel::class.' d WHERE d.datetime = :value'); |
|
| 418 | 418 | |
| 419 | 419 | $query->setParameter('value', new DateTime(), Type::DATETIME); |
| 420 | 420 | |
@@ -57,8 +57,8 @@ |
||
| 57 | 57 | $this->parsedQueryWithDeclaredParameterType = $entityManager->createQuery($dql); |
| 58 | 58 | |
| 59 | 59 | foreach (range(1, 10) as $index) { |
| 60 | - $this->parsedQueryWithInferredParameterType->setParameter('parameter' . $index, new DateTime()); |
|
| 61 | - $this->parsedQueryWithDeclaredParameterType->setParameter('parameter' . $index, new DateTime(), DateTimeType::DATETIME); |
|
| 60 | + $this->parsedQueryWithInferredParameterType->setParameter('parameter'.$index, new DateTime()); |
|
| 61 | + $this->parsedQueryWithDeclaredParameterType->setParameter('parameter'.$index, new DateTime(), DateTimeType::DATETIME); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | // Force parsing upfront - we don't benchmark that bit in this scenario |
@@ -19,12 +19,12 @@ discard block |
||
| 19 | 19 | { |
| 20 | 20 | $config = new Configuration(); |
| 21 | 21 | |
| 22 | - $config->setProxyDir(__DIR__ . '/../Tests/Proxies'); |
|
| 22 | + $config->setProxyDir(__DIR__.'/../Tests/Proxies'); |
|
| 23 | 23 | $config->setProxyNamespace('Doctrine\Tests\Proxies'); |
| 24 | 24 | $config->setAutoGenerateProxyClasses(ProxyFactory::AUTOGENERATE_EVAL); |
| 25 | 25 | $config->setMetadataDriverImpl($config->newDefaultAnnotationDriver([ |
| 26 | - realpath(__DIR__ . '/Models/Cache'), |
|
| 27 | - realpath(__DIR__ . '/Models/GeoNames'), |
|
| 26 | + realpath(__DIR__.'/Models/Cache'), |
|
| 27 | + realpath(__DIR__.'/Models/GeoNames'), |
|
| 28 | 28 | ], true)); |
| 29 | 29 | |
| 30 | 30 | $entityManager = EntityManager::create( |
@@ -45,13 +45,13 @@ discard block |
||
| 45 | 45 | { |
| 46 | 46 | $config = new Configuration(); |
| 47 | 47 | |
| 48 | - $config->setProxyDir(__DIR__ . '/../Tests/Proxies'); |
|
| 48 | + $config->setProxyDir(__DIR__.'/../Tests/Proxies'); |
|
| 49 | 49 | $config->setProxyNamespace('Doctrine\Tests\Proxies'); |
| 50 | 50 | $config->setAutoGenerateProxyClasses(ProxyFactory::AUTOGENERATE_EVAL); |
| 51 | 51 | $config->setMetadataDriverImpl($config->newDefaultAnnotationDriver([ |
| 52 | - realpath(__DIR__ . '/Models/Cache'), |
|
| 53 | - realpath(__DIR__ . '/Models/Generic'), |
|
| 54 | - realpath(__DIR__ . '/Models/GeoNames'), |
|
| 52 | + realpath(__DIR__.'/Models/Cache'), |
|
| 53 | + realpath(__DIR__.'/Models/Generic'), |
|
| 54 | + realpath(__DIR__.'/Models/GeoNames'), |
|
| 55 | 55 | ], true)); |
| 56 | 56 | |
| 57 | 57 | // A connection that doesn't really do anything |