@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * @author Georges.L (Geolim4) <[email protected]> |
12 | 12 | * |
13 | 13 | */ |
14 | -declare(strict_types=1); |
|
14 | +declare(strict_types = 1); |
|
15 | 15 | |
16 | 16 | namespace Phpfastcache\Core\Pool\IO; |
17 | 17 | |
@@ -54,8 +54,8 @@ discard block |
||
54 | 54 | { |
55 | 55 | $securityKey = \array_key_exists('securityKey', $this->config) ? $this->config->getOption('securityKey') : ''; |
56 | 56 | if (!$securityKey || mb_strtolower($securityKey) === 'auto') { |
57 | - if (isset($_SERVER[ 'HTTP_HOST' ])) { |
|
58 | - $securityKey = preg_replace('/^www./', '', \strtolower(\str_replace(':', '_', $_SERVER[ 'HTTP_HOST' ]))); |
|
57 | + if (isset($_SERVER['HTTP_HOST'])) { |
|
58 | + $securityKey = preg_replace('/^www./', '', \strtolower(\str_replace(':', '_', $_SERVER['HTTP_HOST']))); |
|
59 | 59 | } else { |
60 | 60 | $securityKey = ($this->isPHPModule() ? 'web' : 'cli'); |
61 | 61 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | return $full_path; |
99 | 99 | } |
100 | 100 | |
101 | - if (!isset($this->tmp[ $full_path_hash ]) || (!@\file_exists($full_path) || !@\is_writable($full_path))) { |
|
101 | + if (!isset($this->tmp[$full_path_hash]) || (!@\file_exists($full_path) || !@\is_writable($full_path))) { |
|
102 | 102 | if (!@\file_exists($full_path)) { |
103 | 103 | @mkdir($full_path, $this->getDefaultChmod(), true); |
104 | 104 | } else if (!@\is_writable($full_path)) { |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | throw new phpFastCacheIOException('Path "' . $full_path . '" is not writable, please set a chmod 0777 or any writable permission and make sure to make use of an absolute path !'); |
124 | 124 | } |
125 | 125 | |
126 | - $this->tmp[ $full_path_hash ] = $full_path; |
|
126 | + $this->tmp[$full_path_hash] = $full_path; |
|
127 | 127 | $this->htaccessGen($full_path, \array_key_exists('htaccess', $this->config) ? $this->config->getOption('htaccess') : false); |
128 | 128 | } |
129 | 129 |