Lines Matching defs:lines
99 $lines = $this->getLogLines($logfile);
100 $this->printLogLines($lines);
133 * Read the lines of the logfile and return them as array
158 $lines = explode("\n", $logData);
162 array_shift($lines); // Discard the first line
163 while ($lines !== [] && str_starts_with($lines[0], ' ')) {
164 array_shift($lines); // Discard indented lines
167 // A message to inform users that previous lines are skipped
168 array_unshift($lines, "******\t" . "\t" . '[' . $lang['log_file_too_large'] . ']');
174 return $lines;
178 * Get an array of log lines and print them using appropriate styles
180 * @param array $lines
182 protected function printLogLines($lines)
184 $numberOfLines = count($lines);
188 $line = $lines[$i];
190 // lines indented by two spaces are details, aggregate them
195 $line = $lines[$i] ?? '';
200 // other lines are actual log lines in three parts