Completed
Push — master ( fd4dfb...07d033 )
by Mahmoud
03:04
created
Containers/Authorization/UI/API/Tests/Functional/AssignUserToRoleTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use App\Containers\User\Models\User;
6 6
 use App\Port\Tests\PHPUnit\Abstracts\TestCase;
7
-use Vinkla\Hashids\Facades\Hashids;
8 7
 
9 8
 /**
10 9
  * Class AssignUserToRoleTest.
Please login to merge, or discard this patch.
Authorization/UI/API/Tests/Functional/AttachPermissionsToRoleTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use App\Containers\Authorization\Models\Permission;
6 6
 use App\Containers\Authorization\Models\Role;
7
-use App\Containers\User\Models\User;
8 7
 use App\Port\Tests\PHPUnit\Abstracts\TestCase;
9 8
 
10 9
 /**
Please login to merge, or discard this patch.
Authorization/UI/API/Tests/Functional/FindPermissionByNameTest.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,10 +3,7 @@
 block discarded – undo
3 3
 namespace App\Containers\Order\UI\API\Tests\Functional;
4 4
 
5 5
 use App\Containers\Order\Models\Order;
6
-use App\Containers\Invoice\Models\Invoice;
7
-use App\Containers\User\Models\User;
8 6
 use App\Port\Tests\PHPUnit\Abstracts\TestCase;
9
-use Vinkla\Hashids\Facades\Hashids;
10 7
 
11 8
 /**
12 9
  * Class FindRoleByNameTest.
Please login to merge, or discard this patch.
Containers/Authorization/UI/API/Tests/Functional/ListPermissionsTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Containers\Authorization\UI\API\Tests\Functional;
4 4
 
5
-use App\Containers\Authorization\Models\User;
6 5
 use App\Port\Tests\PHPUnit\Abstracts\TestCase;
7 6
 
8 7
 /**
Please login to merge, or discard this patch.
app/Containers/Authorization/Tasks/AttachPermissionsToRoleTask.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,13 +42,13 @@
 block discarded – undo
42 42
     {
43 43
         $role = $this->getRoleAction->run($roleName);
44 44
 
45
-        if(is_array($permissionNames)){
45
+        if (is_array($permissionNames)) {
46 46
 
47
-            foreach ($permissionNames as $permissionName){
47
+            foreach ($permissionNames as $permissionName) {
48 48
                 $role->givePermissionTo($permissionName);
49 49
             }
50 50
 
51
-        }else{
51
+        } else {
52 52
             $role->givePermissionTo($permissionNames);
53 53
         }
54 54
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
                 $this->attachRole($user, $role);
44 44
             }
45 45
 
46
-        }else{
46
+        } else{
47 47
             $this->attachRole($user, $roles);
48 48
         }
49 49
 
Please login to merge, or discard this patch.