@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function register() |
| 33 | 33 | { |
| 34 | - $this->app->singleton('grid.builder', function ($app) { |
|
| 34 | + $this->app->singleton('grid.builder', function($app) { |
|
| 35 | 35 | return new GridBuilder($app); |
| 36 | 36 | }); |
| 37 | 37 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | { |
| 46 | 46 | return $this |
| 47 | 47 | ->source |
| 48 | - ->when($order->getColumn(), function (Builder $builder) use ($order) { |
|
| 48 | + ->when($order->getColumn(), function(Builder $builder) use ($order) { |
|
| 49 | 49 | return $builder->orderBy($order->getColumn(), $order->getDirection()); |
| 50 | 50 | }) |
| 51 | 51 | ->forPage($currentPage, $perPage) |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | $grid = new Grid($this->gridHelper); |
| 29 | 29 | $grid->addColumn('name', [ |
| 30 | 30 | 'title' => 'First name', |
| 31 | - 'clickable' => function () { |
|
| 31 | + 'clickable' => function() { |
|
| 32 | 32 | return ''; |
| 33 | 33 | }, |
| 34 | 34 | 'decorators' => [ |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | ]); |
| 55 | 55 | $grid->addColumn('id', [ |
| 56 | 56 | 'title' => 'ID', |
| 57 | - 'clickable' => function ($row) { |
|
| 57 | + 'clickable' => function($row) { |
|
| 58 | 58 | return '<a href="http://4programmers.net">' . $row['id'] . '</a>'; |
| 59 | 59 | } |
| 60 | 60 | ]); |