Code Duplication    Length = 10-10 lines in 2 locations

xoops_trust_path/libs/altsys/include/Text_Diff.php 2 locations

@@ 125-134 (lines=10) @@
122
     *
123
     * @return array  The original sequence of strings.
124
     */
125
    public 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
        return $lines;
134
    }
135
136
    /**
137
     * Gets the final set of lines.
@@ 143-152 (lines=10) @@
140
     *
141
     * @return array  The sequence of strings.
142
     */
143
    public function getFinal()
144
    {
145
        $lines = array();
146
        foreach ($this->_edits as $edit) {
147
            if ($edit->final) {
148
                array_splice($lines, count($lines), 0, $edit->final);
149
            }
150
        }
151
        return $lines;
152
    }
153
154
    /**
155
     * Removes trailing newlines from a line of text. This is meant to be used