Passed
Push — master ( fc2432...ebee01 )
by Florian
01:24
created
src/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/Handler/CakeORMHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     public function __construct(RepositoryInterface $repository)
56 56
     {
57 57
         $this->_table = $repository;
58
-        $this->_timeout = (int)ini_get('session.gc_maxlifetime');
58
+        $this->_timeout = (int) ini_get('session.gc_maxlifetime');
59 59
     }
60 60
 
61 61
     /**
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         $record[$this->_table->getPrimaryKey()] = $id;
145 145
         $result = $this->_table->save(new Entity($record));
146 146
 
147
-        return (bool)$result;
147
+        return (bool) $result;
148 148
     }
149 149
 
150 150
     /**
Please login to merge, or discard this patch.
src/Session.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             $this->setSaveHandler($handler);
103 103
         }
104 104
 
105
-        $this->lifetime = (int)ini_get('session.gc_maxlifetime');
105
+        $this->lifetime = (int) ini_get('session.gc_maxlifetime');
106 106
         $this->isCLI = (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg');
107 107
 
108 108
         session_register_shutdown();
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
         $result = false;
186 186
 
187 187
         $checkTime = $time !== null && $this->lifetime > 0;
188
-        if ($checkTime && (time() - (int)$time > $this->lifetime)) {
188
+        if ($checkTime && (time() - (int) $time > $this->lifetime)) {
189 189
             $result = true;
190 190
         }
191 191
 
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
         if ($value !== null) {
265 265
             $dot = new Dot($_SESSION);
266 266
             $dot->delete($name);
267
-            $this->overwrite($_SESSION, (array)$dot->get());
267
+            $this->overwrite($_SESSION, (array) $dot->get());
268 268
         }
269 269
 
270 270
         return $value;
@@ -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
     /**
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
     public function delete(string $name): void
371 371
     {
372 372
         if ($this->check($name)) {
373
-            $this->overwrite($_SESSION, (array)(new Dot($_SESSION))->delete($name));
373
+            $this->overwrite($_SESSION, (array) (new Dot($_SESSION))->delete($name));
374 374
         }
375 375
     }
376 376
 
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
         $result = false;
485 485
 
486 486
         $checkTime = $time !== null && $this->lifetime > 0;
487
-        if ($checkTime && (time() - (int)$time > $this->lifetime)) {
487
+        if ($checkTime && (time() - (int) $time > $this->lifetime)) {
488 488
             $result = true;
489 489
         }
490 490
 
Please login to merge, or discard this patch.