Completed
Push — master ( c40d9b...97e8fc )
by Timo
03:28
created
src/Models/DataComponents/Paginator.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -254,11 +254,11 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/DataTablesServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,22 +32,22 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.