@@ -45,7 +45,7 @@ |
||
45 | 45 | $hash = bin2hex($rand); |
46 | 46 | $this->session->set('csrf_token', $hash); |
47 | 47 | } catch (\Exception $e) { |
48 | - echo 'Random generator not present on server: ' . $e->getMessage(); |
|
48 | + echo 'Random generator not present on server: '.$e->getMessage(); |
|
49 | 49 | } |
50 | 50 | } |
51 | 51 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | throw new \Exception("Invalid toastr alert type"); |
33 | 33 | } |
34 | 34 | } catch (\Exception $e) { |
35 | - echo "<pre>alerter error :" . $e.'</pre>'; //See how to handle better, perhaps with a custom error |
|
35 | + echo "<pre>alerter error :".$e.'</pre>'; //See how to handle better, perhaps with a custom error |
|
36 | 36 | die(); |
37 | 37 | } |
38 | 38 |
@@ -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 |
@@ -59,7 +59,7 @@ |
||
59 | 59 | { |
60 | 60 | $host = $_SERVER['HTTP_HOST']; |
61 | 61 | $https = !empty($_SERVER['HTTPS']) ? 'https' : 'http'; |
62 | - return $https . '://' . $host . '/'; |
|
62 | + return $https.'://'.$host.'/'; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |