Completed
Pull Request — master (#118)
by
unknown
02:48
created
src/CollectionDataProvider.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.