@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | return $this->path; |
181 | 181 | } |
182 | 182 | $page = (int)$page; |
183 | - return $this->path . '?' . $this->pagerKey . '=' . $page; |
|
183 | + return $this->path.'?'.$this->pagerKey.'='.$page; |
|
184 | 184 | } |
185 | 185 | |
186 | 186 | /** |
@@ -197,6 +197,6 @@ discard block |
||
197 | 197 | public function __toString() |
198 | 198 | { |
199 | 199 | $toHtml = new ToBootstrap3(Paginate::forge($this)); |
200 | - return (string) $toHtml; |
|
200 | + return (string)$toHtml; |
|
201 | 201 | } |
202 | 202 | } |
203 | 203 | \ No newline at end of file |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | public function getIterator() |
82 | 82 | { |
83 | 83 | $pages = $this->calcPageList(); |
84 | - foreach($pages as $p) { |
|
84 | + foreach ($pages as $p) { |
|
85 | 85 | yield $p; |
86 | 86 | } |
87 | 87 | } |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | */ |
113 | 113 | private function calcStart() |
114 | 114 | { |
115 | - $half = (int) ($this->numLinks / 2); |
|
115 | + $half = (int)($this->numLinks / 2); |
|
116 | 116 | $start = max($this->currPage - $half, $this->firstPage + 1); |
117 | 117 | $maybe = max($this->lastPage - 1 - $this->numLinks, $this->firstPage + 1); |
118 | 118 | $start = min($start, $maybe); |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | */ |
140 | 140 | private function calcLast() |
141 | 141 | { |
142 | - $numLinks = $this->numLinks - 1 + ($this->getExtraStart() ? 0: 1); |
|
142 | + $numLinks = $this->numLinks - 1 + ($this->getExtraStart() ? 0 : 1); |
|
143 | 143 | $last = min($this->calcStart() + $numLinks, $this->lastPage - 1); |
144 | 144 | return $last; |
145 | 145 | } |