Total Complexity | 12 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
6 | class DLpaginateReversed extends DLpaginate |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * @param $page |
||
11 | * @return int|mixed |
||
12 | */ |
||
13 | protected function getPageQuery($page) |
||
14 | { |
||
15 | switch ($this->mode) { |
||
16 | case 'offset': |
||
17 | $display = isset($this->modeConfig['display']) ? $this->modeConfig['display'] : 0; |
||
18 | $out = $display * ($this->total_pages - $page); |
||
19 | break; |
||
20 | case 'back': |
||
21 | case 'pages': |
||
22 | default: |
||
23 | $out = $page; |
||
24 | break; |
||
25 | } |
||
26 | |||
27 | return $out; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @param $tpl |
||
32 | * @param $num |
||
33 | * @return mixed |
||
34 | */ |
||
35 | protected function renderItemTPL($tpl, $num) |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param $id |
||
43 | * @return mixed|string |
||
44 | */ |
||
45 | public function get_pagenum_link($id) |
||
61 |
This check looks for method names that are not written in camelCase.
In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection seeker becomes
databaseConnectionSeeker
.