#1188 - removing unused variable assignments
This commit is contained in:
parent
ea3856673d
commit
2dbe28a150
@ -118,12 +118,8 @@ class Paginator implements \Countable, \IteratorAggregate
|
|||||||
public function count()
|
public function count()
|
||||||
{
|
{
|
||||||
if ($this->count === null) {
|
if ($this->count === null) {
|
||||||
$countQuery = $this->getCountQuery();
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$data = $countQuery->getScalarResult();
|
$this->count = array_sum(array_map('current', $this->getCountQuery()->getScalarResult()));
|
||||||
$data = array_map('current', $data);
|
|
||||||
$this->count = array_sum($data);
|
|
||||||
} catch(NoResultException $e) {
|
} catch(NoResultException $e) {
|
||||||
$this->count = 0;
|
$this->count = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user