Completed
Push — master ( 141805...6a8432 )
by Adam
02:45
created
src/GridServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Source/EloquentSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
tests/GridTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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' => [
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     public function testBuildGridWithEachCallbackAndModifyColumnValue()
59 59
     {
60 60
         $grid = $this->getSampleGrid();
61
-        $grid->each(function (\Boduch\Grid\Row $row) {
61
+        $grid->each(function(\Boduch\Grid\Row $row) {
62 62
             $row->get('website')->setValue('');
63 63
         });
64 64
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     public function testBuildGridAndAddRowClass()
71 71
     {
72 72
         $grid = $this->getSampleGrid();
73
-        $grid->each(function (\Boduch\Grid\Row $row) {
73
+        $grid->each(function(\Boduch\Grid\Row $row) {
74 74
             $row->class = 'foo';
75 75
         });
76 76
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         ]);
91 91
         $grid->addColumn('id', [
92 92
             'title' => 'ID',
93
-            'clickable' => function ($row) {
93
+            'clickable' => function($row) {
94 94
                 return '<a href="http://4programmers.net">' . $row['id'] . '</a>';
95 95
             }
96 96
         ]);
Please login to merge, or discard this patch.