@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | $this->data = $_REQUEST or []; |
| 40 | 40 | $this->query = $_GET or []; |
| 41 | 41 | $contentType = $this->getHeader('Content-Type'); |
| 42 | - if(null === $contentType) { |
|
| 42 | + if (null === $contentType) { |
|
| 43 | 43 | $contentType = $this->getServer('CONTENT_TYPE') ?: 'text/html'; |
| 44 | 44 | } |
| 45 | 45 | if (preg_match('/application\/json/i', $contentType)) { |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | { |
| 227 | 227 | if (null === $url) $url = $this->getServer('HTTP_ORIGIN'); |
| 228 | 228 | ob_start(); |
| 229 | - header('Location: ' . $url); |
|
| 229 | + header('Location: '.$url); |
|
| 230 | 230 | ob_end_clean(); |
| 231 | 231 | Security::getInstance()->updateSession(); |
| 232 | 232 | exit(_("Redireccionando...")); |
@@ -271,9 +271,9 @@ discard block |
||
| 271 | 271 | $host = $this->getServerName(); |
| 272 | 272 | $protocol = $protocol ? $this->getProtocol() : ''; |
| 273 | 273 | $url = ''; |
| 274 | - if (!empty($host) && !empty($protocol)) $url = $protocol . $host; |
|
| 274 | + if (!empty($host) && !empty($protocol)) $url = $protocol.$host; |
|
| 275 | 275 | if (!in_array($this->getServer('SERVER_PORT'), [80, 443])) { |
| 276 | - $url .= ':' . $this->getServer('SERVER_PORT'); |
|
| 276 | + $url .= ':'.$this->getServer('SERVER_PORT'); |
|
| 277 | 277 | } |
| 278 | 278 | return $url; |
| 279 | 279 | } |