minor: Code quality in Paginator
This commit is contained in:
parent
96b065b282
commit
abf6b8bee5
@ -67,7 +67,7 @@ class Paginator implements \Countable, \IteratorAggregate
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->query = $query;
|
$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);
|
$whereInQuery = $this->cloneQuery($this->query);
|
||||||
// don't do this for an empty id array
|
// don't do this for an empty id array
|
||||||
if (count($ids) == 0) {
|
if (count($ids) === 0) {
|
||||||
return new \ArrayIterator(array());
|
return new \ArrayIterator(array());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user