@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | if (isset($this->regions[$cache['region']])) { |
| 199 | 199 | $region = $this->regions[$cache['region']]; |
| 200 | 200 | if ($cache['usage'] === ClassMetadata::CACHE_USAGE_READ_WRITE && |
| 201 | - !($region instanceof ConcurrentRegion) |
|
| 201 | + ! ($region instanceof ConcurrentRegion) |
|
| 202 | 202 | ) { |
| 203 | 203 | throw new \LogicException('If you want to use a "READ_WRITE" cache an implementation of "Doctrine\ORM\Cache\ConcurrentRegion" is required'); |
| 204 | 204 | } |
@@ -221,12 +221,12 @@ discard block |
||
| 221 | 221 | null === $this->fileLockRegionDirectory |
| 222 | 222 | ) { |
| 223 | 223 | throw new \LogicException( |
| 224 | - 'If you want to use a "READ_WRITE" cache an implementation of "Doctrine\ORM\Cache\ConcurrentRegion" is required, ' . |
|
| 224 | + 'If you want to use a "READ_WRITE" cache an implementation of "Doctrine\ORM\Cache\ConcurrentRegion" is required, '. |
|
| 225 | 225 | 'The default implementation provided by doctrine is "Doctrine\ORM\Cache\Region\FileLockRegion" if you want to use it please provide a valid directory, DefaultCacheFactory#setFileLockRegionDirectory(). ' |
| 226 | 226 | ); |
| 227 | 227 | } |
| 228 | 228 | |
| 229 | - $directory = $this->fileLockRegionDirectory . DIRECTORY_SEPARATOR . $cache['region']; |
|
| 229 | + $directory = $this->fileLockRegionDirectory.DIRECTORY_SEPARATOR.$cache['region']; |
|
| 230 | 230 | $region = new FileLockRegion($region, $directory, $this->regionsConfig->getLockLifetime($cache['region'])); |
| 231 | 231 | } |
| 232 | 232 | |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | { |
| 243 | 243 | $cacheAdapter = clone $this->cache; |
| 244 | 244 | |
| 245 | - if (!$cacheAdapter instanceof CacheProvider) { |
|
| 245 | + if ( ! $cacheAdapter instanceof CacheProvider) { |
|
| 246 | 246 | return $cacheAdapter; |
| 247 | 247 | } |
| 248 | 248 | |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | $namespace .= ':'; |
| 253 | 253 | } |
| 254 | 254 | |
| 255 | - $cacheAdapter->setNamespace($namespace . $name); |
|
| 255 | + $cacheAdapter->setNamespace($namespace.$name); |
|
| 256 | 256 | |
| 257 | 257 | return $cacheAdapter; |
| 258 | 258 | } |