@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author: Vitaliy Ofat <[email protected]> |
|
| 4 | - * |
|
| 5 | - * @var $grid Nayjest\Grids\Grid |
|
| 6 | - */ |
|
| 3 | + * @author: Vitaliy Ofat <[email protected]> |
|
| 4 | + * |
|
| 5 | + * @var $grid Nayjest\Grids\Grid |
|
| 6 | + */ |
|
| 7 | 7 | use Nayjest\Grids\Components\CsvExport; |
| 8 | 8 | ?> |
| 9 | 9 | <span> |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author: Vitaliy Ofat <[email protected]> |
|
| 4 | - * |
|
| 5 | - * @var $grid Nayjest\Grids\Grid |
|
| 6 | - */ |
|
| 3 | + * @author: Vitaliy Ofat <[email protected]> |
|
| 4 | + * |
|
| 5 | + * @var $grid Nayjest\Grids\Grid |
|
| 6 | + */ |
|
| 7 | 7 | use Nayjest\Grids\Components\ExcelExport; |
| 8 | 8 | ?> |
| 9 | 9 | <span> |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php # ========== FILTERS ROW ========== |
| 2 | 2 | /** |
| 3 | - * @var Nayjest\Grids\Components\FiltersRow $component |
|
| 4 | - * @var Nayjest\Grids\FieldConfig $column |
|
| 5 | - */ |
|
| 3 | + * @var Nayjest\Grids\Components\FiltersRow $component |
|
| 4 | + * @var Nayjest\Grids\FieldConfig $column |
|
| 5 | + */ |
|
| 6 | 6 | ?> |
| 7 | 7 | <?php if($grid->getFiltering()->available()): ?> |
| 8 | 8 | <tr> |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | |
| 159 | 159 | public function filter($fieldName, $operator, $value) |
| 160 | 160 | { |
| 161 | - switch ($operator) { |
|
| 161 | + switch ($operator) { |
|
| 162 | 162 | case "eq": |
| 163 | 163 | $operator = '='; |
| 164 | 164 | break; |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | break; |
| 168 | 168 | case "gt": |
| 169 | 169 | $operator = '>'; |
| 170 | - break; |
|
| 170 | + break; |
|
| 171 | 171 | case "lt": |
| 172 | 172 | $operator = '<'; |
| 173 | 173 | break; |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | break; |
| 130 | 130 | case "gt": |
| 131 | 131 | $operator = '>'; |
| 132 | - break; |
|
| 132 | + break; |
|
| 133 | 133 | case "lt": |
| 134 | 134 | $operator = '<'; |
| 135 | 135 | break; |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use Illuminate\Database\Eloquent\Builder; |
| 5 | 5 | use Event; |
| 6 | -use Illuminate\Foundation\Application; |
|
| 7 | 6 | use Illuminate\Support\Collection; |
| 8 | 7 | |
| 9 | 8 | class CollectionDataProvider extends DataProvider |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | { |
| 79 | 79 | if(!$this->iterator) |
| 80 | 80 | { |
| 81 | - $this->getIterator(); |
|
| 81 | + $this->getIterator(); |
|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | if ($this->index < $this->count()) { |
@@ -107,10 +107,10 @@ discard block |
||
| 107 | 107 | public function orderBy($fieldName, $direction) |
| 108 | 108 | { |
| 109 | 109 | if($direction === Grid::SORT_ASC){ |
| 110 | - $this->src->sortBy($fieldName); |
|
| 110 | + $this->src->sortBy($fieldName); |
|
| 111 | 111 | } |
| 112 | 112 | else{ |
| 113 | - $this->src->sortByDesc($fieldName); |
|
| 113 | + $this->src->sortByDesc($fieldName); |
|
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | return $this; |