Code Duplication    Length = 8-8 lines in 2 locations

lib/Page.php 2 locations

@@ 151-158 (lines=8) @@
148
                $this->totalNumber > getCurrentOption ("max_item_per_page"));
149
    }
150
151
    public function getNextLink ()
152
    {
153
        $currentUrl = preg_replace ("/\&n=.*?$/", "", "?" . getQueryString ());
154
        if (($this->n) * getCurrentOption ("max_item_per_page") < $this->totalNumber) {
155
            return new LinkNavigation ($currentUrl . "&n=" . ($this->n + 1), "next", localize ("paging.next.alternate"));
156
        }
157
        return NULL;
158
    }
159
160
    public function getPrevLink ()
161
    {
@@ 160-167 (lines=8) @@
157
        return NULL;
158
    }
159
160
    public function getPrevLink ()
161
    {
162
        $currentUrl = preg_replace ("/\&n=.*?$/", "", "?" . getQueryString ());
163
        if ($this->n > 1) {
164
            return new LinkNavigation ($currentUrl . "&n=" . ($this->n - 1), "previous", localize ("paging.previous.alternate"));
165
        }
166
        return NULL;
167
    }
168
169
    public function getMaxPage ()
170
    {