Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Fix coding style for negation
Browse files Browse the repository at this point in the history
  • Loading branch information
robations committed Mar 1, 2016
1 parent 9003bde commit 4ff746d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fusonic/Linq/Linq.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 4ff746d

Please sign in to comment.