Completed
Push — master ( 977993...f2b737 )
by Lars
01:50
created
src/voku/cache/AdapterFileAbstract.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,13 +41,13 @@  discard block
 block discarded – undo
41 41
         $this->serializer = new SerializerIgbinary();
42 42
 
43 43
         if (!$cacheDir) {
44
-            $cacheDir = \realpath(\sys_get_temp_dir()) . '/simple_php_cache';
44
+            $cacheDir = \realpath(\sys_get_temp_dir()).'/simple_php_cache';
45 45
         }
46 46
 
47 47
         if (\is_callable($cacheDir)) {
48
-            $this->cacheDir = (string) \call_user_func($cacheDir);
48
+            $this->cacheDir = (string)\call_user_func($cacheDir);
49 49
         } else {
50
-            $this->cacheDir = (string) $cacheDir;
50
+            $this->cacheDir = (string)$cacheDir;
51 51
         }
52 52
 
53 53
         if ($this->createCacheDirectory($this->cacheDir) === true) {
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      */
196 196
     protected function getFileName(string $key): string
197 197
     {
198
-        return $this->cacheDir . \DIRECTORY_SEPARATOR . self::CACHE_FILE_PREFIX . $key . self::CACHE_FILE_SUBFIX;
198
+        return $this->cacheDir.\DIRECTORY_SEPARATOR.self::CACHE_FILE_PREFIX.$key.self::CACHE_FILE_SUBFIX;
199 199
     }
200 200
 
201 201
     /**
Please login to merge, or discard this patch.
src/voku/cache/CacheAdapterAutoManager.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         /** @noinspection PhpUnhandledExceptionInspection */
88 88
         $interfaces = (new \ReflectionClass($replaceAdapter))->getInterfaces();
89 89
         if (!\array_key_exists(iAdapter::class, $interfaces)) {
90
-            throw new InvalidArgumentException('"' . $replaceAdapter . '" did not implement the "iAdapter"-interface [' . \print_r($interfaces, true) . ']');
90
+            throw new InvalidArgumentException('"'.$replaceAdapter.'" did not implement the "iAdapter"-interface ['.\print_r($interfaces, true).']');
91 91
         }
92 92
     }
93 93
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         /** @noinspection PhpUnhandledExceptionInspection */
118 118
         $cacheAdapterManager->addAdapter(
119 119
             AdapterMemcached::class,
120
-            static function () {
120
+            static function() {
121 121
                 $memcached = null;
122 122
                 $isMemcachedAvailable = false;
123 123
                 if (\extension_loaded('memcached')) {
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         /** @noinspection PhpUnhandledExceptionInspection */
139 139
         $cacheAdapterManager->addAdapter(
140 140
             AdapterMemcache::class,
141
-            static function () {
141
+            static function() {
142 142
                 $memcache = null;
143 143
                 $isMemcacheAvailable = false;
144 144
                 /** @noinspection ClassConstantCanBeUsedInspection */
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
         /** @noinspection PhpUnhandledExceptionInspection */
161 161
         $cacheAdapterManager->addAdapter(
162 162
             AdapterPredis::class,
163
-            static function () {
163
+            static function() {
164 164
                 $redis = null;
165 165
                 $isRedisAvailable = false;
166 166
                 if (
@@ -215,8 +215,8 @@  discard block
 block discarded – undo
215 215
         /** @noinspection PhpUnhandledExceptionInspection */
216 216
         $cacheAdapterManager->addAdapter(
217 217
             AdapterOpCache::class,
218
-            static function () {
219
-                return \realpath(\sys_get_temp_dir()) . '/simple_php_cache';
218
+            static function() {
219
+                return \realpath(\sys_get_temp_dir()).'/simple_php_cache';
220 220
             }
221 221
         );
222 222
 
Please login to merge, or discard this patch.