Passed
Push — main ( 443191...88b700 )
by Sammy
06:51
created
src/Smith.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     private function __construct(array $options = [])
24 24
     {
25 25
         if (self::sessionsAreDisabled()) {
26
-            throw new \UnexpectedValueException(__CLASS__ . '::PHP_SESSION_DISABLED');
26
+            throw new \UnexpectedValueException(__CLASS__.'::PHP_SESSION_DISABLED');
27 27
         }
28 28
 
29 29
         if (self::hasNoSession()) {
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         bool $secure = false,
48 48
         bool $httponly = false
49 49
     ): bool {
50
-        return setcookie($name, $value, time() + $expires_in, $path, $domain, $secure, $httponly);
50
+        return setcookie($name, $value, time()+$expires_in, $path, $domain, $secure, $httponly);
51 51
     }
52 52
 
53 53
     // returns the value stored or null
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     public function hasFilter(string $filter_name): bool
95 95
     {
96 96
         return isset($_SESSION[self::INDEX_FILTER][$filter_name])
97
-        && strlen('' . $_SESSION[self::INDEX_FILTER][$filter_name]) > 0;
97
+        && strlen(''.$_SESSION[self::INDEX_FILTER][$filter_name]) > 0;
98 98
     }
99 99
 
100 100
     public function addFilter(string $filter_name, mixed $value): void
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             setcookie(
145 145
                 session_name(),
146 146
                 '',
147
-                time() - 42000,
147
+                time()-42000,
148 148
                 $params["path"],
149 149
                 $params["domain"],
150 150
                 $params["secure"],
Please login to merge, or discard this patch.