Code Duplication    Length = 8-9 lines in 2 locations

application/libraries/MY_Pagination.php 2 locations

@@ 169-177 (lines=9) @@
166
        }
167
168
        // Render the "next" link
169
        if ($this->next_link !== FALSE AND $this->cur_page < $num_pages) {
170
            if ($this->use_page_numbers) {
171
                $i = $this->cur_page + 1;
172
            } else {
173
                $i = ($this->cur_page * $this->per_page);
174
            }
175
176
            $output .= $this->next_tag_open . '<a ' . $this->anchor_class . 'href="' . $this->base_url . $this->prefix . $i . $this->suffix . '">' . $this->next_link . '</a>' . $this->next_tag_close;
177
        }
178
179
        // Render the "Last" link
180
        if ($this->last_link !== FALSE AND ($this->cur_page + $this->num_links) < $num_pages) {
@@ 180-187 (lines=8) @@
177
        }
178
179
        // Render the "Last" link
180
        if ($this->last_link !== FALSE AND ($this->cur_page + $this->num_links) < $num_pages) {
181
            if ($this->use_page_numbers) {
182
                $i = $num_pages;
183
            } else {
184
                $i = (($num_pages * $this->per_page) - $this->per_page);
185
            }
186
            $output .= $this->last_tag_open . '<a ' . $this->anchor_class . 'href="' . $this->base_url . $this->prefix . $i . $this->suffix . '">' . $this->last_link . '</a>' . $this->last_tag_close;
187
        }
188
189
        // Kill double slashes.  Note: Sometimes we can end up with a double slash
190
        // in the penultimate link so we'll kill all double slashes.