@@ -65,7 +65,7 @@ |
||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
| 68 | - * @return mixed |
|
| 68 | + * @return string|null |
|
| 69 | 69 | */ |
| 70 | 70 | public function getValue() |
| 71 | 71 | { |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
| 99 | - * @param $name |
|
| 99 | + * @param string $name |
|
| 100 | 100 | * @param Request $request |
| 101 | 101 | * @return bool |
| 102 | 102 | */ |
@@ -45,7 +45,7 @@ |
||
| 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) |
@@ -31,7 +31,7 @@ |
||
| 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 | } |
@@ -76,7 +76,6 @@ |
||
| 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 | */ |
@@ -40,7 +40,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |