Completed
Push — master ( a18851...eb3437 )
by Lars
02:11
created
src/voku/cache/iAdapter.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 voku\cache;
6 6
 
Please login to merge, or discard this patch.
src/voku/cache/AdapterArray.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 voku\cache;
6 6
 
Please login to merge, or discard this patch.
src/voku/cache/AdapterXcache.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 voku\cache;
6 6
 
Please login to merge, or discard this patch.
src/voku/cache/AdapterMemcache.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
 namespace voku\cache;
6 6
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
   {
96 96
     // Make sure we are under the proper limit
97 97
     if (\strlen($key) > 250) {
98
-      throw new InvalidArgumentException('The passed cache key is over 250 bytes:' . print_r($key, true));
98
+      throw new InvalidArgumentException('The passed cache key is over 250 bytes:'.print_r($key, true));
99 99
     }
100 100
 
101 101
     return $this->memcache->set($key, $value, $this->getCompressedFlag());
Please login to merge, or discard this patch.
src/voku/cache/SerializerIgbinary.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 voku\cache;
6 6
 
Please login to merge, or discard this patch.
src/voku/cache/AdapterMemcached.php 1 patch
Spacing   +3 added lines, -3 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
 namespace voku\cache;
6 6
 
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
   public function set(string $key, $value): bool
92 92
   {
93 93
     // Make sure we are under the proper limit
94
-    if (\strlen($this->memcached->getOption(\Memcached::OPT_PREFIX_KEY) . $key) > 250) {
95
-      throw new InvalidArgumentException('The passed cache key is over 250 bytes:' . print_r($key, true));
94
+    if (\strlen($this->memcached->getOption(\Memcached::OPT_PREFIX_KEY).$key) > 250) {
95
+      throw new InvalidArgumentException('The passed cache key is over 250 bytes:'.print_r($key, true));
96 96
     }
97 97
 
98 98
     return $this->memcached->set($key, $value);
Please login to merge, or discard this patch.
src/voku/cache/CachePsr16.php 1 patch
Spacing   +7 added lines, -7 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
 namespace voku\cache;
6 6
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
   public function delete($key): bool
32 32
   {
33 33
     if (!\is_string($key)) {
34
-      throw new InvalidArgumentException('$key is not a string:' . print_r($key, true));
34
+      throw new InvalidArgumentException('$key is not a string:'.print_r($key, true));
35 35
     }
36 36
 
37 37
     return $this->removeItem($key);
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
   public function deleteMultiple($keys): bool
50 50
   {
51 51
     if (!\is_array($keys) && !($keys instanceof \Traversable)) {
52
-      throw new InvalidArgumentException('$keys is not iterable:' . print_r($keys, true));
52
+      throw new InvalidArgumentException('$keys is not iterable:'.print_r($keys, true));
53 53
     }
54 54
 
55 55
     $results = array();
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
   public function getMultiple($keys, $default = null)
94 94
   {
95 95
     if (!\is_array($keys) && !($keys instanceof \Traversable)) {
96
-      throw new InvalidArgumentException('$keys is not iterable:' . print_r($keys, true));
96
+      throw new InvalidArgumentException('$keys is not iterable:'.print_r($keys, true));
97 97
     }
98 98
 
99 99
     $result = array();
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
   public function has($key): bool
122 122
   {
123 123
     if (!\is_string($key)) {
124
-      throw new InvalidArgumentException('$key is not a string:' . print_r($key, true));
124
+      throw new InvalidArgumentException('$key is not a string:'.print_r($key, true));
125 125
     }
126 126
 
127 127
     return $this->existsItem($key);
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
   public function set($key, $value, $ttl = null): bool
144 144
   {
145 145
     if (!\is_string($key)) {
146
-      throw new InvalidArgumentException('$key is not a string:' . print_r($key, true));
146
+      throw new InvalidArgumentException('$key is not a string:'.print_r($key, true));
147 147
     }
148 148
 
149 149
     return $this->setItem($key, $value, $ttl);
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
   public function setMultiple($values, $ttl = null): bool
165 165
   {
166 166
     if (!\is_array($values) && !($values instanceof \Traversable)) {
167
-      throw new InvalidArgumentException('$values is not iterable:' . print_r($values, true));
167
+      throw new InvalidArgumentException('$values is not iterable:'.print_r($values, true));
168 168
     }
169 169
 
170 170
     $results = array();
Please login to merge, or discard this patch.
src/voku/cache/Cache.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -256,10 +256,10 @@
 block discarded – undo
256 256
   protected function getTheDefaultPrefix()
257 257
   {
258 258
     return ($_SERVER['SERVER_NAME'] ?? '') . '_' .
259
-           ($_SERVER['THEME'] ?? '') . '_' .
260
-           ($_SERVER['STAGE'] ?? '') . '_' .
261
-           ($_SESSION['language'] ?? '') . '_' .
262
-           ($_SESSION['language_extra'] ?? '');
259
+            ($_SERVER['THEME'] ?? '') . '_' .
260
+            ($_SERVER['STAGE'] ?? '') . '_' .
261
+            ($_SESSION['language'] ?? '') . '_' .
262
+            ($_SESSION['language_extra'] ?? '');
263 263
   }
264 264
 
265 265
   /**
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 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
 namespace voku\cache;
6 6
 
@@ -255,10 +255,10 @@  discard block
 block discarded – undo
255 255
    */
256 256
   protected function getTheDefaultPrefix()
257 257
   {
258
-    return ($_SERVER['SERVER_NAME'] ?? '') . '_' .
259
-           ($_SERVER['THEME'] ?? '') . '_' .
260
-           ($_SERVER['STAGE'] ?? '') . '_' .
261
-           ($_SESSION['language'] ?? '') . '_' .
258
+    return ($_SERVER['SERVER_NAME'] ?? '').'_'.
259
+           ($_SERVER['THEME'] ?? '').'_'.
260
+           ($_SERVER['STAGE'] ?? '').'_'.
261
+           ($_SESSION['language'] ?? '').'_'.
262 262
            ($_SESSION['language_extra'] ?? '');
263 263
   }
264 264
 
@@ -511,7 +511,7 @@  discard block
 block discarded – undo
511 511
    */
512 512
   protected function calculateStoreKey(string $rawKey): string
513 513
   {
514
-    $str = $this->getPrefix() . $rawKey;
514
+    $str = $this->getPrefix().$rawKey;
515 515
 
516 516
     if ($this->adapter instanceof AdapterFile) {
517 517
       $str = $this->cleanStoreKey($str);
Please login to merge, or discard this patch.