@@ -18,7 +18,7 @@ |
||
18 | 18 | * @return array |
19 | 19 | * @throws \RuntimeException |
20 | 20 | */ |
21 | - public static function parameterizeQuery(?string $queryString = null) |
|
21 | + public static function parameterizeQuery(? string $queryString = null) |
|
22 | 22 | { |
23 | 23 | if (empty($queryString)) |
24 | 24 | { |
@@ -254,11 +254,11 @@ |
||
254 | 254 | } |
255 | 255 | |
256 | 256 | return '<ul class="pagination">' . |
257 | - $this->_renderListItem($this->_currentPage - 1, $this->_getFirstPageUrl(), $this->_firstPageSymbol) . |
|
258 | - $this->_renderListItem($this->_currentPage - 1, $this->_getPreviousPageUrl(), $this->_previousPageSymbol) . |
|
259 | - $this->_renderPageList() . |
|
260 | - $this->_renderListItem($this->_currentPage + 1, $this->_getNextPageUrl(), $this->_nextPageSymbol) . |
|
261 | - $this->_renderListItem($this->_currentPage + 1, $this->_getLastPageUrl(), $this->_lastPageSymbol) . |
|
262 | - '</ul>'; |
|
257 | + $this->_renderListItem($this->_currentPage - 1, $this->_getFirstPageUrl(), $this->_firstPageSymbol) . |
|
258 | + $this->_renderListItem($this->_currentPage - 1, $this->_getPreviousPageUrl(), $this->_previousPageSymbol) . |
|
259 | + $this->_renderPageList() . |
|
260 | + $this->_renderListItem($this->_currentPage + 1, $this->_getNextPageUrl(), $this->_nextPageSymbol) . |
|
261 | + $this->_renderListItem($this->_currentPage + 1, $this->_getLastPageUrl(), $this->_lastPageSymbol) . |
|
262 | + '</ul>'; |
|
263 | 263 | } |
264 | 264 | } |
265 | 265 | \ No newline at end of file |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | * |
190 | 190 | * @return string |
191 | 191 | */ |
192 | - private function _renderListItem(string $pagenumber, ?string $url, ?string $symbol = null): string |
|
192 | + private function _renderListItem(string $pagenumber, ? string $url, ? string $symbol = null) : string |
|
193 | 193 | { |
194 | 194 | if ($url === null) |
195 | 195 | { |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | } |
203 | 203 | |
204 | 204 | $class = ''; |
205 | - if (+ $pagenumber === $this->_currentPage) |
|
205 | + if (+$pagenumber === $this->_currentPage) |
|
206 | 206 | { |
207 | 207 | $class = ' class="active"'; |
208 | 208 | } |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | } |
233 | 233 | |
234 | 234 | $pageList = ''; |
235 | - for ($i = $start; $i <= $end; $i ++) |
|
235 | + for ($i = $start; $i <= $end; $i++) |
|
236 | 236 | { |
237 | 237 | $pageList .= $this->_renderListItem($i, $this->_buildPageUrl($i)); |
238 | 238 | } |
@@ -136,8 +136,8 @@ |
||
136 | 136 | public function render(): string |
137 | 137 | { |
138 | 138 | return '<form method="get" action="' . $this->_buildSearchUrl() . |
139 | - '"><div class="row"><div class="col-md-10"><input name="search" class="form-control data-scout-input" placeholder="' . |
|
140 | - $this->_placeholder . '"/></div><div class="col-md-2"><button type="submit" class="btn btn-primary">' . |
|
141 | - $this->_buttonText . '</button></div></div></form>'; |
|
139 | + '"><div class="row"><div class="col-md-10"><input name="search" class="form-control data-scout-input" placeholder="' . |
|
140 | + $this->_placeholder . '"/></div><div class="col-md-2"><button type="submit" class="btn btn-primary">' . |
|
141 | + $this->_buttonText . '</button></div></div></form>'; |
|
142 | 142 | } |
143 | 143 | } |
144 | 144 | \ No newline at end of file |
@@ -55,7 +55,7 @@ |
||
55 | 55 | return $this->_queryBuilder; |
56 | 56 | } |
57 | 57 | |
58 | - $this->_queryBuilder->where(function ($query) |
|
58 | + $this->_queryBuilder->where(function($query) |
|
59 | 59 | { |
60 | 60 | foreach ($this->_searchQueries as $value) |
61 | 61 | { |
@@ -194,7 +194,7 @@ |
||
194 | 194 | } |
195 | 195 | |
196 | 196 | $headers = array_map( |
197 | - function ($name) |
|
197 | + function($name) |
|
198 | 198 | { |
199 | 199 | return new Header($name); |
200 | 200 | }, |
@@ -30,12 +30,12 @@ |
||
30 | 30 | */ |
31 | 31 | public function register() |
32 | 32 | { |
33 | - $this->app->bind('datatable', function ($app) |
|
33 | + $this->app->bind('datatable', function($app) |
|
34 | 34 | { |
35 | 35 | return new DataTable($app->request); |
36 | 36 | }); |
37 | 37 | |
38 | - $this->app->booting(function () |
|
38 | + $this->app->booting(function() |
|
39 | 39 | { |
40 | 40 | $loader = AliasLoader::getInstance(); |
41 | 41 | $loader->alias('DataTable', DataTableFacade::class); |