Completed
Pull Request — master (#6441)
by Simone
62:48
created
lib/Doctrine/ORM/Cache/DefaultCacheFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -215,12 +215,12 @@  discard block
 block discarded – undo
215 215
                 null === $this->fileLockRegionDirectory
216 216
             ) {
217 217
                 throw new \LogicException(
218
-                    'If you want to use a "READ_WRITE" cache an implementation of "Doctrine\ORM\Cache\ConcurrentRegion" is required, ' .
218
+                    'If you want to use a "READ_WRITE" cache an implementation of "Doctrine\ORM\Cache\ConcurrentRegion" is required, '.
219 219
                     '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(). '
220 220
                 );
221 221
             }
222 222
 
223
-            $directory = $this->fileLockRegionDirectory . DIRECTORY_SEPARATOR . $cache['region'];
223
+            $directory = $this->fileLockRegionDirectory.DIRECTORY_SEPARATOR.$cache['region'];
224 224
             $region    = new FileLockRegion($region, $directory, $this->regionsConfig->getLockLifetime($cache['region']));
225 225
         }
226 226
 
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     {
237 237
         $cacheAdapter = clone $this->cache;
238 238
 
239
-        if (!$cacheAdapter instanceof CacheProvider) {
239
+        if ( ! $cacheAdapter instanceof CacheProvider) {
240 240
             return $cacheAdapter;
241 241
         }
242 242
 
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
             $namespace .= ':';
247 247
         }
248 248
 
249
-        $cacheAdapter->setNamespace($namespace . $name);
249
+        $cacheAdapter->setNamespace($namespace.$name);
250 250
 
251 251
         return $cacheAdapter;
252 252
     }
Please login to merge, or discard this patch.