Passed
Push — main ( 2cb152...6ff26f )
by TARIQ
23:50
created
brighty/system/Router/RouteCollection.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      */
230 230
     public function addPlaceholder($placeholder, ?string $pattern = null): RouteCollectionInterface
231 231
     {
232
-        if (! is_array($placeholder)) {
232
+        if (!is_array($placeholder)) {
233 233
             $placeholder = [$placeholder => $pattern];
234 234
         }
235 235
 
@@ -823,7 +823,7 @@  discard block
 block discarded – undo
823 823
      *
824 824
      * @param array|Closure|string $to
825 825
      */
826
-    public function match(array $verbs = [], string $from = '', $to = '', ?array $options = null): RouteCollectionInterface
826
+    public function match(array $verbs = [], string $from = '', $to = '', ?array $options = null) : RouteCollectionInterface
827 827
     {
828 828
         if (empty($from) || empty($to)) {
829 829
             throw new InvalidArgumentException('You must supply the parameters: from, to.');
@@ -982,7 +982,7 @@  discard block
 block discarded – undo
982 982
                 $to   = $route['route'][$from];
983 983
 
984 984
                 // ignore closures
985
-                if (! is_string($to)) {
985
+                if (!is_string($to)) {
986 986
                     continue;
987 987
                 }
988 988
 
@@ -1088,7 +1088,7 @@  discard block
 block discarded – undo
1088 1088
         // Build our resulting string, inserting the $params in
1089 1089
         // the appropriate places.
1090 1090
         foreach ($matches[0] as $index => $pattern) {
1091
-            if (! preg_match('#^' . $pattern . '$#u', $params[$index])) {
1091
+            if (!preg_match('#^' . $pattern . '$#u', $params[$index])) {
1092 1092
                 throw RouterException::forInvalidParameterType();
1093 1093
             }
1094 1094
 
@@ -1133,7 +1133,7 @@  discard block
 block discarded – undo
1133 1133
         }
1134 1134
 
1135 1135
         // Hostname limiting?
1136
-        if (! empty($options['hostname'])) {
1136
+        if (!empty($options['hostname'])) {
1137 1137
             // @todo determine if there's a way to whitelist hosts?
1138 1138
             if (isset($_SERVER['HTTP_HOST']) && strtolower($_SERVER['HTTP_HOST']) !== strtolower($options['hostname'])) {
1139 1139
                 return;
@@ -1143,10 +1143,10 @@  discard block
 block discarded – undo
1143 1143
         }
1144 1144
 
1145 1145
         // Limiting to subdomains?
1146
-        elseif (! empty($options['subdomain'])) {
1146
+        elseif (!empty($options['subdomain'])) {
1147 1147
             // If we don't match the current subdomain, then
1148 1148
             // we don't need to add the route.
1149
-            if (! $this->checkSubdomains($options['subdomain'])) {
1149
+            if (!$this->checkSubdomains($options['subdomain'])) {
1150 1150
                 return;
1151 1151
             }
1152 1152
 
@@ -1163,7 +1163,7 @@  discard block
 block discarded – undo
1163 1163
             for ($i = (int) $options['offset'] + 1; $i < (int) $options['offset'] + 7; $i++) {
1164 1164
                 $to = preg_replace_callback(
1165 1165
                     '/\$X/',
1166
-                    static function ($m) use ($i) {
1166
+                    static function($m) use ($i) {
1167 1167
                         return '$' . $i;
1168 1168
                     },
1169 1169
                     $to,
@@ -1179,7 +1179,7 @@  discard block
 block discarded – undo
1179 1179
         }
1180 1180
 
1181 1181
         // If is redirect, No processing
1182
-        if (! isset($options['redirect']) && is_string($to)) {
1182
+        if (!isset($options['redirect']) && is_string($to)) {
1183 1183
             // If no namespace found, add the default namespace
1184 1184
             if (strpos($to, '\\') === false || strpos($to, '\\') > 0) {
1185 1185
                 $namespace = $options['namespace'] ?? $this->defaultNamespace;
@@ -1197,7 +1197,7 @@  discard block
 block discarded – undo
1197 1197
         // routes should always be the "source of truth".
1198 1198
         // this works only because discovered routes are added just prior
1199 1199
         // to attempting to route the request.
1200
-        if (isset($this->routes[$verb][$name]) && ! $overwrite) {
1200
+        if (isset($this->routes[$verb][$name]) && !$overwrite) {
1201 1201
             return;
1202 1202
         }
1203 1203
 
@@ -1222,7 +1222,7 @@  discard block
 block discarded – undo
1222 1222
     private function checkSubdomains($subdomains): bool
1223 1223
     {
1224 1224
         // CLI calls can't be on subdomain.
1225
-        if (! isset($_SERVER['HTTP_HOST'])) {
1225
+        if (!isset($_SERVER['HTTP_HOST'])) {
1226 1226
             return false;
1227 1227
         }
1228 1228
 
@@ -1230,13 +1230,13 @@  discard block
 block discarded – undo
1230 1230
             $this->currentSubdomain = $this->determineCurrentSubdomain();
1231 1231
         }
1232 1232
 
1233
-        if (! is_array($subdomains)) {
1233
+        if (!is_array($subdomains)) {
1234 1234
             $subdomains = [$subdomains];
1235 1235
         }
1236 1236
 
1237 1237
         // Routes can be limited to any sub-domain. In that case, though,
1238 1238
         // it does require a sub-domain to be present.
1239
-        if (! empty($this->currentSubdomain) && in_array('*', $subdomains, true)) {
1239
+        if (!empty($this->currentSubdomain) && in_array('*', $subdomains, true)) {
1240 1240
             return true;
1241 1241
         }
1242 1242
 
Please login to merge, or discard this patch.
brighty/system/Cache/Handlers/PredisHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             $this->redis->hmget($key, ['__ci_type', '__ci_value'])
77 77
         );
78 78
 
79
-        if (! isset($data['__ci_type'], $data['__ci_value']) || $data['__ci_value'] === false) {
79
+        if (!isset($data['__ci_type'], $data['__ci_value']) || $data['__ci_value'] === false) {
80 80
             return null;
81 81
         }
82 82
 
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                 return false;
124 124
         }
125 125
 
126
-        if (! $this->redis->hmset($key, ['__ci_type' => $dataType, '__ci_value' => $value])) {
126
+        if (!$this->redis->hmset($key, ['__ci_type' => $dataType, '__ci_value' => $value])) {
127 127
             return false;
128 128
         }
129 129
 
Please login to merge, or discard this patch.
brighty/system/Cache/Handlers/FileHandler.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -47,17 +47,17 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function __construct(Cache $config)
49 49
     {
50
-        if (! property_exists($config, 'file')) {
50
+        if (!property_exists($config, 'file')) {
51 51
             $config->file = [
52 52
                 'storePath' => $config->storePath ?? WRITEPATH . 'cache',
53 53
                 'mode'      => 0640,
54 54
             ];
55 55
         }
56 56
 
57
-        $this->path = ! empty($config->file['storePath']) ? $config->file['storePath'] : WRITEPATH . 'cache';
57
+        $this->path = !empty($config->file['storePath']) ? $config->file['storePath'] : WRITEPATH . 'cache';
58 58
         $this->path = rtrim($this->path, '/') . '/';
59 59
 
60
-        if (! is_really_writable($this->path)) {
60
+        if (!is_really_writable($this->path)) {
61 61
             throw CacheException::forUnableToWrite($this->path);
62 62
         }
63 63
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                 'data' => 0,
152 152
                 'ttl'  => 60,
153 153
             ];
154
-        } elseif (! is_int($data['data'])) {
154
+        } elseif (!is_int($data['data'])) {
155 155
             return false;
156 156
         }
157 157
 
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                 'data' => 0,
174 174
                 'ttl'  => 60,
175 175
             ];
176
-        } elseif (! is_int($data['data'])) {
176
+        } elseif (!is_int($data['data'])) {
177 177
             return false;
178 178
         }
179 179
 
@@ -232,12 +232,12 @@  discard block
 block discarded – undo
232 232
      */
233 233
     protected function getItem(string $filename)
234 234
     {
235
-        if (! is_file($this->path . $filename)) {
235
+        if (!is_file($this->path . $filename)) {
236 236
             return false;
237 237
         }
238 238
 
239 239
         $data = @unserialize(file_get_contents($this->path . $filename));
240
-        if (! is_array($data) || ! isset($data['ttl'])) {
240
+        if (!is_array($data) || !isset($data['ttl'])) {
241 241
             return false;
242 242
         }
243 243
 
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
         // Trim the trailing slash
299 299
         $path = rtrim($path, '/\\');
300 300
 
301
-        if (! $currentDir = @opendir($path)) {
301
+        if (!$currentDir = @opendir($path)) {
302 302
             return false;
303 303
         }
304 304
 
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
             if ($filename !== '.' && $filename !== '..') {
307 307
                 if (is_dir($path . DIRECTORY_SEPARATOR . $filename) && $filename[0] !== '.') {
308 308
                     $this->deleteFiles($path . DIRECTORY_SEPARATOR . $filename, $delDir, $htdocs, $_level + 1);
309
-                } elseif ($htdocs !== true || ! preg_match('/^(\.htaccess|index\.(html|htm|php)|web\.config)$/i', $filename)) {
309
+                } elseif ($htdocs !== true || !preg_match('/^(\.htaccess|index\.(html|htm|php)|web\.config)$/i', $filename)) {
310 310
                     @unlink($path . DIRECTORY_SEPARATOR . $filename);
311 311
                 }
312 312
             }
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
      */
373 373
     protected function getFileInfo(string $file, $returnedValues = ['name', 'server_path', 'size', 'date'])
374 374
     {
375
-        if (! is_file($file)) {
375
+        if (!is_file($file)) {
376 376
             return false;
377 377
         }
378 378
 
Please login to merge, or discard this patch.
brighty/system/Cache/Handlers/RedisHandler.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $this->prefix = $config->prefix;
47 47
 
48
-        if (! empty($config)) {
48
+        if (!empty($config)) {
49 49
             $this->config = array_merge($this->config, $config->redis);
50 50
         }
51 51
     }
@@ -73,20 +73,20 @@  discard block
 block discarded – undo
73 73
             // Note:: If Redis is your primary cache choice, and it is "offline", every page load will end up been delayed by the timeout duration.
74 74
             // I feel like some sort of temporary flag should be set, to indicate that we think Redis is "offline", allowing us to bypass the timeout for a set period of time.
75 75
 
76
-            if (! $this->redis->connect($config['host'], ($config['host'][0] === '/' ? 0 : $config['port']), $config['timeout'])) {
76
+            if (!$this->redis->connect($config['host'], ($config['host'][0] === '/' ? 0 : $config['port']), $config['timeout'])) {
77 77
                 // Note:: I'm unsure if log_message() is necessary, however I'm not 100% comfortable removing it.
78 78
                 log_message('error', 'Cache: Redis connection failed. Check your configuration.');
79 79
 
80 80
                 throw new CriticalError('Cache: Redis connection failed. Check your configuration.');
81 81
             }
82 82
 
83
-            if (isset($config['password']) && ! $this->redis->auth($config['password'])) {
83
+            if (isset($config['password']) && !$this->redis->auth($config['password'])) {
84 84
                 log_message('error', 'Cache: Redis authentication failed.');
85 85
 
86 86
                 throw new CriticalError('Cache: Redis authentication failed.');
87 87
             }
88 88
 
89
-            if (isset($config['database']) && ! $this->redis->select($config['database'])) {
89
+            if (isset($config['database']) && !$this->redis->select($config['database'])) {
90 90
                 log_message('error', 'Cache: Redis select database failed.');
91 91
 
92 92
                 throw new CriticalError('Cache: Redis select database failed.');
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         $key  = static::validateKey($key, $this->prefix);
105 105
         $data = $this->redis->hMGet($key, ['__ci_type', '__ci_value']);
106 106
 
107
-        if (! isset($data['__ci_type'], $data['__ci_value']) || $data['__ci_value'] === false) {
107
+        if (!isset($data['__ci_type'], $data['__ci_value']) || $data['__ci_value'] === false) {
108 108
             return null;
109 109
         }
110 110
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                 return false;
152 152
         }
153 153
 
154
-        if (! $this->redis->hMSet($key, ['__ci_type' => $dataType, '__ci_value' => $value])) {
154
+        if (!$this->redis->hMSet($key, ['__ci_type' => $dataType, '__ci_value' => $value])) {
155 155
             return false;
156 156
         }
157 157
 
Please login to merge, or discard this patch.
brighty/system/Cache/Handlers/MemcachedHandler.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $this->prefix = $config->prefix;
47 47
 
48
-        if (! empty($config)) {
48
+        if (!empty($config)) {
49 49
             $this->config = array_merge($this->config, $config->memcached);
50 50
         }
51 51
     }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
                 // $stats should be an associate array with a key in the format of host:port.
89 89
                 // If it doesn't have the key, we know the server is not working as expected.
90
-                if (! isset($stats[$this->config['host'] . ':' . $this->config['port']])) {
90
+                if (!isset($stats[$this->config['host'] . ':' . $this->config['port']])) {
91 91
                     throw new CriticalError('Cache: Memcached connection failed.');
92 92
                 }
93 93
             } elseif (class_exists(Memcache::class)) {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     {
157 157
         $key = static::validateKey($key, $this->prefix);
158 158
 
159
-        if (! $this->config['raw']) {
159
+        if (!$this->config['raw']) {
160 160
             $value = [
161 161
                 $value,
162 162
                 time(),
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
      */
199 199
     public function increment(string $key, int $offset = 1)
200 200
     {
201
-        if (! $this->config['raw']) {
201
+        if (!$this->config['raw']) {
202 202
             return false;
203 203
         }
204 204
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      */
213 213
     public function decrement(string $key, int $offset = 1)
214 214
     {
215
-        if (! $this->config['raw']) {
215
+        if (!$this->config['raw']) {
216 216
             return false;
217 217
         }
218 218
 
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         $stored = $this->memcached->get($key);
249 249
 
250 250
         // if not an array, don't try to count for PHP7.2
251
-        if (! is_array($stored) || count($stored) !== 3) {
251
+        if (!is_array($stored) || count($stored) !== 3) {
252 252
             return false; // @TODO This will return null in a future release
253 253
         }
254 254
 
Please login to merge, or discard this patch.
brighty/system/Cache/Handlers/BaseHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     public static function validateKey($key, $prefix = ''): string
56 56
     {
57
-        if (! is_string($key)) {
57
+        if (!is_string($key)) {
58 58
             throw new InvalidArgumentException('Cache key must be a string');
59 59
         }
60 60
         if ($key === '') {
Please login to merge, or discard this patch.
brighty/system/Cache/CacheFactory.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -42,27 +42,27 @@
 block discarded – undo
42 42
      */
43 43
     public static function getHandler(Cache $config, ?string $handler = null, ?string $backup = null)
44 44
     {
45
-        if (! isset($config->validHandlers) || ! is_array($config->validHandlers)) {
45
+        if (!isset($config->validHandlers) || !is_array($config->validHandlers)) {
46 46
             throw CacheException::forInvalidHandlers();
47 47
         }
48 48
 
49
-        if (! isset($config->handler) || ! isset($config->backupHandler)) {
49
+        if (!isset($config->handler) || !isset($config->backupHandler)) {
50 50
             throw CacheException::forNoBackup();
51 51
         }
52 52
 
53
-        $handler = ! empty($handler) ? $handler : $config->handler;
54
-        $backup  = ! empty($backup) ? $backup : $config->backupHandler;
53
+        $handler = !empty($handler) ? $handler : $config->handler;
54
+        $backup  = !empty($backup) ? $backup : $config->backupHandler;
55 55
 
56
-        if (! array_key_exists($handler, $config->validHandlers) || ! array_key_exists($backup, $config->validHandlers)) {
56
+        if (!array_key_exists($handler, $config->validHandlers) || !array_key_exists($backup, $config->validHandlers)) {
57 57
             throw CacheException::forHandlerNotFound();
58 58
         }
59 59
 
60 60
         $adapter = new $config->validHandlers[$handler]($config);
61 61
 
62
-        if (! $adapter->isSupported()) {
62
+        if (!$adapter->isSupported()) {
63 63
             $adapter = new $config->validHandlers[$backup]($config);
64 64
 
65
-            if (! $adapter->isSupported()) {
65
+            if (!$adapter->isSupported()) {
66 66
                 // Fall back to the dummy adapter.
67 67
                 $adapter = new $config->validHandlers['dummy']();
68 68
             }
Please login to merge, or discard this patch.
brighty/system/Modules/Modules.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      */
45 45
     public function shouldDiscover(string $alias): bool
46 46
     {
47
-        if (! $this->enabled) {
47
+        if (!$this->enabled) {
48 48
             return false;
49 49
         }
50 50
 
Please login to merge, or discard this patch.
brighty/system/Session/Session.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
 
231 231
         // Sanitize the cookie, because apparently PHP doesn't do that for userspace handlers
232 232
         if (isset($_COOKIE[$this->sessionCookieName])
233
-            && (! is_string($_COOKIE[$this->sessionCookieName]) || ! preg_match('#\A' . $this->sidRegexp . '\z#', $_COOKIE[$this->sessionCookieName]))
233
+            && (!is_string($_COOKIE[$this->sessionCookieName]) || !preg_match('#\A' . $this->sidRegexp . '\z#', $_COOKIE[$this->sessionCookieName]))
234 234
         ) {
235 235
             unset($_COOKIE[$this->sessionCookieName]);
236 236
         }
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
         if ((empty($_SERVER['HTTP_X_REQUESTED_WITH']) || strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) !== 'xmlhttprequest')
242 242
             && ($regenerateTime = $this->sessionTimeToUpdate) > 0
243 243
         ) {
244
-            if (! isset($_SESSION['__ci_last_regenerate'])) {
244
+            if (!isset($_SESSION['__ci_last_regenerate'])) {
245 245
                 $_SESSION['__ci_last_regenerate'] = time();
246 246
             } elseif ($_SESSION['__ci_last_regenerate'] < (time() - $regenerateTime)) {
247 247
                 $this->regenerate((bool) $this->sessionRegenerateDestroy);
@@ -304,13 +304,13 @@  discard block
 block discarded – undo
304 304
         ini_set('session.cookie_samesite', $sameSite);
305 305
         session_set_cookie_params($params);
306 306
 
307
-        if (! isset($this->sessionExpiration)) {
307
+        if (!isset($this->sessionExpiration)) {
308 308
             $this->sessionExpiration = (int) ini_get('session.gc_maxlifetime');
309 309
         } elseif ($this->sessionExpiration > 0) {
310 310
             ini_set('session.gc_maxlifetime', (string) $this->sessionExpiration);
311 311
         }
312 312
 
313
-        if (! empty($this->sessionSavePath)) {
313
+        if (!empty($this->sessionSavePath)) {
314 314
             ini_set('session.save_path', $this->sessionSavePath);
315 315
         }
316 316
 
@@ -467,7 +467,7 @@  discard block
 block discarded – undo
467 467
      */
468 468
     public function get(?string $key = null)
469 469
     {
470
-        if (! empty($key) && (null !== ($value = $_SESSION[$key] ?? null) || null !== ($value = dot_array_search($key, $_SESSION ?? [])))) {
470
+        if (!empty($key) && (null !== ($value = $_SESSION[$key] ?? null) || null !== ($value = dot_array_search($key, $_SESSION ?? [])))) {
471 471
             return $value;
472 472
         }
473 473
 
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
             return $key === null ? [] : null;
476 476
         }
477 477
 
478
-        if (! empty($key)) {
478
+        if (!empty($key)) {
479 479
             return null;
480 480
         }
481 481
 
@@ -485,7 +485,7 @@  discard block
 block discarded – undo
485 485
         $keys = array_keys($_SESSION);
486 486
 
487 487
         foreach ($keys as $key) {
488
-            if (! in_array($key, $_exclude, true)) {
488
+            if (!in_array($key, $_exclude, true)) {
489 489
                 $userdata[$key] = $_SESSION[$key];
490 490
             }
491 491
         }
@@ -616,14 +616,14 @@  discard block
 block discarded – undo
616 616
     {
617 617
         if (isset($key)) {
618 618
             return (isset($_SESSION['__ci_vars'], $_SESSION['__ci_vars'][$key], $_SESSION[$key])
619
-                && ! is_int($_SESSION['__ci_vars'][$key])) ? $_SESSION[$key] : null;
619
+                && !is_int($_SESSION['__ci_vars'][$key])) ? $_SESSION[$key] : null;
620 620
         }
621 621
 
622 622
         $flashdata = [];
623 623
 
624
-        if (! empty($_SESSION['__ci_vars'])) {
624
+        if (!empty($_SESSION['__ci_vars'])) {
625 625
             foreach ($_SESSION['__ci_vars'] as $key => &$value) {
626
-                if (! is_int($value)) {
626
+                if (!is_int($value)) {
627 627
                     $flashdata[$key] = $_SESSION[$key];
628 628
                 }
629 629
             }
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
     {
654 654
         if (is_array($key)) {
655 655
             foreach ($key as $sessionKey) {
656
-                if (! isset($_SESSION[$sessionKey])) {
656
+                if (!isset($_SESSION[$sessionKey])) {
657 657
                     return false;
658 658
                 }
659 659
             }
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
             return true;
666 666
         }
667 667
 
668
-        if (! isset($_SESSION[$key])) {
668
+        if (!isset($_SESSION[$key])) {
669 669
             return false;
670 670
         }
671 671
 
@@ -685,12 +685,12 @@  discard block
 block discarded – undo
685 685
             return;
686 686
         }
687 687
 
688
-        if (! is_array($key)) {
688
+        if (!is_array($key)) {
689 689
             $key = [$key];
690 690
         }
691 691
 
692 692
         foreach ($key as $k) {
693
-            if (isset($_SESSION['__ci_vars'][$k]) && ! is_int($_SESSION['__ci_vars'][$k])) {
693
+            if (isset($_SESSION['__ci_vars'][$k]) && !is_int($_SESSION['__ci_vars'][$k])) {
694 694
                 unset($_SESSION['__ci_vars'][$k]);
695 695
             }
696 696
         }
@@ -707,14 +707,14 @@  discard block
 block discarded – undo
707 707
      */
708 708
     public function getFlashKeys(): array
709 709
     {
710
-        if (! isset($_SESSION['__ci_vars'])) {
710
+        if (!isset($_SESSION['__ci_vars'])) {
711 711
             return [];
712 712
         }
713 713
 
714 714
         $keys = [];
715 715
 
716 716
         foreach (array_keys($_SESSION['__ci_vars']) as $key) {
717
-            if (! is_int($_SESSION['__ci_vars'][$key])) {
717
+            if (!is_int($_SESSION['__ci_vars'][$key])) {
718 718
                 $keys[] = $key;
719 719
             }
720 720
         }
@@ -753,7 +753,7 @@  discard block
 block discarded – undo
753 753
 
754 754
         $tempdata = [];
755 755
 
756
-        if (! empty($_SESSION['__ci_vars'])) {
756
+        if (!empty($_SESSION['__ci_vars'])) {
757 757
             foreach ($_SESSION['__ci_vars'] as $key => &$value) {
758 758
                 if (is_int($value)) {
759 759
                     $tempdata[$key] = $_SESSION[$key];
@@ -802,7 +802,7 @@  discard block
 block discarded – undo
802 802
                     $v += time();
803 803
                 }
804 804
 
805
-                if (! array_key_exists($k, $_SESSION)) {
805
+                if (!array_key_exists($k, $_SESSION)) {
806 806
                     return false;
807 807
                 }
808 808
 
@@ -814,7 +814,7 @@  discard block
 block discarded – undo
814 814
             return true;
815 815
         }
816 816
 
817
-        if (! isset($_SESSION[$key])) {
817
+        if (!isset($_SESSION[$key])) {
818 818
             return false;
819 819
         }
820 820
 
@@ -835,7 +835,7 @@  discard block
 block discarded – undo
835 835
             return;
836 836
         }
837 837
 
838
-        if (! is_array($key)) {
838
+        if (!is_array($key)) {
839 839
             $key = [$key];
840 840
         }
841 841
 
@@ -855,7 +855,7 @@  discard block
 block discarded – undo
855 855
      */
856 856
     public function getTempKeys(): array
857 857
     {
858
-        if (! isset($_SESSION['__ci_vars'])) {
858
+        if (!isset($_SESSION['__ci_vars'])) {
859 859
             return [];
860 860
         }
861 861
 
Please login to merge, or discard this patch.