Passed
Push — master ( 0a2888...e4ffa7 )
by Fran
10:55
created
src/base/Request.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     public static function header($name, $default = null)
114 114
     {
115
-        return self::getInstance()->getHeader($name,  $default);
115
+        return self::getInstance()->getHeader($name, $default);
116 116
     }
117 117
 
118 118
     /**
@@ -125,8 +125,8 @@  discard block
 block discarded – undo
125 125
         $header = null;
126 126
         if ($this->hasHeader($name)) {
127 127
             $header = $this->header[$name];
128
-        } else if(array_key_exists('h_' . strtolower($name), $this->query)) {
129
-            $header = $this->query['h_' . strtolower($name)];
128
+        }else if (array_key_exists('h_'.strtolower($name), $this->query)) {
129
+            $header = $this->query['h_'.strtolower($name)];
130 130
         }
131 131
         return $header ?: $default;
132 132
     }
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
     {
225 225
         if (null === $url) $url = $this->getServer('HTTP_ORIGIN');
226 226
         ob_start();
227
-        header('Location: ' . $url);
227
+        header('Location: '.$url);
228 228
         ob_end_clean();
229 229
         Security::getInstance()->updateSession();
230 230
         exit(_("Redireccionando..."));
@@ -269,9 +269,9 @@  discard block
 block discarded – undo
269 269
         $host = $this->getServerName();
270 270
         $protocol = $protocol ? $this->getProtocol() : '';
271 271
         $url = '';
272
-        if (!empty($host) && !empty($protocol)) $url = $protocol . $host;
272
+        if (!empty($host) && !empty($protocol)) $url = $protocol.$host;
273 273
         if (!in_array($this->getServer('SERVER_PORT'), [80, 443])) {
274
-            $url .= ':' . $this->getServer('SERVER_PORT');
274
+            $url .= ':'.$this->getServer('SERVER_PORT');
275 275
         }
276 276
         return $url;
277 277
     }
Please login to merge, or discard this patch.