Completed
Branch master (03a7df)
by Adam
04:16
created
src/Cell.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
     }
66 66
 
67 67
     /**
68
-     * @return mixed
68
+     * @return string|null
69 69
      */
70 70
     public function getValue()
71 71
     {
Please login to merge, or discard this patch.
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 1 patch
Spacing   +5 added lines, -5 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
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     function grid_cell(Grid\CellInterface $cell)
86 86
     {
87
-        return $cell->getColumn()->getGrid()->getHtmlBuilder()->tag('td', (string)$cell->getValue());
87
+        return $cell->getColumn()->getGrid()->getHtmlBuilder()->tag('td', (string) $cell->getValue());
88 88
     }
89 89
 }
90 90
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     {
98 98
         return $grid->getHtmlBuilder()->tag(
99 99
             'td',
100
-            (string)$grid->getNoDataMessage(),
100
+            (string) $grid->getNoDataMessage(),
101 101
             ['colspan' => count($grid->getColumns()), 'style' => 'text-align: center']
102 102
         );
103 103
     }
Please login to merge, or discard this patch.