Completed
Pull Request — master (#1123)
by Song
02:21
created
src/Grid.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
      * Get or set option for grid.
225 225
      *
226 226
      * @param string $key
227
-     * @param mixed  $value
227
+     * @param boolean  $value
228 228
      *
229 229
      * @return $this|mixed
230 230
      */
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
     /**
355 355
      * Get the grid paginator.
356 356
      *
357
-     * @return mixed
357
+     * @return Tools\Paginator
358 358
      */
359 359
     public function paginator()
360 360
     {
@@ -714,6 +714,9 @@  discard block
 block discarded – undo
714 714
 
715 715
     protected $footer;
716 716
 
717
+    /**
718
+     * @return callable
719
+     */
717 720
     public function footer(Closure $closure = null)
718 721
     {
719 722
         if (!$closure) {
Please login to merge, or discard this patch.
src/Grid/Column.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     /**
126 126
      * Extend column displayer.
127 127
      *
128
-     * @param $name
128
+     * @param string $name
129 129
      * @param $displayer
130 130
      */
131 131
     public static function extend($name, $displayer)
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     /**
160 160
      * Set model for column.
161 161
      *
162
-     * @param $model
162
+     * @param Model $model
163 163
      */
164 164
     public function setModel($model)
165 165
     {
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     /**
217 217
      * Get name of this column.
218 218
      *
219
-     * @return mixed
219
+     * @return string
220 220
      */
221 221
     public function getName()
222 222
     {
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
     /**
227 227
      * Format label.
228 228
      *
229
-     * @param $label
229
+     * @param string $label
230 230
      *
231 231
      * @return mixed
232 232
      */
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
     /**
241 241
      * Get label of the column.
242 242
      *
243
-     * @return mixed
243
+     * @return string
244 244
      */
245 245
     public function getLabel()
246 246
     {
Please login to merge, or discard this patch.
src/Grid/Displayers/Actions.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
      * {@inheritdoc}
111
+     * @param \Closure $callback
111 112
      */
112 113
     public function display($callback = null)
113 114
     {
Please login to merge, or discard this patch.
src/Grid/Filter/Field/DateTime.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@
 block discarded – undo
15 15
 
16 16
     protected $format = 'YYYY-MM-DD HH:mm:ss';
17 17
 
18
+    /**
19
+     * @param \Encore\Admin\Grid\Filter\AbstractFilter $filter
20
+     */
18 21
     public function __construct($filter, array $options = [])
19 22
     {
20 23
         $this->filter = $filter;
Please login to merge, or discard this patch.
src/Grid/Filter/Field/Select.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
      *
184 184
      * @param string $target
185 185
      *
186
-     * @return mixed
186
+     * @return string
187 187
      */
188 188
     protected function getClass($target)
189 189
     {
Please login to merge, or discard this patch.
src/Traits/ModelTree.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@
 block discarded – undo
229 229
     /**
230 230
      * Get options for Select field in form.
231 231
      *
232
-     * @return \Illuminate\Support\Collection
232
+     * @return callable
233 233
      */
234 234
     public static function selectOptions()
235 235
     {
Please login to merge, or discard this patch.
src/Tree.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -282,7 +282,6 @@
 block discarded – undo
282 282
     /**
283 283
      * Return all items of the tree.
284 284
      *
285
-     * @param array $items
286 285
      */
287 286
     public function getItems()
288 287
     {
Please login to merge, or discard this patch.
src/Tree/Tools.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@
 block discarded – undo
26 26
     /**
27 27
      * Create a new Tools instance.
28 28
      *
29
-     * @param Builder $builder
30 29
      */
31 30
     public function __construct(Tree $tree)
32 31
     {
Please login to merge, or discard this patch.
src/Controllers/ModelForm.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      *
34 34
      * @param int $id
35 35
      *
36
-     * @return \Illuminate\Http\Response
36
+     * @return \Illuminate\Http\JsonResponse
37 37
      */
38 38
     public function destroy($id)
39 39
     {
Please login to merge, or discard this patch.