Test Failed
Branch master (bc2285)
by Florian
04:28
created
src/Infrastructure/Http/Session/Config.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function getCookieHttpOnly(): bool
67 67
     {
68
-        return (bool)ini_get('session.cookie_httponly');
68
+        return (bool) ini_get('session.cookie_httponly');
69 69
     }
70 70
 
71 71
     /**
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     public function getUseTransSid(): bool
146 146
     {
147
-        return (bool)ini_get('session.use_trans_sid');
147
+        return (bool) ini_get('session.use_trans_sid');
148 148
     }
149 149
 
150 150
     /**
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      */
195 195
     public function getGcLifeTime(): int
196 196
     {
197
-        return (int)ini_get('session.gc_maxlifetime') / 60;
197
+        return (int) ini_get('session.gc_maxlifetime') / 60;
198 198
     }
199 199
 
200 200
     /**
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
      */
203 203
     public function iniSet(string $setting, $value)
204 204
     {
205
-        $result = ini_set($setting, (string)$value);
205
+        $result = ini_set($setting, (string) $value);
206 206
         if ($result === false) {
207 207
             throw new RuntimeException(sprintf('Could not set `%s`', $setting));
208 208
         }
Please login to merge, or discard this patch.
src/Infrastructure/Http/Session/Session.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@
 block discarded – undo
222 222
         }
223 223
 
224 224
         return $this->getFromArray($_SESSION, $name) !== null;
225
-     }
225
+        }
226 226
 
227 227
     /**
228 228
      * Returns given session variable, or all of them, if no parameters given.
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             $this->setSaveHandler($handler);
104 104
         }
105 105
 
106
-        $this->lifetime = (int)ini_get('session.gc_maxlifetime');
106
+        $this->lifetime = (int) ini_get('session.gc_maxlifetime');
107 107
         $this->isCLI = (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg');
108 108
 
109 109
         session_register_shutdown();
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         $result = false;
187 187
 
188 188
         $checkTime = $time !== null && $this->lifetime > 0;
189
-        if ($checkTime && (time() - (int)$time > $this->lifetime)) {
189
+        if ($checkTime && (time() - (int) $time > $this->lifetime)) {
190 190
             $result = true;
191 191
         }
192 192
 
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
      */
330 330
     public function getId(): string
331 331
     {
332
-        return (string)session_id();
332
+        return (string) session_id();
333 333
     }
334 334
 
335 335
     /**
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
         $result = false;
487 487
 
488 488
         $checkTime = $time !== null && $this->lifetime > 0;
489
-        if ($checkTime && (time() - (int)$time > $this->lifetime)) {
489
+        if ($checkTime && (time() - (int) $time > $this->lifetime)) {
490 490
             $result = true;
491 491
         }
492 492
 
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
                 $array[$key] = [];
539 539
             }
540 540
 
541
-            $array =& $array[$key];
541
+            $array = & $array[$key];
542 542
         }
543 543
 
544 544
         $array[array_shift($keys)] = $value;
Please login to merge, or discard this patch.