@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace Core\Dependency; |
4 | 4 | |
5 | -class Cookie{ |
|
5 | +class Cookie { |
|
6 | 6 | |
7 | 7 | /** |
8 | 8 | * set a cookie |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | */ |
22 | 22 | public function deleteCookie(string $name):void |
23 | 23 | { |
24 | - setcookie($name, "", time()-3600); //expire the cookie |
|
24 | + setcookie($name, "", time() - 3600); //expire the cookie |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
@@ -53,7 +53,7 @@ |
||
53 | 53 | public function viewUser(int $userId) |
54 | 54 | { |
55 | 55 | $this->onlyAdmin(); |
56 | - if(!$this->isInt($userId)) |
|
56 | + if (!$this->isInt($userId)) |
|
57 | 57 | { |
58 | 58 | throw new \Exception("Error in passed ID"); |
59 | 59 | } |