@@ -18,7 +18,7 @@ |
||
| 18 | 18 | /** |
| 19 | 19 | * Constructor. |
| 20 | 20 | * |
| 21 | - * @param Builder $src |
|
| 21 | + * @param Collection $src |
|
| 22 | 22 | */ |
| 23 | 23 | public function __construct(Collection $src) |
| 24 | 24 | { |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | public function getPaginationFactory() |
| 57 | 57 | { |
| 58 | - return $this->getPaginator();//$this->src->getQuery()->getConnection()->getPaginator(); |
|
| 58 | + return $this->getPaginator(); //$this->src->getQuery()->getConnection()->getPaginator(); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | protected function getIterator() |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | public function getRow() |
| 78 | 78 | { |
| 79 | - if(!$this->iterator) |
|
| 79 | + if (!$this->iterator) |
|
| 80 | 80 | { |
| 81 | 81 | $this->getIterator(); |
| 82 | 82 | } |
@@ -106,10 +106,10 @@ discard block |
||
| 106 | 106 | */ |
| 107 | 107 | public function orderBy($fieldName, $direction) |
| 108 | 108 | { |
| 109 | - if($direction === Grid::SORT_ASC){ |
|
| 109 | + if ($direction === Grid::SORT_ASC) { |
|
| 110 | 110 | $this->src->sortBy($fieldName); |
| 111 | 111 | } |
| 112 | - else{ |
|
| 112 | + else { |
|
| 113 | 113 | $this->src->sortByDesc($fieldName); |
| 114 | 114 | } |
| 115 | 115 | |