Passed
Push — v7 ( a69bc6...41e516 )
by Georges
02:04
created
lib/Phpfastcache/Core/Pool/IO/IOHelperTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
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
 
@@ -56,8 +56,8 @@  discard block
 block discarded – undo
56 56
         {
57 57
             $securityKey = $this->getConfig()->getSecurityKey();
58 58
             if (!$securityKey || mb_strtolower($securityKey) === 'auto') {
59
-                if (isset($_SERVER[ 'HTTP_HOST' ])) {
60
-                    $securityKey = preg_replace('/^www./', '', \strtolower(\str_replace(':', '_', $_SERVER[ 'HTTP_HOST' ])));
59
+                if (isset($_SERVER['HTTP_HOST'])) {
60
+                    $securityKey = preg_replace('/^www./', '', \strtolower(\str_replace(':', '_', $_SERVER['HTTP_HOST'])));
61 61
                 } else {
62 62
                     $securityKey = ($this->isPHPModule() ? 'web' : 'cli');
63 63
                 }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             return $full_path;
101 101
         }
102 102
 
103
-        if (!isset($this->tmp[ $full_path_hash ]) || (!@\file_exists($full_path) || !@\is_writable($full_path))) {
103
+        if (!isset($this->tmp[$full_path_hash]) || (!@\file_exists($full_path) || !@\is_writable($full_path))) {
104 104
             if (!@\file_exists($full_path)) {
105 105
                 @mkdir($full_path, $this->getDefaultChmod(), true);
106 106
             } else if (!@\is_writable($full_path)) {
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                 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 !');
126 126
             }
127 127
 
128
-            $this->tmp[ $full_path_hash ] = $full_path;
128
+            $this->tmp[$full_path_hash] = $full_path;
129 129
             $this->htaccessGen($full_path, \array_key_exists('htaccess', $this->getConfig()) ? $this->getConfig()->getHtaccess() : false);
130 130
         }
131 131
 
Please login to merge, or discard this patch.