From a7a3db1597059cb91e155bb32b31a738593ccce8 Mon Sep 17 00:00:00 2001 From: Rob Frawley 2nd Date: Tue, 30 Jan 2018 07:02:54 -0500 Subject: [PATCH] ready codebase for stricter php-cs-fixer ruleset where changes would break expected behavior --- Async/ResolveCache.php | 4 ++-- Imagine/Cache/CacheManager.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Async/ResolveCache.php b/Async/ResolveCache.php index 0116940c6..52a2b56f4 100644 --- a/Async/ResolveCache.php +++ b/Async/ResolveCache.php @@ -84,11 +84,11 @@ public static function jsonDeserialize(string $json): self { $data = array_replace(['path' => null, 'filters' => null, 'force' => false], JSON::decode($json)); - if (false == $data['path']) { + if (!$data['path']) { throw new LogicException('The message does not contain "path" but it is required.'); } - if (false == (is_null($data['filters']) || is_array($data['filters']))) { + if (!(is_null($data['filters']) || is_array($data['filters']))) { throw new LogicException('The message filters could be either null or array.'); } diff --git a/Imagine/Cache/CacheManager.php b/Imagine/Cache/CacheManager.php index 9c0907556..09f7c56c8 100644 --- a/Imagine/Cache/CacheManager.php +++ b/Imagine/Cache/CacheManager.php @@ -106,7 +106,7 @@ public function addResolver($filter, ResolverInterface $resolver) protected function getResolver($filter, $resolver) { // BC - if (false == $resolver) { + if (!$resolver) { $config = $this->filterConfig->get($filter); $resolverName = empty($config['cache']) ? $this->defaultResolver : $config['cache'];