1
0
mirror of synced 2025-02-02 13:31:45 +03:00

Merge pull request #1449 from dunglas/patch-1

minor: code quality in Paginator
This commit is contained in:
Guilherme Blanco 2015-07-07 11:03:03 -04:00
commit 33c2ae465d

View File

@ -67,7 +67,7 @@ class Paginator implements \Countable, \IteratorAggregate
}
$this->query = $query;
$this->fetchJoinCollection = (Boolean) $fetchJoinCollection;
$this->fetchJoinCollection = (bool) $fetchJoinCollection;
}
/**
@ -152,7 +152,7 @@ class Paginator implements \Countable, \IteratorAggregate
$whereInQuery = $this->cloneQuery($this->query);
// don't do this for an empty id array
if (count($ids) == 0) {
if (count($ids) === 0) {
return new \ArrayIterator(array());
}