From 48fd7a6462b38227d63748394e05aa68d1b22446 Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Thu, 26 Jan 2017 01:54:04 +0100 Subject: [PATCH] Fix linting errors --- src/Cache/ClientCache.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Cache/ClientCache.php b/src/Cache/ClientCache.php index 74adf4c..bc91b97 100644 --- a/src/Cache/ClientCache.php +++ b/src/Cache/ClientCache.php @@ -27,7 +27,9 @@ class ClientCache implements Cache */ public function get(string $key): Promise { - return $this->client->xcache->get($key)->then('unserialize')->otherwise(function () {}); + return $this->client->xcache->get($key)->then('unserialize')->otherwise(function () { + // Ignore + }); } /** @@ -39,6 +41,8 @@ class ClientCache implements Cache */ public function set(string $key, $value): Promise { - return $this->client->xcache->set($key, serialize($value))->otherwise(function () {}); + return $this->client->xcache->set($key, serialize($value))->otherwise(function () { + // Ignore + }); } }