Lines Matching refs:lines
168 [$fp, $lines] = $result;
172 if (empty($lines)) return false;
175 foreach ($lines as $line) {
208 $lines = [];
231 $lines = file($logfile);
232 if ($lines === false) {
274 $lines = [...$tmp, ...$lines];
288 $num = max(min(count($lines) - $first, $num), 0);
290 $lines = array_slice($lines, max(count($lines) - $first - $num, 0), $num);
292 $lines = array_slice($lines, 0, max(count($lines) - $first, 0));
294 $lines = array_slice($lines, max(count($lines) - $num, 0));
298 for ($i = count($lines) - 1; $i >= 0; $i--) {
299 $info = $this->parseAndCacheLogLine($lines[$i]);
338 [$fp, $lines, $head, $tail, $eof] = $result;
339 if (empty($lines)) return false;
349 $count = count($lines);
358 $info = $this->parseAndCacheLogLine($lines[$i]);
376 [$lines, $head, $tail] = $this->readAdjacentChunk($fp, $head, $tail, $direction);
378 if (empty($lines)) break;
416 [$revs2, $allRevs, $fp, $lines, $head, $tail] = $result2;
436 for ($i = count($lines) - 1; $i >= 0; $i--) {
437 $info = $this->parseAndCacheLogLine($lines[$i]);
448 [$lines, $head, $tail] = $this->readAdjacentChunk($fp, $head, $tail, -1);
509 [$fp, $lines, $startHead, $startTail, $eof] = $result;
510 if (empty($lines)) return false;
515 while (count($lines) > 0) {
516 foreach ($lines as $line) {
534 [$lines, $head, $tail] = $this->readAdjacentChunk($fp, $head, $tail, 1);
553 $lines = [];
558 [$lines, $head, $tail] = $this->readAdjacentChunk($fp, $head, $tail, -1);
560 for ($i = count($lines) - 1; $i >= 0; $i--) {
561 $info = $this->parseAndCacheLogLine($lines[$i]);
573 $lines = array_slice($lines, 0, $i);
580 return [$requestedRevs, $revs, $fp, $lines, $head, $lastTail];