Test Failed
Branch master (bc2285)
by Florian
04:28
created
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.