You are here

function DiffFormatter::_lines in Diff 6.2

Same name and namespace in other branches
  1. 5.2 DiffEngine.php \DiffFormatter::_lines()
  2. 5 DiffEngine.php \DiffFormatter::_lines()
  3. 6 DiffEngine.php \DiffFormatter::_lines()
  4. 7.3 DiffEngine.php \DiffFormatter::_lines()
  5. 7.2 DiffEngine.php \DiffFormatter::_lines()
3 calls to DiffFormatter::_lines()
DiffFormatter::_added in ./DiffEngine.php
DiffFormatter::_context in ./DiffEngine.php
DiffFormatter::_deleted in ./DiffEngine.php
1 method overrides DiffFormatter::_lines()
DrupalDiffFormatter::_lines in ./DiffEngine.php

File

./DiffEngine.php, line 908
A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)

Class

DiffFormatter
A class to format Diffs

Code

function _lines($lines, $prefix = ' ') {
  foreach ($lines as $line) {
    echo "{$prefix} {$line}\n";
  }
}