@@ 643-652 (lines=10) @@ | ||
640 | * |
|
641 | * @return array The original sequence of strings. |
|
642 | */ |
|
643 | function orig() { |
|
644 | $lines = array(); |
|
645 | ||
646 | foreach ($this->edits as $edit) { |
|
647 | if ($edit->orig) { |
|
648 | array_splice($lines, sizeof($lines), 0, $edit->orig); |
|
649 | } |
|
650 | } |
|
651 | return $lines; |
|
652 | } |
|
653 | ||
654 | /** |
|
655 | * Get the closing set of lines. |
|
@@ 662-671 (lines=10) @@ | ||
659 | * |
|
660 | * @return array The sequence of strings. |
|
661 | */ |
|
662 | function closing() { |
|
663 | $lines = array(); |
|
664 | ||
665 | foreach ($this->edits as $edit) { |
|
666 | if ($edit->closing) { |
|
667 | array_splice($lines, sizeof($lines), 0, $edit->closing); |
|
668 | } |
|
669 | } |
|
670 | return $lines; |
|
671 | } |
|
672 | ||
673 | /** |
|
674 | * Check a Diff for validity. |