Completed
Push — master ( fbc89b...961d9b )
by Derek Stephen
01:41
created
src/SessionManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@  discard block
 block discarded – undo
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
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $secure = isset($secure) ? $secure : isset($_SERVER['HTTPS']);
48 48
 
49 49
         $id = session_id();
50
-        if(empty($id)) {
50
+        if (empty($id)) {
51 51
             session_name($name . '_Session');
52 52
             session_set_cookie_params($lifetime, $path, $domain, $secure, true);
53 53
             session_start();
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     {
160 160
         $id = session_id();
161 161
 
162
-        if(!empty($id)) {
162
+        if (!empty($id)) {
163 163
             $_SESSION = array();
164 164
             session_destroy();
165 165
             session_start();
Please login to merge, or discard this patch.