Completed
Pull Request — master (#1449)
by Chris
01:16
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, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +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 6
 use Illuminate\Database\Eloquent\Relations\BelongsToMany;
7
+use Illuminate\Support\Collection;
8
+use Spatie\Permission\Contracts\Role;
9 9
 
10 10
 trait HasRoles
11 11
 {
Please login to merge, or discard this patch.