@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | protected function getFilenameToken($key) |
| 48 | 48 | { |
| 49 | - return sys_get_temp_dir() . '/shmop-' . sha1($key) . '.cache'; |
|
| 49 | + return sys_get_temp_dir().'/shmop-'.sha1($key).'.cache'; |
|
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | protected function getMaxSize() |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | $size = strlen($serialized); |
| 139 | 139 | |
| 140 | 140 | if ($size > $this->getMaxSize()) { |
| 141 | - throw new StorageErrorException('Object is greater than the max size allowed: ' . $this->getMaxSize()); |
|
| 141 | + throw new StorageErrorException('Object is greater than the max size allowed: '.$this->getMaxSize()); |
|
| 142 | 142 | } |
| 143 | 143 | |
| 144 | 144 | $file = $this->getFilenameToken($key); |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | |
| 210 | 210 | public function clear() |
| 211 | 211 | { |
| 212 | - $patternKey = sys_get_temp_dir() . '/shmop-*.cache'; |
|
| 212 | + $patternKey = sys_get_temp_dir().'/shmop-*.cache'; |
|
| 213 | 213 | $list = glob($patternKey); |
| 214 | 214 | foreach ($list as $file) { |
| 215 | 215 | $this->deleteFromFilenameToken($file); |