From fada5658c3258ad09ebd8696079655e598099a44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Kaleta?= Date: Thu, 15 Jul 2021 14:54:40 +0200 Subject: [PATCH] #34 Clean --- src/Image.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Image.php b/src/Image.php index fa111bd..447649c 100644 --- a/src/Image.php +++ b/src/Image.php @@ -184,8 +184,8 @@ public function cache($adapter, $originalImage, $default = false) $has = $this->manager->has($cacheAdapter); if ($has == false or ($has == true and $this->manager->getTimestamp($cacheAdapter) < strtotime( - "-" . $this->cache['life'] . " seconds" - ))) { + "-" . $this->cache['life'] . " seconds" + ))) { /** @todo: Rewrite to update */ if ($has == true) { $this->manager->delete($cacheAdapter);