Completed
Pull Request — master (#4037)
by Muhlis
02:35
created
src/Auth/Database/Permission.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
      *
92 92
      * @param string $path
93 93
      *
94
-     * @return mixed
94
+     * @return string
95 95
      */
96 96
     public function getHttpPathAttribute($path)
97 97
     {
Please login to merge, or discard this patch.
src/Form.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
      *
437 437
      * @param array $data
438 438
      *
439
-     * @return mixed
439
+     * @return Response|null
440 440
      */
441 441
     protected function prepare($data = [])
442 442
     {
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
     /**
577 577
      * Get RedirectResponse after update.
578 578
      *
579
-     * @param mixed $key
579
+     * @param integer $key
580 580
      *
581 581
      * @return \Illuminate\Http\RedirectResponse
582 582
      */
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
@@ -107,6 +107,7 @@
 block discarded – undo
107 107
     }
108 108
 
109 109
     /**
110
+     * @param string $name
110 111
      * @return string
111 112
      */
112 113
     protected function elementNameWithPrefix($name)
Please login to merge, or discard this patch.
src/Widgets/Carousel.php 1 patch
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
      * Carousel constructor.
26 26
      *
27
-     * @param array $items
27
+     * @param \Illuminate\Support\Collection $items
28 28
      */
29 29
     public function __construct($items = [])
30 30
     {
Please login to merge, or discard this patch.
src/Widgets/Form.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     /**
114 114
      * Get form title.
115 115
      *
116
-     * @return mixed
116
+     * @return string
117 117
      */
118 118
     protected function title()
119 119
     {
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     /**
177 177
      * Add form attributes.
178 178
      *
179
-     * @param string|array $attr
179
+     * @param string $attr
180 180
      * @param string       $value
181 181
      *
182 182
      * @return $this
Please login to merge, or discard this patch.
src/Grid/Concerns/CanHidesColumns.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     /**
47 47
      * Setting default shown columns on grid.
48 48
      *
49
-     * @param array|string $columns
49
+     * @param string $columns
50 50
      *
51 51
      * @return $this
52 52
      */
Please login to merge, or discard this patch.
src/Traits/Resizable.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      * Generate thumbnail URL.
32 32
      *
33 33
      * @param $image
34
-     * @param $type
34
+     * @param string $type
35 35
      *
36 36
      * @return string
37 37
      */
Please login to merge, or discard this patch.
src/Grid/Column/HasHeader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      *
44 44
      * @param string $cast
45 45
      *
46
-     * @return Column|string
46
+     * @return HasHeader
47 47
      */
48 48
     protected function addSorter($cast = null)
49 49
     {
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
@@ -112,6 +112,9 @@  discard block
 block discarded – undo
112 112
         ];
113 113
     }
114 114
 
115
+    /**
116
+     * @param string $permission
117
+     */
115 118
     private function generateHttpMethod($permission)
116 119
     {
117 120
         switch ($permission) {
@@ -134,6 +137,9 @@  discard block
 block discarded – undo
134 137
         return $http_method;
135 138
     }
136 139
 
140
+    /**
141
+     * @param string $permission
142
+     */
137 143
     private function generateHttpPath($table, $permission)
138 144
     {
139 145
         $resource = Str::kebab(Str::camel($table));
@@ -160,6 +166,9 @@  discard block
 block discarded – undo
160 166
         return $http_path;
161 167
     }
162 168
 
169
+    /**
170
+     * @param string $permission
171
+     */
163 172
     private function generateSlug($table, $permission)
164 173
     {
165 174
         return Str::kebab(Str::camel($table)).'.'.$permission;
Please login to merge, or discard this patch.