Completed
Push — master ( 4815cc...40c1d5 )
by Adam
03:27
created
src/Source/EloquentDataSource.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
     }
97 97
 
98 98
     /**
99
-     * @param $name
99
+     * @param string $name
100 100
      * @param Request $request
101 101
      * @return bool
102 102
      */
Please login to merge, or discard this 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) use ($order) {
48
+            ->when($order->getColumn(), function($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.
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->bind('grid.builder', function ($app) {
34
+        $this->app->bind('grid.builder', function($app) {
35 35
             return new GridBuilder($app);
36 36
         });
37 37
     }
Please login to merge, or discard this patch.
src/Row.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,6 @@
 block discarded – undo
76 76
 
77 77
     /**
78 78
      * Get cell object by name.
79
-
80 79
      * @param string $name  Column name
81 80
      * @return CellInterface|null
82 81
      */
Please login to merge, or discard this patch.
src/helpers.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 if (!function_exists('grid_column')) {
17 17
     /**
18 18
      * @param Grid\Column $column
19
-     * @return string
19
+     * @return Illuminate\Support\HtmlString
20 20
      */
21 21
     function grid_column(Grid\Column $column)
22 22
     {
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 if (!function_exists('grid_filter')) {
48 48
     /**
49 49
      * @param Grid\Column $column
50
-     * @return string
50
+     * @return Illuminate\Support\HtmlString
51 51
      */
52 52
     function grid_filter(Grid\Column $column)
53 53
     {
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 if (!function_exists('grid_row')) {
65 65
     /**
66 66
      * @param Grid\Row $row
67
-     * @return string
67
+     * @return Illuminate\Support\HtmlString
68 68
      */
69 69
     function grid_row(Grid\Row $row)
70 70
     {
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 if (!function_exists('grid_cell')) {
81 81
     /**
82 82
      * @param Grid\CellInterface $cell
83
-     * @return string
83
+     * @return Illuminate\Support\HtmlString
84 84
      */
85 85
     function grid_cell(Grid\CellInterface $cell)
86 86
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
             $text = $column->getTitle();
41 41
         }
42 42
 
43
-        return $column->getGrid()->getHtmlBuilder()->tag('th', (string)$text);
43
+        return $column->getGrid()->getHtmlBuilder()->tag('th', (string) $text);
44 44
     }
45 45
 }
46 46
 
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
         $filter = '';
55 55
 
56 56
         if ($column->isFilterable()) {
57
-            $filter = (string)$column->getFilter()->render();
57
+            $filter = (string) $column->getFilter()->render();
58 58
         }
59 59
 
60
-        return $column->getGrid()->getHtmlBuilder()->tag('th', (string)$filter);
60
+        return $column->getGrid()->getHtmlBuilder()->tag('th', (string) $filter);
61 61
     }
62 62
 }
63 63
 
Please login to merge, or discard this patch.