Completed
Pull Request — master (#229)
by Timothy
03:59
created
lib/Doctrine/Common/Cache/PhpFileCache.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     {
44 44
         parent::__construct($directory, $extension, $umask);
45 45
 
46
-        self::$emptyErrorHandler = function () {
46
+        self::$emptyErrorHandler = function() {
47 47
         };
48 48
     }
49 49
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             $lifeTime = time() + $lifeTime;
89 89
         }
90 90
 
91
-        $filename  = $this->getFilename($id);
91
+        $filename = $this->getFilename($id);
92 92
 
93 93
         $value = [
94 94
             'lifetime'  => $lifeTime,
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      *
112 112
      * @return array|null
113 113
      */
114
-    private function includeFileForId(string $id) : ?array
114
+    private function includeFileForId(string $id) : ? array
115 115
     {
116 116
         $fileName = $this->getFilename($id);
117 117
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
         restore_error_handler();
124 124
 
125
-        if (! isset($value['lifetime'])) {
125
+        if ( ! isset($value['lifetime'])) {
126 126
             return null;
127 127
         }
128 128
 
Please login to merge, or discard this patch.
lib/Doctrine/Common/Cache/CacheProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      */
192 192
     private function getNamespacedId(string $id) : string
193 193
     {
194
-        $namespaceVersion  = $this->getNamespaceVersion();
194
+        $namespaceVersion = $this->getNamespaceVersion();
195 195
 
196 196
         return sprintf('%s[%s][%s]', $this->namespace, $id, $namespaceVersion);
197 197
     }
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
         $success = true;
275 275
 
276 276
         foreach ($keysAndValues as $key => $value) {
277
-            if (!$this->doSave($key, $value, $lifetime)) {
277
+            if ( ! $this->doSave($key, $value, $lifetime)) {
278 278
                 $success = false;
279 279
             }
280 280
         }
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
         $success = true;
307 307
 
308 308
         foreach ($keys as $key) {
309
-            if (! $this->doDelete($key)) {
309
+            if ( ! $this->doDelete($key)) {
310 310
                 $success = false;
311 311
             }
312 312
         }
Please login to merge, or discard this patch.
lib/Doctrine/Common/Cache/ExtMongoDBCache.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             $this->collection->updateOne(
121 121
                 ['_id' => $id],
122 122
                 ['$set' => [
123
-                    MongoDBCache::EXPIRATION_FIELD => ($lifeTime > 0 ? new UTCDateTime((time() + $lifeTime) * 1000): null),
123
+                    MongoDBCache::EXPIRATION_FIELD => ($lifeTime > 0 ? new UTCDateTime((time() + $lifeTime) * 1000) : null),
124 124
                     MongoDBCache::DATA_FIELD => new Binary(serialize($data), Binary::TYPE_GENERIC),
125 125
                 ]],
126 126
                 ['upsert' => true]
Please login to merge, or discard this patch.
lib/Doctrine/Common/Cache/CouchbaseBucketCache.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     {
42 42
         $this->bucket = $bucket;
43 43
 
44
-        if (!is_callable([$bucket, 'manager'])) {
44
+        if ( ! is_callable([$bucket, 'manager'])) {
45 45
             // Manager is required to flush cache and pull stats.
46 46
             throw new \RuntimeException('ext-couchbase:^2.3.0 is required.');
47 47
         }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         }
84 84
 
85 85
         if ($document instanceof Document) {
86
-            return !$document->error;
86
+            return ! $document->error;
87 87
         }
88 88
 
89 89
         return false;
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         }
113 113
 
114 114
         if ($document instanceof Document) {
115
-            return !$document->error;
115
+            return ! $document->error;
116 116
         }
117 117
 
118 118
         return false;
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         }
138 138
 
139 139
         if ($document instanceof Document) {
140
-            return !$document->error;
140
+            return ! $document->error;
141 141
         }
142 142
 
143 143
         return false;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
     }
198 198
 
199 199
     /**
200
-     * @param mixed $value
200
+     * @param string $value
201 201
      * @return string
202 202
      */
203 203
     private function encode($value) :string
Please login to merge, or discard this patch.