@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $this->data = $_REQUEST or []; |
28 | 28 | $this->query = $_GET or []; |
29 | 29 | $contentType = $this->getHeader('Content-Type'); |
30 | - if(null === $contentType) { |
|
30 | + if (null === $contentType) { |
|
31 | 31 | $contentType = $this->getServer('Content-Type') ?: 'text/html'; |
32 | 32 | } |
33 | 33 | if (preg_match('/application\/json/i', $contentType)) { |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | */ |
118 | 118 | public static function header($name, $default = null) |
119 | 119 | { |
120 | - return self::getInstance()->getHeader($name, $default); |
|
120 | + return self::getInstance()->getHeader($name, $default); |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | /** |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | { |
221 | 221 | if (null === $url) $url = $this->getServer('HTTP_ORIGIN'); |
222 | 222 | ob_start(); |
223 | - header('Location: ' . $url); |
|
223 | + header('Location: '.$url); |
|
224 | 224 | ob_end_clean(); |
225 | 225 | Security::getInstance()->updateSession(); |
226 | 226 | exit(_("Redireccionando...")); |
@@ -265,9 +265,9 @@ discard block |
||
265 | 265 | $host = $this->getServerName(); |
266 | 266 | $protocol = $protocol ? $this->getProtocol() : ''; |
267 | 267 | $url = ''; |
268 | - if (!empty($host) && !empty($protocol)) $url = $protocol . $host; |
|
268 | + if (!empty($host) && !empty($protocol)) $url = $protocol.$host; |
|
269 | 269 | if (!in_array($this->getServer('SERVER_PORT'), [80, 443])) { |
270 | - $url .= ':' . $this->getServer('SERVER_PORT'); |
|
270 | + $url .= ':'.$this->getServer('SERVER_PORT'); |
|
271 | 271 | } |
272 | 272 | return $url; |
273 | 273 | } |