Failed Conditions
Pull Request — develop (#6935)
by Michael
65:23
created
lib/Doctrine/ORM/Cache/EntityCacheKey.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Cache;
7 7
 
@@ -37,6 +37,6 @@  discard block
 block discarded – undo
37 37
 
38 38
         $this->identifier  = $identifier;
39 39
         $this->entityClass = $entityClass;
40
-        $this->hash        = str_replace('\\', '.', strtolower($entityClass) . '_' . implode(' ', $identifier));
40
+        $this->hash        = str_replace('\\', '.', strtolower($entityClass).'_'.implode(' ', $identifier));
41 41
     }
42 42
 }
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Region/FileLockRegion.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Cache\Region;
7 7
 
@@ -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
     /**
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     {
202 202
         // The check below is necessary because on some platforms glob returns false
203 203
         // when nothing matched (even though no errors occurred)
204
-        $filenames = glob(sprintf("%s/*.%s" , $this->directory, self::LOCK_EXTENSION));
204
+        $filenames = glob(sprintf("%s/*.%s", $this->directory, self::LOCK_EXTENSION));
205 205
 
206 206
         if ($filenames) {
207 207
             foreach ($filenames as $filename) {
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Region/UpdateTimestampCache.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Cache\Region;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Region/DefaultRegion.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Cache\Region;
7 7
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     protected function getCacheEntryKey(CacheKey $key)
111 111
     {
112
-        return $this->name . self::REGION_KEY_SEPARATOR . $key->hash;
112
+        return $this->name.self::REGION_KEY_SEPARATOR.$key->hash;
113 113
     }
114 114
 
115 115
     /**
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
      */
134 134
     public function evictAll()
135 135
     {
136
-        if (! $this->cache instanceof ClearableCache) {
136
+        if ( ! $this->cache instanceof ClearableCache) {
137 137
             throw new \BadMethodCallException(sprintf(
138 138
                 'Clearing all cache entries is not supported by the supplied cache adapter of type %s',
139 139
                 get_class($this->cache)
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Persister/CachedPersister.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Doctrine\ORM\Cache\Persister;
6 6
 
Please login to merge, or discard this patch.
ORM/Cache/Persister/Collection/ReadWriteCachedCollectionPersister.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Cache\Persister\Collection;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Persister/Entity/AbstractEntityPersister.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Cache\Persister\Entity;
7 7
 
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
             ? $this->persister->expandCriteriaParameters($criteria)
283 283
             : $this->persister->expandParameters($criteria);
284 284
 
285
-        return sha1($query . serialize($params) . serialize($orderBy) . $limit . $offset);
285
+        return sha1($query.serialize($params).serialize($orderBy).$limit.$offset);
286 286
     }
287 287
 
288 288
     /**
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
     /**
269 269
      * Generates a string of currently query
270 270
      *
271
-     * @param array   $query
271
+     * @param string   $query
272 272
      * @param string  $criteria
273 273
      * @param array   $orderBy
274 274
      * @param integer $limit
@@ -335,6 +335,7 @@  discard block
 block discarded – undo
335 335
 
336 336
     /**
337 337
      * {@inheritdoc}
338
+     * @param string $fieldName
338 339
      */
339 340
     public function getOwningTable($fieldName)
340 341
     {
@@ -367,6 +368,7 @@  discard block
 block discarded – undo
367 368
 
368 369
     /**
369 370
      * {@inheritdoc}
371
+     * @param \Doctrine\Tests\Models\Cache\Country $entity
370 372
      */
371 373
     public function insert($entity)
372 374
     {
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@
 block discarded – undo
50 50
      */
51 51
     protected $class;
52 52
 
53
-     /**
54
-      * @var array
55
-      */
53
+        /**
54
+         * @var array
55
+         */
56 56
     protected $queuedCache = [];
57 57
 
58 58
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/Persister/Entity/ReadOnlyCachedEntityPersister.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Cache\Persister\Entity;
7 7
 
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
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 
4
-declare(strict_types=1);
4
+declare(strict_types = 1);
5 5
 
6 6
 namespace Doctrine\ORM\Cache;
7 7
 
@@ -208,12 +208,12 @@  discard block
 block discarded – undo
208 208
         if ($cache->getUsage() === CacheUsage::READ_WRITE) {
209 209
             if ( ! $this->fileLockRegionDirectory) {
210 210
                 throw new \LogicException(
211
-                    'If you want to use a "READ_WRITE" cache an implementation of "Doctrine\ORM\Cache\ConcurrentRegion" is required, ' .
211
+                    'If you want to use a "READ_WRITE" cache an implementation of "Doctrine\ORM\Cache\ConcurrentRegion" is required, '.
212 212
                     '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(). '
213 213
                 );
214 214
             }
215 215
 
216
-            $directory = $this->fileLockRegionDirectory . DIRECTORY_SEPARATOR . $regionName;
216
+            $directory = $this->fileLockRegionDirectory.DIRECTORY_SEPARATOR.$regionName;
217 217
             $region    = new FileLockRegion($region, $directory, $this->regionsConfig->getLockLifetime($regionName));
218 218
         }
219 219
 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
     {
230 230
         $cacheAdapter = clone $this->cache;
231 231
 
232
-        if (!$cacheAdapter instanceof CacheProvider) {
232
+        if ( ! $cacheAdapter instanceof CacheProvider) {
233 233
             return $cacheAdapter;
234 234
         }
235 235
 
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
             $namespace .= ':';
240 240
         }
241 241
 
242
-        $cacheAdapter->setNamespace($namespace . $name);
242
+        $cacheAdapter->setNamespace($namespace.$name);
243 243
 
244 244
         return $cacheAdapter;
245 245
     }
Please login to merge, or discard this patch.