Conditions | 5 |
Paths | 5 |
Total Lines | 15 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 30 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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 | } |
||
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
.