@@ -78,6 +78,9 @@ |
||
78 | 78 | return "<li><a href=\"{$href}\" >{$label}{$only}</a></li>\n"; |
79 | 79 | } |
80 | 80 | |
81 | + /** |
|
82 | + * @param string $label |
|
83 | + */ |
|
81 | 84 | private function liLabel(Page $p, $label) |
82 | 85 | { |
83 | 86 | return "<li class=\"{$p->isCurrent('disabled')}\"><a href=\"{$p->isCurrent('#', $p->getUrl())}\" >{$label}</a></li>\n"; |
@@ -30,8 +30,8 @@ discard block |
||
30 | 30 | public function __construct($key, $currPage, $page) |
31 | 31 | { |
32 | 32 | $this->pagerKey = $key; |
33 | - $this->currPage = (int) $currPage; |
|
34 | - $this->page = (int) $page; |
|
33 | + $this->currPage = (int)$currPage; |
|
34 | + $this->page = (int)$page; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | public function isCurrent($true = true, $false = false) |
51 | 51 | { |
52 | 52 | return $this->currPage === $this->page |
53 | - ? $true: $false; |
|
53 | + ? $true : $false; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | public function isDisabled($true = true, $false = false) |
62 | 62 | { |
63 | 63 | return !$this->page |
64 | - ? $true: $false; |
|
64 | + ? $true : $false; |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |