_leading_context_lines = $context_lines; $this->_trailing_context_lines = $context_lines; $this->_words = $words; } protected function _startDiff() { ob_start(); //echo '
| '; if ($h[1] == 1) { echo tra('Line:') . " " . $h[0]; } else { $h[1] = $h[0] + $h[1] - 1; echo tra('Lines:') . " " . $h[0] . '-' . $h[1]; } echo ' | '; if ($h[3] == 1) { echo tra('Line:') . " " . $h[2]; } else { $h[3] = $h[2] + $h[3] - 1; echo tra('Lines:') . " " . $h[2] . '-' . $h[3]; } echo ' | ||
| " . htmlspecialchars($line) . " | " . htmlspecialchars($line) . " | ||
| $prefix | " . htmlspecialchars($line) . " | ||
| $prefix | " . htmlspecialchars($line) . " | ||
| ' . $prefix . ' | ' . implode(" ", $lines) . " | \n";
} elseif ($type == 'change-added') {
echo '' . $prefix . ' | ' . implode(" ", $lines) . " |