Completed
Push — master ( f4c848...d31188 )
by Jonathan
24s queued 17s
created
tests/Doctrine/Tests/OrmTestCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Region/FileLockRegion.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
      */
52 52
     public function __construct(Region $region, $directory, $lockLifetime)
53 53
     {
54
-        if (! is_dir($directory) && ! @mkdir($directory, 0775, true)) {
54
+        if ( ! is_dir($directory) && ! @mkdir($directory, 0775, true)) {
55 55
             throw new \InvalidArgumentException(sprintf('The directory "%s" does not exist and could not be created.', $directory));
56 56
         }
57 57
 
58
-        if (! is_writable($directory)) {
58
+        if ( ! is_writable($directory)) {
59 59
             throw new \InvalidArgumentException(sprintf('The directory "%s" is not writable.', $directory));
60 60
         }
61 61
 
@@ -71,14 +71,14 @@  discard block
 block discarded – undo
71 71
     {
72 72
         $filename = $this->getLockFileName($key);
73 73
 
74
-        if (! is_file($filename)) {
74
+        if ( ! is_file($filename)) {
75 75
             return false;
76 76
         }
77 77
 
78 78
         $time    = $this->getLockTime($filename);
79 79
         $content = $this->getLockContent($filename);
80 80
 
81
-        if (! $content || ! $time) {
81
+        if ( ! $content || ! $time) {
82 82
             @unlink($filename);
83 83
 
84 84
             return false;
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     private function getLockFileName(CacheKey $key)
105 105
     {
106
-        return $this->directory . DIRECTORY_SEPARATOR . $key->hash . '.' . self::LOCK_EXTENSION;
106
+        return $this->directory.DIRECTORY_SEPARATOR.$key->hash.'.'.self::LOCK_EXTENSION;
107 107
     }
108 108
 
109 109
     /**
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
         $lock     = Lock::createLockRead();
225 225
         $filename = $this->getLockFileName($key);
226 226
 
227
-        if (! @file_put_contents($filename, $lock->value, LOCK_EX)) {
227
+        if ( ! @file_put_contents($filename, $lock->value, LOCK_EX)) {
228 228
             return null;
229 229
         }
230 230
         chmod($filename, 0664);
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
             return false;
242 242
         }
243 243
 
244
-        if (! @unlink($this->getLockFileName($key))) {
244
+        if ( ! @unlink($this->getLockFileName($key))) {
245 245
             return false;
246 246
         }
247 247
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Cache/Persister/Collection/NonStrictReadWriteCachedCollectionPersister.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Persister/Collection/AbstractCollectionPersister.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/DefaultCacheFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -181,14 +181,14 @@  discard block
 block discarded – undo
181 181
         ;
182 182
 
183 183
         if ($cache->getUsage() === CacheUsage::READ_WRITE) {
184
-            if (! $this->fileLockRegionDirectory) {
184
+            if ( ! $this->fileLockRegionDirectory) {
185 185
                 throw new \LogicException(
186
-                    'If you want to use a "READ_WRITE" cache an implementation of "Doctrine\ORM\Cache\ConcurrentRegion" is required, ' .
186
+                    'If you want to use a "READ_WRITE" cache an implementation of "Doctrine\ORM\Cache\ConcurrentRegion" is required, '.
187 187
                     '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(). '
188 188
                 );
189 189
             }
190 190
 
191
-            $directory = $this->fileLockRegionDirectory . DIRECTORY_SEPARATOR . $regionName;
191
+            $directory = $this->fileLockRegionDirectory.DIRECTORY_SEPARATOR.$regionName;
192 192
             $region    = new FileLockRegion($region, $directory, $this->regionsConfig->getLockLifetime($regionName));
193 193
         }
194 194
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
     {
205 205
         $cacheAdapter = clone $this->cache;
206 206
 
207
-        if (! $cacheAdapter instanceof CacheProvider) {
207
+        if ( ! $cacheAdapter instanceof CacheProvider) {
208 208
             return $cacheAdapter;
209 209
         }
210 210
 
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
             $namespace .= ':';
215 215
         }
216 216
 
217
-        $cacheAdapter->setNamespace($namespace . $name);
217
+        $cacheAdapter->setNamespace($namespace.$name);
218 218
 
219 219
         return $cacheAdapter;
220 220
     }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/CollectionCacheKey.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,6 +47,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Exception/MetadataCacheUsesNonPersistentCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Exception/QueryCacheUsesNonPersistentCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.