| @@ 125-135 (lines=11) @@ | ||
| 122 | * |
|
| 123 | * @return array The original sequence of strings. |
|
| 124 | */ |
|
| 125 | function getOriginal() |
|
| 126 | { |
|
| 127 | $lines = array(); |
|
| 128 | foreach ($this->_edits as $edit) { |
|
| 129 | if ($edit->orig) { |
|
| 130 | array_splice($lines, count($lines), 0, $edit->orig); |
|
| 131 | } |
|
| 132 | } |
|
| 133 | ||
| 134 | return $lines; |
|
| 135 | } |
|
| 136 | ||
| 137 | /** |
|
| 138 | * Gets the final set of lines. |
|
| @@ 144-154 (lines=11) @@ | ||
| 141 | * |
|
| 142 | * @return array The sequence of strings. |
|
| 143 | */ |
|
| 144 | function getFinal() |
|
| 145 | { |
|
| 146 | $lines = array(); |
|
| 147 | foreach ($this->_edits as $edit) { |
|
| 148 | if ($edit->final) { |
|
| 149 | array_splice($lines, count($lines), 0, $edit->final); |
|
| 150 | } |
|
| 151 | } |
|
| 152 | ||
| 153 | return $lines; |
|
| 154 | } |
|
| 155 | ||
| 156 | /** |
|
| 157 | * Removes trailing newlines from a line of text. This is meant to be used |
|