Completed
Pull Request — master (#3559)
by jxlwqq
03:05
created
src/Console/PermissionCommand.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
                 $http_path = '/'.$resource.'/*';
149 149
                 break;
150 150
             case 'list':
151
-                $http_path = '/'.$resource . '/*';
151
+                $http_path = '/'.$resource.'/*';
152 152
                 break;
153 153
             case 'view':
154 154
                 $http_path = '/'.$resource.'/*';
Please login to merge, or discard this patch.
src/Grid/Column/InputFilter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      * Add a binding to the query.
28 28
      *
29 29
      * @param string     $value
30
-     * @param Model|null $model
30
+     * @param Model $model
31 31
      */
32 32
     public function addBinding($value, Model $model)
33 33
     {
Please login to merge, or discard this patch.
src/Grid/Displayers/Downloadable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
             $this->value = $this->value->toArray();
14 14
         }
15 15
 
16
-        return collect((array) $this->value)->filter()->map(function ($value) use ($server) {
16
+        return collect((array) $this->value)->filter()->map(function($value) use ($server) {
17 17
             if (empty($value)) {
18 18
                 return '';
19 19
             }
Please login to merge, or discard this patch.