@@ -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 | } |
@@ -32,22 +32,22 @@ |
||
32 | 32 | */ |
33 | 33 | public function register() |
34 | 34 | { |
35 | - $this->app->bind('datatable', function ($app) |
|
35 | + $this->app->bind('datatable', function($app) |
|
36 | 36 | { |
37 | 37 | return new DataTable($app->request); |
38 | 38 | }); |
39 | 39 | |
40 | - $this->app->singleton('session_helper', function () |
|
40 | + $this->app->singleton('session_helper', function() |
|
41 | 41 | { |
42 | 42 | return new SessionHelper(); |
43 | 43 | }); |
44 | 44 | |
45 | - $this->app->singleton('url_helper', function () |
|
45 | + $this->app->singleton('url_helper', function() |
|
46 | 46 | { |
47 | 47 | return new UrlHelper(); |
48 | 48 | }); |
49 | 49 | |
50 | - $this->app->booting(function () |
|
50 | + $this->app->booting(function() |
|
51 | 51 | { |
52 | 52 | AliasLoader::getInstance()->alias('DataTable', DataTableFacade::class); |
53 | 53 | }); |