Code Duplication    Length = 5-5 lines in 3 locations

src/View/Helper/Paginator.php 3 locations

@@ 163-167 (lines=5) @@
160
        $html .= '</li>';
161
162
        $html .= ($this->currentPage === 1) ? '<li class="page-item disabled">' :'<li class="page-item">';
163
        if ($this->currentPage === 1) {
164
            $html .= '<a class="page-link"  href ="#">' . Icon::custom(Icon::BACKWARD, 'disabled') . '</a>';
165
        } else {
166
            $html .= '<a class="page-link"  href ="' . $this->url($this->currentPage - 1) . '">' . Icon::BACKWARD . '</a>';
167
        }
168
        $html .= '</li>';
169
170
        for ($x = $start; $x <= ($start + ($pages - 1)); $x++) {
@@ 185-189 (lines=5) @@
182
        }
183
184
        $html .= ($this->currentPage >= $this->pageCount) ? '<li class="page-item disabled">' :'<li class="page-item">';
185
        if ($this->currentPage >= $this->pageCount) {
186
            $html .= '<a class="page-link" href="#">' . Icon::custom(Icon::FORWARD, 'disabled') . '</a>';
187
        } else {
188
            $html .= '<a class="page-link"  href ="' . $this->url($this->currentPage + 1) . '">' . Icon::FORWARD . '</i></a>';
189
        }
190
        $html .= '</li>';
191
192
        $html .= ($this->currentPage >= $this->pageCount) ? '<li class="page-item disabled">' : '<li class="page-item">';
@@ 193-197 (lines=5) @@
190
        $html .= '</li>';
191
192
        $html .= ($this->currentPage >= $this->pageCount) ? '<li class="page-item disabled">' : '<li class="page-item">';
193
        if ($this->currentPage >= $this->pageCount) {
194
            $html .= '<a class="page-link" href="#">' . Icon::custom(Icon::FAST_FORWARD, 'disabled') . '</a>';
195
        } else {
196
            $html .= '<a class="page-link"  href ="' . $this->url($this->pageCount) . '">' . Icon::FAST_FORWARD . '</i></a>';
197
        }
198
        $html .= '</li>';
199
        $html .= '</ul></nav>';
200