Completed
Push — master ( c8a423...a23ea0 )
by Song
02:21
created
src/Grid.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
      * Get or set option for grid.
270 270
      *
271 271
      * @param string $key
272
-     * @param mixed  $value
272
+     * @param boolean  $value
273 273
      *
274 274
      * @return $this|mixed
275 275
      */
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
     /**
455 455
      * Get the grid paginator.
456 456
      *
457
-     * @return mixed
457
+     * @return Tools\Paginator
458 458
      */
459 459
     public function paginator()
460 460
     {
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
     }
533 533
 
534 534
     /**
535
-     * @return array|Collection|mixed
535
+     * @return Collection
536 536
      */
537 537
     protected function applyQuery()
538 538
     {
@@ -829,7 +829,7 @@  discard block
 block discarded – undo
829 829
     /**
830 830
      * Dynamically add columns to the grid view.
831 831
      *
832
-     * @param $method
832
+     * @param string $method
833 833
      * @param $arguments
834 834
      *
835 835
      * @return Column
Please login to merge, or discard this patch.
src/Grid/Tools/Selector.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      * @param string $column
58 58
      * @param string $label
59 59
      * @param array $options
60
-     * @param null $query
60
+     * @param null|\Closure $query
61 61
      * @param string $type
62 62
      *
63 63
      * @return $this
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
             return [];
107 107
         }
108 108
 
109
-        $selected = array_filter($selected, function ($value) {
109
+        $selected = array_filter($selected, function($value) {
110 110
             return !is_null($value);
111 111
         });
112 112
 
Please login to merge, or discard this patch.
src/Grid/Tools/PerPageSelector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     {
68 68
         Admin::script($this->script());
69 69
 
70
-        $options = $this->getOptions()->map(function ($option) {
70
+        $options = $this->getOptions()->map(function($option) {
71 71
             $selected = ($option == $this->perPage) ? 'selected' : '';
72 72
             $url = \request()->fullUrlWithQuery([$this->perPageName => $option]);
73 73
 
Please login to merge, or discard this patch.
src/Grid/Concerns/HasSelector.php 1 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.