FileReader: Method `count()` require no param

This commit is contained in:
Sukhwinder Dhillon 2023-08-16 09:37:52 +02:00 committed by raviks789
parent bdd50bd97d
commit a7a94d5307
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ class FileReader implements Selectable, Countable
}
$lines = array();
if ($query->sortDesc()) {
$count = $this->count($query);
$count = $this->count();
if ($count <= $skip) {
return $lines;
} elseif ($count < ($skip + $read)) {