Failed Conditions
Pull Request — develop (#6600)
by Mike
62:56
created
lib/Doctrine/ORM/Cache/Lock.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
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     public function __construct($value, $time = null)
31 31
     {
32 32
         $this->value = $value;
33
-        $this->time  = $time ? : time();
33
+        $this->time  = $time ?: time();
34 34
     }
35 35
 
36 36
     /**
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/AssociationCacheEntry.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;
7 7
 
Please login to merge, or discard this patch.
lib/Doctrine/ORM/Cache/DefaultEntityHydrator.php 1 patch
Spacing   +6 added lines, -6 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
 
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
         $data = array_merge($data, $persister->getIdentifier($entity)); // why update has no identifier values ?
60 60
 
61 61
         foreach ($metadata->getProperties() as $name => $association) {
62
-            if (! isset($data[$name]) || $association instanceof FieldMetadata) {
62
+            if ( ! isset($data[$name]) || $association instanceof FieldMetadata) {
63 63
                 continue;
64 64
             }
65 65
 
66
-            if (! $association instanceof ToOneAssociationMetadata) {
66
+            if ( ! $association instanceof ToOneAssociationMetadata) {
67 67
                 unset($data[$name]);
68 68
 
69 69
                 continue;
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             $targetClassMetadata = $this->em->getClassMetadata($targetEntity);
74 74
             $targetPersister     = $this->uow->getEntityPersister($targetEntity);
75 75
 
76
-            if (! $association->getCache()) {
76
+            if ( ! $association->getCache()) {
77 77
                 $owningAssociation   = ! $association->isOwningSide()
78 78
                     ? $targetClassMetadata->getProperty($association->getMappedBy())
79 79
                     : $association;
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
                 continue;
122 122
             }
123 123
 
124
-            if (! $association->isPrimaryKey()) {
124
+            if ( ! $association->isPrimaryKey()) {
125 125
                 $targetClass = ClassUtils::getClass($data[$name]);
126 126
                 $targetId    = $this->uow->getEntityIdentifier($data[$name]);
127 127
                 $data[$name] = new AssociationCacheEntry($targetClass, $targetId);
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
                 ($association instanceof OneToOneAssociationMetadata && ! $association->isOwningSide())
172 172
             );
173 173
 
174
-            if (! $isEagerLoad) {
174
+            if ( ! $isEagerLoad) {
175 175
                 $data[$name] = $this->em->getReference($assocClass, $assocId);
176 176
 
177 177
                 continue;
Please login to merge, or discard this patch.
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/Region/DefaultMultiGetRegion.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/TimestampRegion.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;
7 7
 
Please login to merge, or discard this patch.