@@ -254,11 +254,11 @@ |
||
| 254 | 254 | } |
| 255 | 255 | |
| 256 | 256 | return '<ul class="pagination">' . |
| 257 | - $this->_renderListItem($this->_currentPage - 1, $this->_getFirstPageUrl(), $this->_firstPageSymbol) . |
|
| 258 | - $this->_renderListItem($this->_currentPage - 1, $this->_getPreviousPageUrl(), $this->_previousPageSymbol) . |
|
| 259 | - $this->_renderPageList() . |
|
| 260 | - $this->_renderListItem($this->_currentPage + 1, $this->_getNextPageUrl(), $this->_nextPageSymbol) . |
|
| 261 | - $this->_renderListItem($this->_currentPage + 1, $this->_getLastPageUrl(), $this->_lastPageSymbol) . |
|
| 262 | - '</ul>'; |
|
| 257 | + $this->_renderListItem($this->_currentPage - 1, $this->_getFirstPageUrl(), $this->_firstPageSymbol) . |
|
| 258 | + $this->_renderListItem($this->_currentPage - 1, $this->_getPreviousPageUrl(), $this->_previousPageSymbol) . |
|
| 259 | + $this->_renderPageList() . |
|
| 260 | + $this->_renderListItem($this->_currentPage + 1, $this->_getNextPageUrl(), $this->_nextPageSymbol) . |
|
| 261 | + $this->_renderListItem($this->_currentPage + 1, $this->_getLastPageUrl(), $this->_lastPageSymbol) . |
|
| 262 | + '</ul>'; |
|
| 263 | 263 | } |
| 264 | 264 | } |
| 265 | 265 | \ No newline at end of file |
@@ -189,7 +189,7 @@ discard block |
||
| 189 | 189 | * |
| 190 | 190 | * @return string |
| 191 | 191 | */ |
| 192 | - private function _renderListItem(string $pagenumber, ? string $url, ? string $symbol = null): string |
|
| 192 | + private function _renderListItem(string $pagenumber, ? string $url, ? string $symbol = null) : string |
|
| 193 | 193 | { |
| 194 | 194 | if ($url === null) |
| 195 | 195 | { |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | } |
| 203 | 203 | |
| 204 | 204 | $class = ''; |
| 205 | - if (+ $pagenumber === $this->_currentPage) |
|
| 205 | + if (+$pagenumber === $this->_currentPage) |
|
| 206 | 206 | { |
| 207 | 207 | $class = ' class="active"'; |
| 208 | 208 | } |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | } |
| 233 | 233 | |
| 234 | 234 | $pageList = ''; |
| 235 | - for ($i = $start; $i <= $end; $i ++) |
|
| 235 | + for ($i = $start; $i <= $end; $i++) |
|
| 236 | 236 | { |
| 237 | 237 | $pageList .= $this->_renderListItem($i, $this->_buildPageUrl($i)); |
| 238 | 238 | } |