line |
true |
false |
branch |
95
|
3 |
56 |
unless defined $params{'totalEntries'} and defined $params{'entriesPerPage'} |
98
|
1 |
55 |
if defined $params{'currentPage'} and defined $params{'startEntry'} |
101
|
1 |
54 |
unless defined $params{'currentPage'} or defined $params{'startEntry'} |
104
|
4 |
51 |
if defined $params{'startEntry'} |
109
|
5 |
50 |
unless defined $params{'maxPages'} |
155
|
50 |
50 |
wantarray ? : |
179
|
216 |
184 |
if defined $$self{'PAGE_RANGES'}[$_] |
182
|
100 |
300 |
if $_ == 1 |
186
|
50 |
50 |
wantarray ? : |
213
|
44 |
56 |
if (not defined $$ranges[0]) { } |
214
|
36 |
8 |
if $self->current_page > 1 |
217
|
28 |
28 |
if defined $$ranges[1] and $$ranges[1][0] - $$ranges[0][1] > 1 |
220
|
52 |
48 |
if defined $$ranges[1] |
222
|
52 |
48 |
if defined $$ranges[2] |
224
|
44 |
56 |
if (not defined $$ranges[3]) { } |
225
|
36 |
8 |
if $self->current_page < $self->last_page |
227
|
28 |
28 |
if defined $$ranges[2] and $$ranges[3][0] - $$ranges[2][1] > 1 |
231
|
50 |
50 |
wantarray ? : |
250
|
40 |
15 |
$max_pages < $total_pages - 1 ? : |
253
|
15 |
40 |
if ($total_pages - 1 <= $max_pages) { } |
261
|
2 |
38 |
if ($current_page - $q_size[0] < 1) { } |
|
6 |
32 |
elsif ($current_page - $q_size[1] - ceil($q_size[1] / 3) <= $q_size[0]) { } |
|
5 |
27 |
elsif ($current_page + $q_size[3] >= $total_pages) { } |
|
4 |
23 |
elsif ($current_page + $q_size[2] >= $total_pages - $q_size[3]) { } |
286
|
25 |
30 |
$q_size[0] == 0 ? : |
|
29 |
26 |
$q_size[1] == 0 ? : |
|
29 |
26 |
$q_size[2] == 0 ? : |
|
22 |
33 |
$q_size[3] == 0 ? : |