Lines Matching refs:lines
175 [$fp, $lines] = $result;
179 if (empty($lines)) return false;
182 foreach ($lines as $line) {
215 $lines = [];
238 $lines = file($logfile);
239 if ($lines === false) {
281 $lines = [...$tmp, ...$lines];
295 $num = max(min(count($lines) - $first, $num), 0);
297 $lines = array_slice($lines, max(count($lines) - $first - $num, 0), $num);
299 $lines = array_slice($lines, 0, max(count($lines) - $first, 0));
301 $lines = array_slice($lines, max(count($lines) - $num, 0));
305 for ($i = count($lines) - 1; $i >= 0; $i--) {
306 $info = $this->parseAndCacheLogLine($lines[$i]);
345 [$fp, $lines, $head, $tail, $eof] = $result;
346 if (empty($lines)) return false;
356 $count = count($lines);
365 $info = $this->parseAndCacheLogLine($lines[$i]);
383 [$lines, $head, $tail] = $this->readAdjacentChunk($fp, $head, $tail, $direction);
385 if (empty($lines)) break;
423 [$revs2, $allRevs, $fp, $lines, $head, $tail] = $result2;
443 for ($i = count($lines) - 1; $i >= 0; $i--) {
444 $info = $this->parseAndCacheLogLine($lines[$i]);
455 [$lines, $head, $tail] = $this->readAdjacentChunk($fp, $head, $tail, -1);
516 [$fp, $lines, $startHead, $startTail, $eof] = $result;
517 if (empty($lines)) return false;
522 while (count($lines) > 0) {
523 foreach ($lines as $line) {
541 [$lines, $head, $tail] = $this->readAdjacentChunk($fp, $head, $tail, 1);
560 $lines = [];
565 [$lines, $head, $tail] = $this->readAdjacentChunk($fp, $head, $tail, -1);
567 for ($i = count($lines) - 1; $i >= 0; $i--) {
568 $info = $this->parseAndCacheLogLine($lines[$i]);
580 $lines = array_slice($lines, 0, $i);
587 return [$requestedRevs, $revs, $fp, $lines, $head, $lastTail];