Passed
Branch main (1437de)
by Sammy
06:42
created
Smith.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 
23 23
     private function __construct($options = [])
24 24
     {
25
-        switch(session_status())
25
+        switch (session_status())
26 26
         {
27 27
           case PHP_SESSION_DISABLED:
28 28
             throw new \UnexpectedValueException(__CLASS__.'::PHP_SESSION_DISABLED');
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     // camelCase wrapper for setcookie, coherent with getCookie
53 53
     public function setCookie($name, $value = "", $expires_in = 365 * 24 * 60 * 60, $path = "/", $domain = "", $secure = false, $httponly = false): bool
54 54
     {
55
-        return setcookie($name, $value, time() + $expires_in, $path, $domain, $secure, $httponly);
55
+        return setcookie($name, $value, time()+$expires_in, $path, $domain, $secure, $httponly);
56 56
     }
57 57
 
58 58
     // returns the value stored or null
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
     public function hasFilter($filter_name): bool
100 100
     {
101
-        return isset($_SESSION[self::INDEX_FILTER][$filter_name]) && strlen('' . $_SESSION[self::INDEX_FILTER][$filter_name]) > 0;
101
+        return isset($_SESSION[self::INDEX_FILTER][$filter_name]) && strlen(''.$_SESSION[self::INDEX_FILTER][$filter_name]) > 0;
102 102
     }
103 103
 
104 104
     public function addFilter($filter_name, $value)
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             setcookie(
149 149
                 session_name(),
150 150
                 '',
151
-                time() - 42000,
151
+                time()-42000,
152 152
                 $params["path"],
153 153
                 $params["domain"],
154 154
                 $params["secure"],
Please login to merge, or discard this patch.