diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-03-28 16:13:19 +0100 |
---|---|---|
committer | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-04-04 11:45:22 +0200 |
commit | 0b332ceac24ee93e82e25ee95841ae6fae3b889b (patch) | |
tree | 5c33219f115c05a17cec25e2122ff1cae352e86f /lib/private/Memcache | |
parent | 292b903bc283c5a7929e092d8262331606461ef7 (diff) | |
download | nextcloud-server-0b332ceac24ee93e82e25ee95841ae6fae3b889b.tar.gz nextcloud-server-0b332ceac24ee93e82e25ee95841ae6fae3b889b.zip |
fix: Apply new coding standard to all files
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Memcache')
-rw-r--r-- | lib/private/Memcache/ProfilerWrapperCache.php | 2 | ||||
-rw-r--r-- | lib/private/Memcache/Redis.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Memcache/ProfilerWrapperCache.php b/lib/private/Memcache/ProfilerWrapperCache.php index 0d991a87ab8..68fa4e7f22c 100644 --- a/lib/private/Memcache/ProfilerWrapperCache.php +++ b/lib/private/Memcache/ProfilerWrapperCache.php @@ -216,7 +216,7 @@ class ProfilerWrapperCache extends AbstractDataCollector implements IMemcacheTTL $this->remove($offset); } - public function collect(Request $request, Response $response, \Throwable $exception = null): void { + public function collect(Request $request, Response $response, ?\Throwable $exception = null): void { // Nothing to do here $data is already ready } diff --git a/lib/private/Memcache/Redis.php b/lib/private/Memcache/Redis.php index 97b6d41ea5e..4f86ff68052 100644 --- a/lib/private/Memcache/Redis.php +++ b/lib/private/Memcache/Redis.php @@ -218,7 +218,7 @@ class Redis extends Cache implements IMemcacheTTL { $script = self::LUA_SCRIPTS[$scriptName]; $result = $this->getCache()->evalSha($script[1], $args, count($keys)); - if (false === $result) { + if ($result === false) { $result = $this->getCache()->eval($script[0], $args, count($keys)); } |