Completed
Pull Request — master (#3546)
by jxlwqq
04:12
created
src/Grid/Concerns/HasFilter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      *
55 55
      * @param bool $toArray
56 56
      *
57
-     * @return array|Collection|mixed
57
+     * @return Collection
58 58
      */
59 59
     public function applyFilter($toArray = true)
60 60
     {
Please login to merge, or discard this patch.
src/Grid/Column.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     /**
167 167
      * Extend column displayer.
168 168
      *
169
-     * @param $name
169
+     * @param string $name
170 170
      * @param $displayer
171 171
      */
172 172
     public static function extend($name, $displayer)
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     /**
201 201
      * Set model for column.
202 202
      *
203
-     * @param $model
203
+     * @param Model $model
204 204
      */
205 205
     public function setModel($model)
206 206
     {
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
     /**
285 285
      * Get original column value.
286 286
      *
287
-     * @return mixed
287
+     * @return string
288 288
      */
289 289
     public function getOriginal()
290 290
     {
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
     /**
295 295
      * Get name of this column.
296 296
      *
297
-     * @return mixed
297
+     * @return string
298 298
      */
299 299
     public function getName()
300 300
     {
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
     /**
323 323
      * Get label of the column.
324 324
      *
325
-     * @return mixed
325
+     * @return string
326 326
      */
327 327
     public function getLabel()
328 328
     {
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
      * Display using display abstract.
410 410
      *
411 411
      * @param string $abstract
412
-     * @param array  $arguments
412
+     * @param Closure[]  $arguments
413 413
      *
414 414
      * @return $this
415 415
      */
Please login to merge, or discard this patch.
src/Console/PermissionCommand.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -111,6 +111,9 @@  discard block
 block discarded – undo
111 111
         ];
112 112
     }
113 113
 
114
+    /**
115
+     * @param string $permission
116
+     */
114 117
     private function generateHttpMethod($permission)
115 118
     {
116 119
         switch ($permission) {
@@ -132,6 +135,9 @@  discard block
 block discarded – undo
132 135
         return $http_method;
133 136
     }
134 137
 
138
+    /**
139
+     * @param string $permission
140
+     */
135 141
     private function generateHttpPath($table, $permission)
136 142
     {
137 143
         $resource = Str::kebab(Str::camel($table));
@@ -158,6 +164,9 @@  discard block
 block discarded – undo
158 164
         return $http_path;
159 165
     }
160 166
 
167
+    /**
168
+     * @param string $permission
169
+     */
161 170
     private function generateSlug($table, $permission)
162 171
     {
163 172
         return Str::kebab(Str::camel($table)) . '.' . $permission;
Please login to merge, or discard this patch.