count parameter is not needed anymore in BaseLoop::exec
This commit is contained in:
@@ -361,7 +361,7 @@ abstract class BaseLoop
|
|||||||
* @param $pagination
|
* @param $pagination
|
||||||
* @return LoopResult
|
* @return LoopResult
|
||||||
*/
|
*/
|
||||||
public function exec(&$pagination, $count = false)
|
public function exec(&$pagination)
|
||||||
{
|
{
|
||||||
$hash = $this->args->getHash();
|
$hash = $this->args->getHash();
|
||||||
if(false === array_key_exists($hash, self::$cache))
|
if(false === array_key_exists($hash, self::$cache))
|
||||||
@@ -388,10 +388,6 @@ abstract class BaseLoop
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($count) {
|
|
||||||
return $results ? count($results) : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
$loopResult = new LoopResult($results);
|
$loopResult = new LoopResult($results);
|
||||||
|
|
||||||
if (true === $this->countable) {
|
if (true === $this->countable) {
|
||||||
|
|||||||
Reference in New Issue
Block a user