@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace voku\cache; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace voku\cache; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace voku\cache; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace voku\cache; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace voku\cache; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace voku\cache; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace voku\cache; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
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 |
||
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 |
||
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 = []; |
@@ -93,7 +93,7 @@ discard block |
||
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 = []; |
@@ -121,7 +121,7 @@ discard block |
||
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 |
||
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 |
||
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 = []; |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace voku\cache; |
6 | 6 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | protected function getFileName(string $key): string |
63 | 63 | { |
64 | - $result = $this->cacheDir . DIRECTORY_SEPARATOR . self::CACHE_FILE_PREFIX . $key . '.php'; |
|
64 | + $result = $this->cacheDir.DIRECTORY_SEPARATOR.self::CACHE_FILE_PREFIX.$key.'.php'; |
|
65 | 65 | |
66 | 66 | return $result; |
67 | 67 | } |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $content = '<?php |
81 | 81 | |
82 | 82 | static $data = [ |
83 | - 0 => ' . $content . ', |
|
83 | + 0 => ' . $content.', |
|
84 | 84 | ]; |
85 | 85 | |
86 | 86 | $result =& $data; |