Code Duplication    Length = 11-11 lines in 2 locations

class/Text_Diff.php 2 locations

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