@@ -23,8 +23,7 @@ |
||
23 | 23 | |
24 | 24 | # Replicate value logic from php-src/ext/zlib/zlib.c |
25 | 25 | $sv = ini_get("zlib.output_compression"); |
26 | - $sv = strcasecmp($sv, "on") == 0 ? 1 : |
|
27 | - (strcasecmp($sv, "off") == 0 ? 0 : intval($sv)); |
|
26 | + $sv = strcasecmp($sv, "on") == 0 ? 1 : (strcasecmp($sv, "off") == 0 ? 0 : intval($sv)); |
|
28 | 27 | if ($sv != 0) { |
29 | 28 | $this->error_config("zlib.output_compression", "off", "With this option enabled, it could occur that XMLHTTP requests will fail"); |
30 | 29 | } |
@@ -360,7 +360,7 @@ |
||
360 | 360 | ]; |
361 | 361 | $fileDependencies[$filename] = [ |
362 | 362 | 'depends' => [], |
363 | - 'core' => $core, // Based on tag or on class or on file path? |
|
363 | + 'core' => $core, // Based on tag or on class or on file path? |
|
364 | 364 | ]; |
365 | 365 | |
366 | 366 | for ($j = 0, $lenJ = count($class[1]); $j < $lenJ; ++$j) { |
@@ -195,8 +195,7 @@ |
||
195 | 195 | // TODO: move logon from MAPISession to here |
196 | 196 | |
197 | 197 | WebAppAuthentication::$_errorCode = isset($_SESSION['_keycloak_auth']) ? |
198 | - WebAppAuthentication::$_mapiSession->logon_token($username, $pass) : |
|
199 | - WebAppAuthentication::$_mapiSession->logon($username, $pass, DEFAULT_SERVER); |
|
198 | + WebAppAuthentication::$_mapiSession->logon_token($username, $pass) : WebAppAuthentication::$_mapiSession->logon($username, $pass, DEFAULT_SERVER); |
|
200 | 199 | |
201 | 200 | // Include external login plugins to be loaded |
202 | 201 | if (file_exists(BASE_PATH . 'extlogin.php')) { |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | if ($data === CHANGE_PASSPHRASE_SUCCESS) { |
57 | 57 | // Reset cached passphrase. |
58 | 58 | $encryptionStore = EncryptionStore::getInstance(); |
59 | - withPHPSession(function () use ($encryptionStore) { |
|
59 | + withPHPSession(function() use ($encryptionStore) { |
|
60 | 60 | $encryptionStore->add('smime', ''); |
61 | 61 | }); |
62 | 62 | } |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | $encryptionStore->add('smime', $data['passphrase'], time() + (5 * 60)); |
168 | 168 | } |
169 | 169 | else { |
170 | - withPHPSession(function () use ($encryptionStore, $data) { |
|
170 | + withPHPSession(function() use ($encryptionStore, $data) { |
|
171 | 171 | $encryptionStore->add('smime', $data['passphrase']); |
172 | 172 | }); |
173 | 173 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | */ |
73 | 73 | public function getStats(): DriverStatistic |
74 | 74 | { |
75 | - $stats = (array)$this->instance->getstats(); |
|
75 | + $stats = (array) $this->instance->getstats(); |
|
76 | 76 | $stats['uptime'] = (isset($stats['uptime']) ? $stats['uptime'] : 0); |
77 | 77 | $stats['version'] = (isset($stats['version']) ? $stats['version'] : 'UnknownVersion'); |
78 | 78 | $stats['bytes'] = (isset($stats['bytes']) ? $stats['version'] : 0); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | ->setData(implode(', ', array_keys($this->itemInstances))) |
84 | 84 | ->setInfo(sprintf("The memcache daemon v%s is up since %s.\n For more information see RawData.", $stats['version'], $date->format(DATE_RFC2822))) |
85 | 85 | ->setRawData($stats) |
86 | - ->setSize((int)$stats['bytes']); |
|
86 | + ->setSize((int) $stats['bytes']); |
|
87 | 87 | } |
88 | 88 | |
89 | 89 | /** |
@@ -95,7 +95,7 @@ |
||
95 | 95 | /** |
96 | 96 | * CouchbaseBucket::get() returns a GetResult interface |
97 | 97 | */ |
98 | - return $this->decodeDocument((array)$this->getCollection()->get($item->getEncodedKey())->content()); |
|
98 | + return $this->decodeDocument((array) $this->getCollection()->get($item->getEncodedKey())->content()); |
|
99 | 99 | } catch (DocumentNotFoundException) { |
100 | 100 | return null; |
101 | 101 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function getStats(): DriverStatistic |
58 | 58 | { |
59 | - $stats = (array)zend_shm_cache_info(); |
|
59 | + $stats = (array) zend_shm_cache_info(); |
|
60 | 60 | return (new DriverStatistic()) |
61 | 61 | ->setData(implode(', ', array_keys($this->itemInstances))) |
62 | 62 | ->setInfo(sprintf("The Zend memory have %d item(s) in cache.\n For more information see RawData.", $stats['items_total'])) |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | protected function driverDelete(string $key, string $encodedKey): bool |
109 | 109 | { |
110 | - return (bool)zend_shm_cache_delete($key); |
|
110 | + return (bool) zend_shm_cache_delete($key); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | protected function driverClear(): bool |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | return (new DriverStatistic()) |
76 | 76 | ->setData(implode(', ', array_keys($this->itemInstances))) |
77 | 77 | ->setRawData($info) |
78 | - ->setSize((int)$size) |
|
78 | + ->setSize((int) $size) |
|
79 | 79 | ->setInfo( |
80 | 80 | sprintf( |
81 | 81 | "The Redis daemon v%s (with Predis v%s) is up since %s.\n For more information see RawData. \n Driver size includes the memory allocation size.", |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | * @see https://redis.io/commands/expire |
201 | 201 | */ |
202 | 202 | if ($ttl <= 0) { |
203 | - return (bool)$this->instance->expire($item->getKey(), 0); |
|
203 | + return (bool) $this->instance->expire($item->getKey(), 0); |
|
204 | 204 | } |
205 | 205 | |
206 | 206 | return $this->instance->setex($item->getKey(), $ttl, $this->encode($this->driverPreWrap($item)))->getPayload() === 'OK'; |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | */ |
214 | 214 | protected function driverDelete(string $key, string $encodedKey): bool |
215 | 215 | { |
216 | - return (bool)$this->instance->del([$key]); |
|
216 | + return (bool) $this->instance->del([$key]); |
|
217 | 217 | } |
218 | 218 | |
219 | 219 | /** |
@@ -78,7 +78,7 @@ |
||
78 | 78 | ->setData(implode(', ', array_keys($this->itemInstances))) |
79 | 79 | ->setInfo(sprintf("The memcache daemon v%s is up since %s.\n For more information see RawData.", $stats['version'], $date->format(DATE_RFC2822))) |
80 | 80 | ->setRawData($stats) |
81 | - ->setSize((int)$stats['bytes']); |
|
81 | + ->setSize((int) $stats['bytes']); |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |