Passed
Push — main ( 88b700...2b544a )
by Sammy
04:24 queued 03:06
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, string $value): void
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
             setcookie(
144 144
                 session_name(),
145 145
                 '',
146
-                time() - 42000,
146
+                time()-42000,
147 147
                 $params["path"],
148 148
                 $params["domain"],
149 149
                 $params["secure"],
Please login to merge, or discard this patch.