From 4ff746de4d849dc4b83f8e04f3aeea9f8eddd43a Mon Sep 17 00:00:00 2001 From: Robert Churchill Date: Tue, 1 Mar 2016 16:33:35 +0000 Subject: [PATCH] Fix coding style for negation --- src/Fusonic/Linq/Linq.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Fusonic/Linq/Linq.php b/src/Fusonic/Linq/Linq.php index 7c1a4ce..9c0e359 100644 --- a/src/Fusonic/Linq/Linq.php +++ b/src/Fusonic/Linq/Linq.php @@ -119,7 +119,7 @@ public function skip($count) return new Linq([]); } } - if ($innerIterator instanceof \Iterator === false) { + if (!($innerIterator instanceof \Iterator)) { // IteratorIterator wraps $innerIterator because it is Traversable but not an Iterator. // (see https://bugs.php.net/bug.php?id=52280) $innerIterator = new \IteratorIterator($innerIterator); @@ -140,7 +140,7 @@ public function take($count) return new Linq([]); } $innerIterator = $this->iterator; - if ($innerIterator instanceof \Iterator === false) { + if (!($innerIterator instanceof \Iterator)) { // IteratorIterator wraps $this->iterator because it is Traversable but not an Iterator. // (see https://bugs.php.net/bug.php?id=52280) $innerIterator = new \IteratorIterator($innerIterator);