@@ -96,12 +96,12 @@ |
||
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | return '<ul class="pagination">' . |
| 99 | - $this->_renderListItem($this->_currentPage - 1, $this->_getFirstPageUrl(), $this->_firstPageSymbol) . |
|
| 100 | - $this->_renderListItem($this->_currentPage - 1, $this->_getPreviousPageUrl(), $this->_previousPageSymbol) . |
|
| 101 | - $this->_renderPageList() . |
|
| 102 | - $this->_renderListItem($this->_currentPage + 1, $this->_getNextPageUrl(), $this->_nextPageSymbol) . |
|
| 103 | - $this->_renderListItem($this->_currentPage + 1, $this->_getLastPageUrl(), $this->_lastPageSymbol) . |
|
| 104 | - '</ul>'; |
|
| 99 | + $this->_renderListItem($this->_currentPage - 1, $this->_getFirstPageUrl(), $this->_firstPageSymbol) . |
|
| 100 | + $this->_renderListItem($this->_currentPage - 1, $this->_getPreviousPageUrl(), $this->_previousPageSymbol) . |
|
| 101 | + $this->_renderPageList() . |
|
| 102 | + $this->_renderListItem($this->_currentPage + 1, $this->_getNextPageUrl(), $this->_nextPageSymbol) . |
|
| 103 | + $this->_renderListItem($this->_currentPage + 1, $this->_getLastPageUrl(), $this->_lastPageSymbol) . |
|
| 104 | + '</ul>'; |
|
| 105 | 105 | } |
| 106 | 106 | |
| 107 | 107 | /** |
@@ -166,7 +166,7 @@ |
||
| 166 | 166 | $end = $this->_getEndPage(); |
| 167 | 167 | |
| 168 | 168 | $pageList = ''; |
| 169 | - for ($i = $this->_getStartPage(); $i <= $end; $i ++) |
|
| 169 | + for ($i = $this->_getStartPage(); $i <= $end; $i++) |
|
| 170 | 170 | { |
| 171 | 171 | $pageList .= $this->_renderListItem($i, $this->_buildPageUrl($i)); |
| 172 | 172 | } |
@@ -254,9 +254,9 @@ |
||
| 254 | 254 | $this->_initColumns(); |
| 255 | 255 | |
| 256 | 256 | return TableRenderer::open($this->_classes) . |
| 257 | - TableRenderer::renderHeaders($this->_fetchHeaders(), $this->_headerFormatters) . |
|
| 258 | - TableRenderer::renderBody($data, $this->_columns) . |
|
| 259 | - TableRenderer::close(); |
|
| 257 | + TableRenderer::renderHeaders($this->_fetchHeaders(), $this->_headerFormatters) . |
|
| 258 | + TableRenderer::renderBody($data, $this->_columns) . |
|
| 259 | + TableRenderer::close(); |
|
| 260 | 260 | } |
| 261 | 261 | |
| 262 | 262 | /** |
@@ -120,9 +120,9 @@ |
||
| 120 | 120 | public function render() : string |
| 121 | 121 | { |
| 122 | 122 | return '<form method="get" action="' . $this->_buildSearchUrl() . |
| 123 | - '"><div class="row"><div class="col-md-10"><input name="search" class="form-control data-scout-input" placeholder="' . |
|
| 124 | - $this->_placeholder . '"/></div><div class="col-md-2"><button type="submit" class="btn btn-primary">' . |
|
| 125 | - $this->_buttonText . '</button></div></div></form>'; |
|
| 123 | + '"><div class="row"><div class="col-md-10"><input name="search" class="form-control data-scout-input" placeholder="' . |
|
| 124 | + $this->_placeholder . '"/></div><div class="col-md-2"><button type="submit" class="btn btn-primary">' . |
|
| 125 | + $this->_buttonText . '</button></div></div></form>'; |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | /** |
@@ -44,35 +44,35 @@ |
||
| 44 | 44 | |
| 45 | 45 | private function _registerDataTable(): void |
| 46 | 46 | { |
| 47 | - $this->app->bind('datatable', function () { |
|
| 47 | + $this->app->bind('datatable', function() { |
|
| 48 | 48 | return new DataTable(); |
| 49 | 49 | }); |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | private function _registerSessionHelper(): void |
| 53 | 53 | { |
| 54 | - $this->app->singleton('session_helper', function () { |
|
| 54 | + $this->app->singleton('session_helper', function() { |
|
| 55 | 55 | return new SessionHelper(); |
| 56 | 56 | }); |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | private function _registerUrlHelper(): void |
| 60 | 60 | { |
| 61 | - $this->app->singleton('url_helper', function () { |
|
| 61 | + $this->app->singleton('url_helper', function() { |
|
| 62 | 62 | return new UrlHelper(); |
| 63 | 63 | }); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | private function _registerTableRenderer(): void |
| 67 | 67 | { |
| 68 | - $this->app->singleton('table_renderer', function () { |
|
| 68 | + $this->app->singleton('table_renderer', function() { |
|
| 69 | 69 | return new TableRenderer(); |
| 70 | 70 | }); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | private function _setDataTableAlias(): void |
| 74 | 74 | { |
| 75 | - $this->app->booting(function () { |
|
| 75 | + $this->app->booting(function() { |
|
| 76 | 76 | AliasLoader::getInstance()->alias('DataTable', DataTableFacade::class); |
| 77 | 77 | }); |
| 78 | 78 | } |