Completed
Pull Request — master (#3979)
by
unknown
07:34
created
src/Grid/Concerns/HasActions.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     /**
25 25
      * Set grid action callback.
26 26
      *
27
-     * @param Closure|string $actions
27
+     * @param Closure $actions
28 28
      *
29 29
      * @return $this
30 30
      */
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Grid\Concerns;
4 4
 
5
-use Closure;
5
+use Closure;
6 6
 use Encore\Admin\Grid;
7 7
 
8 8
 trait HasActions
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
      */
89 89
     public function batchActions(Closure $closure)
90 90
     {
91
-        $this->tools(function (Grid\Tools $tools) use ($closure) {
91
+        $this->tools(function(Grid\Tools $tools) use ($closure) {
92 92
             $tools->batch($closure);
93 93
         });
94 94
 
Please login to merge, or discard this patch.
src/Grid/Concerns/HasElementNames.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -108,6 +108,7 @@
 block discarded – undo
108 108
     }
109 109
 
110 110
     /**
111
+     * @param string $name
111 112
      * @return string
112 113
      */
113 114
     protected function elementNameWithPrefix($name)
Please login to merge, or discard this patch.
src/Grid/Concerns/HasFilter.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Grid\Concerns;
4 4
 
5
-use Closure;
6
-use Encore\Admin\Grid\Filter;
5
+use Closure;
6
+use Encore\Admin\Grid\Filter;
7 7
 use Illuminate\Support\Collection;
8 8
 
9 9
 trait HasFilter
Please login to merge, or discard this patch.
src/Grid/Concerns/HasSelector.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Grid\Concerns;
4 4
 
5
-use Encore\Admin\Grid;
5
+use Encore\Admin\Grid;
6 6
 use Encore\Admin\Grid\Tools\Selector;
7 7
 
8 8
 /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
         call_user_func($closure, $this->selector);
28 28
 
29
-        $this->header(function () {
29
+        $this->header(function() {
30 30
             return $this->renderSelector();
31 31
         });
32 32
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
         $active = Selector::parseSelected();
48 48
 
49
-        $this->selector->getSelectors()->each(function ($selector, $column) use ($active) {
49
+        $this->selector->getSelectors()->each(function($selector, $column) use ($active) {
50 50
             if (!array_key_exists($column, $active)) {
51 51
                 return;
52 52
             }
Please login to merge, or discard this patch.
src/Grid/Concerns/HasTools.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Grid\Concerns;
4 4
 
5
-use Closure;
5
+use Closure;
6 6
 use Encore\Admin\Grid\Tools;
7 7
 
8 8
 trait HasTools
Please login to merge, or discard this patch.
src/Grid/Concerns/HasTotalRow.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Grid\Concerns;
4 4
 
5
-use Closure;
5
+use Closure;
6 6
 use Encore\Admin\Grid\Tools\TotalRow;
7 7
 
8 8
 trait HasTotalRow
Please login to merge, or discard this patch.
src/Grid/Displayers/AbstractDisplayer.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Grid\Displayers;
4 4
 
5
-use Encore\Admin\Grid;
6
-use Encore\Admin\Grid\Column;
5
+use Encore\Admin\Grid;
6
+use Encore\Admin\Grid\Column;
7 7
 use Illuminate\Database\Eloquent\Model;
8 8
 
9 9
 abstract class AbstractDisplayer
Please login to merge, or discard this patch.
src/Grid/Displayers/Badge.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Grid\Displayers;
4 4
 
5
-use Illuminate\Contracts\Support\Arrayable;
5
+use Illuminate\Contracts\Support\Arrayable;
6 6
 use Illuminate\Support\Arr;
7 7
 
8 8
 class Badge extends AbstractDisplayer
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
             $this->value = $this->value->toArray();
14 14
         }
15 15
 
16
-        return collect((array) $this->value)->map(function ($name) use ($style) {
16
+        return collect((array) $this->value)->map(function($name) use ($style) {
17 17
             if (is_array($style)) {
18 18
                 $style = Arr::get($style, $this->getColumn()->getOriginal(), 'red');
19 19
             }
Please login to merge, or discard this patch.
src/Grid/Displayers/DropdownActions.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Encore\Admin\Grid\Displayers;
4 4
 
5
-use Encore\Admin\Actions\RowAction;
6
-use Encore\Admin\Admin;
7
-use Encore\Admin\Grid\Actions\Delete;
8
-use Encore\Admin\Grid\Actions\Edit;
5
+use Encore\Admin\Actions\RowAction;
6
+use Encore\Admin\Admin;
7
+use Encore\Admin\Grid\Actions\Delete;
8
+use Encore\Admin\Grid\Actions\Edit;
9 9
 use Encore\Admin\Grid\Actions\Show;
10 10
 
11 11
 class DropdownActions extends Actions
Please login to merge, or discard this patch.