Completed
Pull Request — master (#118)
by
unknown
02:48
created
resources/views/default/components/csv_export.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
resources/views/default/components/excel_export.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
resources/views/default/components/filters_row.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
src/DbalDataProvider.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
167 167
                 break;
168 168
             case "gt":
169 169
                 $operator = '>';    
170
-                 break;
170
+                    break;
171 171
             case "lt":
172 172
                 $operator = '<';    
173 173
                 break;
Please login to merge, or discard this patch.
src/EloquentDataProvider.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
                 break;
130 130
             case "gt":
131 131
                 $operator = '>';    
132
-                 break;
132
+                    break;
133 133
             case "lt":
134 134
                 $operator = '<';    
135 135
                 break;
Please login to merge, or discard this patch.
src/CollectionDataProvider.php 1 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.