@@ -23,14 +23,14 @@ |
||
| 23 | 23 | default: |
| 24 | 24 | $headerType = 'text/html'; |
| 25 | 25 | } |
| 26 | - $contentType = 'Content-Type: ' . $headerType; |
|
| 26 | + $contentType = 'Content-Type: '.$headerType; |
|
| 27 | 27 | |
| 28 | 28 | header($contentType); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | public function redirect(string $url = ''): void |
| 32 | 32 | { |
| 33 | - header("location: /" . $url); |
|
| 33 | + header("location: /".$url); |
|
| 34 | 34 | die(); //after redirect do not execute anything else from the function |
| 35 | 35 | } |
| 36 | 36 | } |
| 37 | 37 | \ No newline at end of file |