@@ -8,9 +8,9 @@ discard block |
||
8 | 8 | * As this is a singleton, construction and clone are disabled |
9 | 9 | * use SessionManager::getInstance() if you need the instance |
10 | 10 | */ |
11 | - private function __construct(){} |
|
11 | + private function __construct() {} |
|
12 | 12 | |
13 | - private function __clone(){} |
|
13 | + private function __clone() {} |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * @return SessionManager|null |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $secure = isset($secure) ? $secure : isset($_SERVER['HTTPS']); |
42 | 42 | |
43 | 43 | $id = session_id(); |
44 | - if(empty($id)) { |
|
44 | + if (empty($id)) { |
|
45 | 45 | session_name($name . '_Session'); |
46 | 46 | session_set_cookie_params($lifetime, $path, $domain, $secure, true); |
47 | 47 | session_start(); |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | public static function destroySession() |
149 | 149 | { |
150 | 150 | $id = session_id(); |
151 | - if(!empty($id)) { |
|
151 | + if (!empty($id)) { |
|
152 | 152 | $_SESSION = array(); |
153 | 153 | session_destroy(); |
154 | 154 | session_start(); |