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