Completed
Pull Request — master (#4435)
by Muhlis
07:58
created
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/Paginator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             'total' => $this->paginator->total(),
72 72
         ];
73 73
 
74
-        $parameters = collect($parameters)->flatMap(function ($parameter, $key) {
74
+        $parameters = collect($parameters)->flatMap(function($parameter, $key) {
75 75
             return [$key => "<b>$parameter</b>"];
76 76
         });
77 77
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function render()
87 87
     {
88
-        if (! $this->grid->showPagination()) {
88
+        if (!$this->grid->showPagination()) {
89 89
             return '';
90 90
         }
91 91
 
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.
src/Grid/Tools/BatchActions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function disableDelete(bool $disable = true)
51 51
     {
52
-        $this->enableDelete = ! $disable;
52
+        $this->enableDelete = !$disable;
53 53
 
54 54
         return $this;
55 55
     }
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      */
167 167
     public function render()
168 168
     {
169
-        if (! $this->enableDelete) {
169
+        if (!$this->enableDelete) {
170 170
             $this->actions->shift();
171 171
         }
172 172
 
Please login to merge, or discard this patch.