Completed
Pull Request — master (#4435)
by Muhlis
07:58
created
src/Grid/Column/RangeFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
40 40
             return;
41 41
         }
42 42
 
43
-        if (! isset($value['start'])) {
43
+        if (!isset($value['start'])) {
44 44
             return $model->where($this->getColumnName(), '<', $value['end']);
45
-        } elseif (! isset($value['end'])) {
45
+        } elseif (!isset($value['end'])) {
46 46
             return $model->where($this->getColumnName(), '>', $value['start']);
47 47
         } else {
48 48
             return $model->whereBetween($this->getColumnName(), array_values($value));
Please login to merge, or discard this patch.
src/Grid/Exporters/ExcelExporter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function headings(): array
33 33
     {
34
-        if (! empty($this->columns)) {
34
+        if (!empty($this->columns)) {
35 35
             return array_values($this->columns);
36 36
         }
37 37
 
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function query()
45 45
     {
46
-        if (! empty($this->columns)) {
46
+        if (!empty($this->columns)) {
47 47
             $columns = array_keys($this->columns);
48 48
 
49 49
             $eagerLoads = array_keys($this->getQuery()->getEagerLoads());
50 50
 
51
-            $columns = collect($columns)->reject(function ($column) use ($eagerLoads) {
51
+            $columns = collect($columns)->reject(function($column) use ($eagerLoads) {
52 52
                 return Str::contains($column, '.') || in_array($column, $eagerLoads);
53 53
             });
54 54
 
Please login to merge, or discard this patch.
src/Grid/Tools/FilterButton.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     protected function getElementClassName()
33 33
     {
34
-        if (! $this->btnClassName) {
34
+        if (!$this->btnClassName) {
35 35
             $this->btnClassName = uniqid().'-filter-btn';
36 36
         }
37 37
 
Please login to merge, or discard this patch.
src/Grid/Tools/AbstractTool.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function allowed()
38 38
     {
39
-        return ! $this->disabled;
39
+        return !$this->disabled;
40 40
     }
41 41
 
42 42
     /**
Please login to merge, or discard this patch.
src/Grid/Tools/ColumnSelector.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function render()
42 42
     {
43
-        if (! $this->grid->showColumnSelector()) {
43
+        if (!$this->grid->showColumnSelector()) {
44 44
             return '';
45 45
         }
46 46
 
47 47
         $show = $this->grid->visibleColumnNames();
48 48
 
49
-        $lists = $this->getGridColumns()->map(function ($label, $key) use ($show) {
49
+        $lists = $this->getGridColumns()->map(function($label, $key) use ($show) {
50 50
             if (empty($show)) {
51 51
                 $checked = 'checked';
52 52
             } else {
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     protected function getGridColumns()
100 100
     {
101
-        return $this->grid->columns()->map(function (Grid\Column $column) {
101
+        return $this->grid->columns()->map(function(Grid\Column $column) {
102 102
             $name = $column->getName();
103 103
 
104 104
             if ($this->isColumnIgnored($name)) {
Please login to merge, or discard this patch.
src/Grid/Tools/TotalRow.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     protected function total($column, $display = null, $operation = 'sum')
58 58
     {
59
-        if (! is_callable($display) && ! is_null($display)) {
59
+        if (!is_callable($display) && !is_null($display)) {
60 60
             return $display;
61 61
         }
62 62
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function render()
98 98
     {
99
-        $columns = $this->getVisibleColumns()->map(function (Column $column) {
99
+        $columns = $this->getVisibleColumns()->map(function(Column $column) {
100 100
             $name = $column->getName();
101 101
 
102 102
             $total = '';
Please login to merge, or discard this patch.
src/Grid/Tools/Header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      */
32 32
     public function queryBuilder()
33 33
     {
34
-        if (! $this->queryBuilder) {
34
+        if (!$this->queryBuilder) {
35 35
             $this->queryBuilder = $this->grid->model()->getQueryBuilder();
36 36
         }
37 37
 
Please login to merge, or discard this patch.
src/Grid/Tools/ExportButton.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     public function render()
56 56
     {
57
-        if (! $this->grid->showExportBtn()) {
57
+        if (!$this->grid->showExportBtn()) {
58 58
             return '';
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/Grid/Tools/CreateButton.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function render()
30 30
     {
31
-        if (! $this->grid->showCreateBtn()) {
31
+        if (!$this->grid->showCreateBtn()) {
32 32
             return '';
33 33
         }
34 34
 
Please login to merge, or discard this patch.