count parameter is not needed anymore in BaseLoop::exec
This commit is contained in:
@@ -361,7 +361,7 @@ abstract class BaseLoop
|
||||
* @param $pagination
|
||||
* @return LoopResult
|
||||
*/
|
||||
public function exec(&$pagination, $count = false)
|
||||
public function exec(&$pagination)
|
||||
{
|
||||
$hash = $this->args->getHash();
|
||||
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);
|
||||
|
||||
if (true === $this->countable) {
|
||||
|
||||
Reference in New Issue
Block a user