Test Failed
Push — dev5 ( 2be149...544eb5 )
by Ron
15:57
created
app/Http/Controllers/Admin/AdminController.php 1 patch
Braces   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@  discard block
 block discarded – undo
37 37
         $userLinks = new UserCollection(
38 38
                         User::withCount([
39 39
                                 'FileLinks',
40
-                                'FileLinks as expired_file_links_count' => function($query)
41
-                                {
40
+                                'FileLinks as expired_file_links_count' => function($query) {
42 41
                                     $query->where('expire', '<', Carbon::now());
43 42
                                 }
44 43
                             ])
@@ -88,7 +87,8 @@  discard block
 block discarded – undo
88 87
         )->update(['value' => $request->passExpire]);
89 88
 
90 89
         //  If the setting is changing from never to xx days, update all users
91
-        if ($request->passExpire == 0) {
90
+        if ($request->passExpire == 0)
91
+        {
92 92
             User::whereNotNull('password_expires')->update([
93 93
                 'password_expires' => null
94 94
             ]);
@@ -110,8 +110,7 @@  discard block
 block discarded – undo
110 110
     public function roleSettings()
111 111
     {
112 112
         $this->authorize('hasAccess', 'Manage User Roles');
113
-        $roles = UserRoleType::with(['UserRolePermissions' => function($query)
114
-        {
113
+        $roles = UserRoleType::with(['UserRolePermissions' => function($query) {
115 114
             $query->join('user_role_permission_types', 'user_role_permission_types.perm_type_id', '=', 'user_role_permissions.perm_type_id');
116 115
         }])->get();
117 116
         $perms = UserRolePermissionTypes::all();
Please login to merge, or discard this patch.