@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | foreach ($props as $name => $prop) { |
| 75 | 75 | $ident += 4; |
| 76 | 76 | $str .= str_repeat(' ', $ident) . '"' . $name . '": ' |
| 77 | - . $this->dump($prop) . ',' . PHP_EOL; |
|
| 77 | + . $this->dump($prop) . ',' . PHP_EOL; |
|
| 78 | 78 | $ident -= 4; |
| 79 | 79 | } |
| 80 | 80 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | foreach ($obj as $k => $v) { |
| 88 | 88 | $str .= PHP_EOL . str_repeat(' ', $ident) . '"' |
| 89 | - . $k . '" => ' . $this->dump($v) . ','; |
|
| 89 | + . $k . '" => ' . $this->dump($v) . ','; |
|
| 90 | 90 | $some = true; |
| 91 | 91 | } |
| 92 | 92 | |
@@ -138,8 +138,8 @@ |
||
| 138 | 138 | public function __toString() |
| 139 | 139 | { |
| 140 | 140 | return strtoupper($this->joinType) . ' JOIN ' . $this->join |
| 141 | - . ($this->alias ? ' ' . $this->alias : '') |
|
| 142 | - . ($this->indexBy ? ' INDEX BY ' . $this->indexBy : '') |
|
| 143 | - . ($this->condition ? ' ' . strtoupper($this->conditionType) . ' ' . $this->condition : ''); |
|
| 141 | + . ($this->alias ? ' ' . $this->alias : '') |
|
| 142 | + . ($this->indexBy ? ' INDEX BY ' . $this->indexBy : '') |
|
| 143 | + . ($this->condition ? ' ' . strtoupper($this->conditionType) . ' ' . $this->condition : ''); |
|
| 144 | 144 | } |
| 145 | 145 | } |
@@ -212,10 +212,10 @@ |
||
| 212 | 212 | } |
| 213 | 213 | |
| 214 | 214 | /** |
| 215 | - * Obtain the name of the second level query cache region in which query results will be stored |
|
| 216 | - * |
|
| 217 | - * @return string|null The cache region name; NULL indicates the default region. |
|
| 218 | - */ |
|
| 215 | + * Obtain the name of the second level query cache region in which query results will be stored |
|
| 216 | + * |
|
| 217 | + * @return string|null The cache region name; NULL indicates the default region. |
|
| 218 | + */ |
|
| 219 | 219 | public function getCacheRegion() |
| 220 | 220 | { |
| 221 | 221 | return $this->cacheRegion; |
@@ -38,9 +38,9 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | class DefaultQueryCache implements QueryCache |
| 40 | 40 | { |
| 41 | - /** |
|
| 42 | - * @var \Doctrine\ORM\EntityManagerInterface |
|
| 43 | - */ |
|
| 41 | + /** |
|
| 42 | + * @var \Doctrine\ORM\EntityManagerInterface |
|
| 43 | + */ |
|
| 44 | 44 | private $em; |
| 45 | 45 | |
| 46 | 46 | /** |
@@ -56,12 +56,12 @@ |
||
| 56 | 56 | */ |
| 57 | 57 | public function entityCacheMiss($regionName, EntityCacheKey $key); |
| 58 | 58 | |
| 59 | - /** |
|
| 60 | - * Log an entity put into second level cache. |
|
| 61 | - * |
|
| 62 | - * @param string $regionName The name of the cache region. |
|
| 63 | - * @param \Doctrine\ORM\Cache\CollectionCacheKey $key The cache key of the collection. |
|
| 64 | - */ |
|
| 59 | + /** |
|
| 60 | + * Log an entity put into second level cache. |
|
| 61 | + * |
|
| 62 | + * @param string $regionName The name of the cache region. |
|
| 63 | + * @param \Doctrine\ORM\Cache\CollectionCacheKey $key The cache key of the collection. |
|
| 64 | + */ |
|
| 65 | 65 | public function collectionCachePut($regionName, CollectionCacheKey $key); |
| 66 | 66 | |
| 67 | 67 | /** |
@@ -58,8 +58,8 @@ |
||
| 58 | 58 | $entityManager = $this->getHelper('em')->getEntityManager(); |
| 59 | 59 | |
| 60 | 60 | $entityClassNames = $entityManager->getConfiguration() |
| 61 | - ->getMetadataDriverImpl() |
|
| 62 | - ->getAllClassNames(); |
|
| 61 | + ->getMetadataDriverImpl() |
|
| 62 | + ->getAllClassNames(); |
|
| 63 | 63 | |
| 64 | 64 | if (!$entityClassNames) { |
| 65 | 65 | throw new \Exception( |
@@ -242,17 +242,17 @@ |
||
| 242 | 242 | public function getUnitOfWork(); |
| 243 | 243 | |
| 244 | 244 | /** |
| 245 | - * Gets a hydrator for the given hydration mode. |
|
| 246 | - * |
|
| 247 | - * This method caches the hydrator instances which is used for all queries that don't |
|
| 248 | - * selectively iterate over the result. |
|
| 249 | - * |
|
| 250 | - * @deprecated |
|
| 251 | - * |
|
| 252 | - * @param int $hydrationMode |
|
| 253 | - * |
|
| 254 | - * @return \Doctrine\ORM\Internal\Hydration\AbstractHydrator |
|
| 255 | - */ |
|
| 245 | + * Gets a hydrator for the given hydration mode. |
|
| 246 | + * |
|
| 247 | + * This method caches the hydrator instances which is used for all queries that don't |
|
| 248 | + * selectively iterate over the result. |
|
| 249 | + * |
|
| 250 | + * @deprecated |
|
| 251 | + * |
|
| 252 | + * @param int $hydrationMode |
|
| 253 | + * |
|
| 254 | + * @return \Doctrine\ORM\Internal\Hydration\AbstractHydrator |
|
| 255 | + */ |
|
| 256 | 256 | public function getHydrator($hydrationMode); |
| 257 | 257 | |
| 258 | 258 | /** |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | public function resolve($className) |
| 68 | 68 | { |
| 69 | 69 | if (isset($this->instances[$className = trim($className, '\\')])) { |
| 70 | - return $this->instances[$className]; |
|
| 70 | + return $this->instances[$className]; |
|
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | return $this->instances[$className] = new $className(); |
@@ -30,9 +30,9 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | class ReadOnlyCachedCollectionPersister extends NonStrictReadWriteCachedCollectionPersister |
| 32 | 32 | { |
| 33 | - /** |
|
| 34 | - * {@inheritdoc} |
|
| 35 | - */ |
|
| 33 | + /** |
|
| 34 | + * {@inheritdoc} |
|
| 35 | + */ |
|
| 36 | 36 | public function update(PersistentCollection $collection) |
| 37 | 37 | { |
| 38 | 38 | if ($collection->isDirty() && $collection->getSnapshot()) { |