Completed
Push — master ( 8187a2...82be35 )
by Song
02:30
created
src/Grid/Displayers/Expand.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,6 @@
 block discarded – undo
55 55
     }
56 56
 
57 57
     /**
58
-     * @param int $multiple
59 58
      *
60 59
      * @return string
61 60
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         return Admin::component('admin::components.column-expand', [
28 28
             'key'           => $this->getKey(),
29 29
             'url'           => $this->getLoadUrl(),
30
-            'name'          => $this->getName() . '-' . $this->getKey(),
30
+            'name'          => $this->getName().'-'.$this->getKey(),
31 31
             'html'          => $html,
32 32
             'value'         => $this->value,
33 33
             'async'         => $async,
Please login to merge, or discard this patch.
src/Grid/Displayers/Modal.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             $title = $this->trans('title');
39 39
         }
40 40
 
41
-        $html  = '';
41
+        $html = '';
42 42
 
43 43
         if ($async = is_subclass_of($callback, Renderable::class)) {
44 44
             $this->renderable = $callback;
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             'html'    => $html,
55 55
             'key'     => $this->getKey(),
56 56
             'value'   => $this->value,
57
-            'name'    => $this->getKey() . '-' . str_replace('.', '_', $this->getColumn()->getName()),
57
+            'name'    => $this->getKey().'-'.str_replace('.', '_', $this->getColumn()->getName()),
58 58
         ]);
59 59
     }
60 60
 }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@  discard block
 block discarded – undo
14 14
     protected $renderable;
15 15
 
16 16
     /**
17
-     * @param int $multiple
18 17
      *
19 18
      * @return string
20 19
      */
@@ -28,7 +27,7 @@  discard block
 block discarded – undo
28 27
     /**
29 28
      * @param \Closure|string $callback
30 29
      *
31
-     * @return mixed|string
30
+     * @return null|string
32 31
      */
33 32
     public function display($callback = null)
34 33
     {
Please login to merge, or discard this patch.
src/Grid/Concerns/CanDoubleClick.php 7 patches
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,6 +20,4 @@
 block discarded – undo
20 20
 });
21 21
 SCRIPT);
22 22
 
23
-        return $this;
24
-    }
25
-}
23
+        return $this
26 24
\ No newline at end of file
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,6 +20,4 @@
 block discarded – undo
20 20
 });
21 21
 SCRIPT);
22 22
 
23
-        return $this;
24
-    }
25
-}
23
+        return $this
26 24
\ No newline at end of file
Please login to merge, or discard this patch.
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,6 +20,4 @@
 block discarded – undo
20 20
 });
21 21
 SCRIPT);
22 22
 
23
-        return $this;
24
-    }
25
-}
23
+        return $this
26 24
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,6 +20,4 @@
 block discarded – undo
20 20
 });
21 21
 SCRIPT);
22 22
 
23
-        return $this;
24
-    }
25
-}
23
+        return $this
26 24
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,6 +20,4 @@
 block discarded – undo
20 20
 });
21 21
 SCRIPT);
22 22
 
23
-        return $this;
24
-    }
25
-}
23
+        return $this
26 24
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,6 +20,4 @@
 block discarded – undo
20 20
 });
21 21
 SCRIPT);
22 22
 
23
-        return $this;
24
-    }
25
-}
23
+        return $this
26 24
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,6 +20,4 @@
 block discarded – undo
20 20
 });
21 21
 SCRIPT);
22 22
 
23
-        return $this;
24
-    }
25
-}
23
+        return $this
26 24
\ No newline at end of file
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
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
             'scopes'    => $filter->getScopes(),
23 23
             'label'     => $label,
24 24
             'cancel'    => $filter->urlWithoutScopes(),
25
-            'btn_class' => uniqid() . '-filter-btn',
25
+            'btn_class' => uniqid().'-filter-btn',
26 26
             'expand'    => $filter->expand,
27 27
             'filter_id' => $filter->getFilterID(),
28 28
         ]);
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
@@ -33,9 +33,9 @@  discard block
 block discarded – undo
33 33
      */
34 34
     protected function getGridColumns()
35 35
     {
36
-        return $this->grid->columns()->reject(function ($column) {
36
+        return $this->grid->columns()->reject(function($column) {
37 37
             return in_array($column->getName(), static::$ignored);
38
-        })->map(function ($column) {
38
+        })->map(function($column) {
39 39
             return [$column->getName() => $column->getLabel()];
40 40
         })->collapse();
41 41
     }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public static function ignore($name)
49 49
     {
50
-        static::$ignored = array_merge(static::$ignored, (array)$name);
50
+        static::$ignored = array_merge(static::$ignored, (array) $name);
51 51
     }
52 52
 
53 53
     /**
Please login to merge, or discard this patch.
src/Grid/Column/InlineEditing.php 2 patches
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,6 @@  discard block
 block discarded – undo
70 70
     /**
71 71
      * Grid inline date picker.
72 72
      *
73
-     * @param string $format
74 73
      *
75 74
      * @return $this
76 75
      */
@@ -82,7 +81,6 @@  discard block
 block discarded – undo
82 81
     /**
83 82
      * Grid inline time picker.
84 83
      *
85
-     * @param string $format
86 84
      *
87 85
      * @return $this
88 86
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
     {
233 233
         $identifiers = \DateTimeZone::listIdentifiers(\DateTimeZone::ALL);
234 234
 
235
-        $options = collect($identifiers)->mapWithKeys(function ($timezone) {
235
+        $options = collect($identifiers)->mapWithKeys(function($timezone) {
236 236
             return [$timezone => $timezone];
237 237
         })->toArray();
238 238
 
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
      *
295 295
      * @return $this
296 296
      */
297
-    public function switch(array $states = [])
297
+    public function switch (array $states = [])
298 298
     {
299 299
         return $this->displayUsing(Displayers\SwitchDisplay::class, [$states]);
300 300
     }
Please login to merge, or discard this patch.
src/Grid/Displayers/BelongsTo.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -9,6 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     /**
11 11
      * @param int $multiple
12
+     * @param string|null $selectable
12 13
      *
13 14
      * @return string
14 15
      */
Please login to merge, or discard this patch.
src/Grid/Displayers/SwitchGroup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
         $this->overrideStates($states);
13 13
 
14 14
         if (!Arr::isAssoc($columns)) {
15
-            $columns = collect($columns)->map(function ($column) {
15
+            $columns = collect($columns)->map(function($column) {
16 16
                 return [$column => ucfirst($column)];
17 17
             })->collapse();
18 18
         }
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     protected function buildSwitch($name, $label = '')
30 30
     {
31 31
         return Admin::component('admin::grid.inline-edit.switch-group', [
32
-            'class'    => 'grid-switch-' . str_replace('.', '-', $name),
32
+            'class'    => 'grid-switch-'.str_replace('.', '-', $name),
33 33
             'key'      => $this->getKey(),
34 34
             'resource' => $this->getResource(),
35 35
             'name'     => $this->getPayloadName($name),
Please login to merge, or discard this patch.
src/Grid/Displayers/SwitchDisplay.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
         $this->overrideStates($states);
32 32
 
33 33
         return Admin::component('admin::grid.inline-edit.switch', [
34
-            'class'    => 'grid-switch-' . str_replace('.', '-', $this->getName()),
34
+            'class'    => 'grid-switch-'.str_replace('.', '-', $this->getName()),
35 35
             'key'      => $this->getKey(),
36 36
             'resource' => $this->getResource(),
37 37
             'name'     => $this->getPayloadName(),
Please login to merge, or discard this patch.