@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | } |
7 | 7 | |
8 | 8 | function site(string $param = null): string { |
9 | - if($param && !empty(SITE[$param])) { |
|
9 | + if ($param && !empty(SITE[$param])) { |
|
10 | 10 | return SITE[$param]; |
11 | 11 | } |
12 | 12 | |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | function flash(string $type = null, string $message = null): ?string { |
43 | - if($type && $message) { |
|
43 | + if ($type && $message) { |
|
44 | 44 | $_SESSION['flash'] = [ |
45 | 45 | 'type' => $type, |
46 | 46 | 'message' => $message |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | return null; |
49 | 49 | } |
50 | 50 | |
51 | - if(!empty($_SESSION['flash']) && $flash = $_SESSION['flash']) { |
|
51 | + if (!empty($_SESSION['flash']) && $flash = $_SESSION['flash']) { |
|
52 | 52 | unset($_SESSION['flash']); |
53 | 53 | return "<div class=\"message {$flash["type"]}\">{$flash["message"]}</div>"; |
54 | 54 | } |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | curl_close($curl); |
174 | 174 | |
175 | 175 | if ($curlError) { |
176 | - return [ 'curl_error' => $curlError ]; |
|
176 | + return ['curl_error' => $curlError]; |
|
177 | 177 | } |
178 | 178 | |
179 | 179 | return [ |
@@ -61,7 +61,7 @@ |
||
61 | 61 | |
62 | 62 | switch ($message->type) { |
63 | 63 | case 'confirmEmail': |
64 | - $Email = new Email([ $message->content->email ], true); |
|
64 | + $Email = new Email([$message->content->email], true); |
|
65 | 65 | |
66 | 66 | if (!$Email->SendMail(ConfirmEmail::bind('127.0.0.1:80/confirm'), 'Confirm your email')) { |
67 | 67 | \writeLog('Confirm email not delivered for: ', $message->content->email); |