Completed
Pull Request — master (#1449)
by
unknown
01:21
created
src/Traits/HasRoles.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -321,6 +321,9 @@
 block discarded – undo
321 321
         return explode('|', trim($pipeString, $quoteCharacter));
322 322
     }
323 323
 
324
+    /**
325
+     * @param string $guard
326
+     */
324 327
     protected function getArgumentRoles($roles, $guard = null)
325 328
     {
326 329
         return array_map(function ($role) use ($guard) {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,11 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Spatie\Permission\Traits;
4 4
 
5
-use Illuminate\Support\Collection;
6
-use Spatie\Permission\Contracts\Role;
7 5
 use Illuminate\Database\Eloquent\Builder;
8
-use Spatie\Permission\PermissionRegistrar;
9 6
 use Illuminate\Database\Eloquent\Relations\MorphToMany;
7
+use Illuminate\Support\Collection;
8
+use Spatie\Permission\Contracts\Role;
10 9
 
11 10
 trait HasRoles
12 11
 {
Please login to merge, or discard this patch.