@@ -36,7 +36,7 @@ |
||
| 36 | 36 | return; |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | - if (! isset(self::$sharedConn)) { |
|
| 39 | + if ( ! isset(self::$sharedConn)) { |
|
| 40 | 40 | self::$sharedConn = TestUtil::getConnection(); |
| 41 | 41 | } |
| 42 | 42 | |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | { |
| 65 | 65 | $reader = new Annotations\CachedReader(new Annotations\AnnotationReader(), new ArrayCache()); |
| 66 | 66 | |
| 67 | - Annotations\AnnotationRegistry::registerFile(__DIR__ . '/../../../lib/Doctrine/ORM/Annotation/DoctrineAnnotations.php'); |
|
| 67 | + Annotations\AnnotationRegistry::registerFile(__DIR__.'/../../../lib/Doctrine/ORM/Annotation/DoctrineAnnotations.php'); |
|
| 68 | 68 | |
| 69 | 69 | return new AnnotationDriver($reader, (array) $paths); |
| 70 | 70 | } |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $config->setProxyNamespace('Doctrine\Tests\Proxies'); |
| 102 | 102 | $config->setAutoGenerateProxyClasses(ProxyFactory::AUTOGENERATE_EVAL); |
| 103 | 103 | $config->setMetadataDriverImpl( |
| 104 | - $config->newDefaultAnnotationDriver([realpath(__DIR__ . '/Models/Cache')]) |
|
| 104 | + $config->newDefaultAnnotationDriver([realpath(__DIR__.'/Models/Cache')]) |
|
| 105 | 105 | ); |
| 106 | 106 | |
| 107 | 107 | if ($this->isSecondLevelCacheEnabled) { |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | ? $this->persister->expandCriteriaParameters($criteria) |
| 260 | 260 | : $this->persister->expandParameters($criteria); |
| 261 | 261 | |
| 262 | - return sha1($query . serialize($params) . serialize($orderBy) . $limit . $offset); |
|
| 262 | + return sha1($query.serialize($params).serialize($orderBy).$limit.$offset); |
|
| 263 | 263 | } |
| 264 | 264 | |
| 265 | 265 | /** |
@@ -557,7 +557,7 @@ discard block |
||
| 557 | 557 | $hasCache = ($persister instanceof CachedPersister); |
| 558 | 558 | $key = null; |
| 559 | 559 | |
| 560 | - if (! $hasCache) { |
|
| 560 | + if ( ! $hasCache) { |
|
| 561 | 561 | return $this->persister->loadManyToManyCollection($association, $sourceEntity, $collection); |
| 562 | 562 | } |
| 563 | 563 | |
@@ -596,7 +596,7 @@ discard block |
||
| 596 | 596 | $persister = $uow->getCollectionPersister($association); |
| 597 | 597 | $hasCache = ($persister instanceof CachedPersister); |
| 598 | 598 | |
| 599 | - if (! $hasCache) { |
|
| 599 | + if ( ! $hasCache) { |
|
| 600 | 600 | return $this->persister->loadOneToManyCollection($association, $sourceEntity, $collection); |
| 601 | 601 | } |
| 602 | 602 | |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | $isInitialized = $collection->isInitialized(); |
| 62 | 62 | $isDirty = $collection->isDirty(); |
| 63 | 63 | |
| 64 | - if (! $isInitialized && ! $isDirty) { |
|
| 64 | + if ( ! $isInitialized && ! $isDirty) { |
|
| 65 | 65 | return; |
| 66 | 66 | } |
| 67 | 67 | |
@@ -143,7 +143,7 @@ |
||
| 143 | 143 | $targetHydrator = $targetPersister->getEntityHydrator(); |
| 144 | 144 | |
| 145 | 145 | // Only preserve ordering if association configured it |
| 146 | - if (! ($association instanceof ToManyAssociationMetadata && $association->getIndexedBy())) { |
|
| 146 | + if ( ! ($association instanceof ToManyAssociationMetadata && $association->getIndexedBy())) { |
|
| 147 | 147 | // Elements may be an array or a Collection |
| 148 | 148 | $elements = array_values($elements instanceof Collection ? $elements->getValues() : $elements); |
| 149 | 149 | } |
@@ -47,6 +47,6 @@ |
||
| 47 | 47 | $this->ownerIdentifier = $ownerIdentifier; |
| 48 | 48 | $this->entityClass = (string) $entityClass; |
| 49 | 49 | $this->association = (string) $association; |
| 50 | - $this->hash = str_replace('\\', '.', strtolower($entityClass)) . '_' . implode(' ', $ownerIdentifier) . '__' . $association; |
|
| 50 | + $this->hash = str_replace('\\', '.', strtolower($entityClass)).'_'.implode(' ', $ownerIdentifier).'__'.$association; |
|
| 51 | 51 | } |
| 52 | 52 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | public static function fromDriver(Cache $cache) : self |
| 13 | 13 | { |
| 14 | 14 | return new self( |
| 15 | - 'Metadata Cache uses a non-persistent cache driver, ' . get_class($cache) . '.' |
|
| 15 | + 'Metadata Cache uses a non-persistent cache driver, '.get_class($cache).'.' |
|
| 16 | 16 | ); |
| 17 | 17 | } |
| 18 | 18 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | public static function fromDriver(Cache $cache) : self |
| 13 | 13 | { |
| 14 | 14 | return new self( |
| 15 | - 'Query Cache uses a non-persistent cache driver, ' . get_class($cache) . '.' |
|
| 15 | + 'Query Cache uses a non-persistent cache driver, '.get_class($cache).'.' |
|
| 16 | 16 | ); |
| 17 | 17 | } |
| 18 | 18 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function getParentClasses(string $className) : array |
| 20 | 20 | { |
| 21 | - if (! class_exists($className)) { |
|
| 21 | + if ( ! class_exists($className)) { |
|
| 22 | 22 | throw MappingException::nonExistingClass($className); |
| 23 | 23 | } |
| 24 | 24 | |