Test Failed
Push — dev5 ( 2be149...544eb5 )
by Ron
15:57
created
app/Http/Middleware/CheckPasswordExpire.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
             if(Auth::user()->password_expires !== null)
26 26
             {
27 27
                 $passExp = new Carbon((Auth::user()->password_expires));
28
-                if(Carbon::now() > $passExp )
28
+                if(Carbon::now() > $passExp)
29 29
                 {
30 30
                     Log::notice('User ID-'.Auth::user()->user_id.' is being forced to change their password.');
31 31
                     $request->session()->flash('change_password', 'change_password');
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/AdminController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     //  Show the links for the selected user
56 56
     public function showLinks($id)
57 57
     {
58
-        $user     = User::find($id);
58
+        $user = User::find($id);
59 59
 
60 60
         Log::debug('Route '.Route::currentRouteName().' visited by User ID-'.Auth::user()->user_id);
61 61
         return view('admin.linkDetails', [
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         )->update(['value' => $request->passExpire]);
89 89
 
90 90
         //  If the setting is changing from never to xx days, update all users
91
-        if ($request->passExpire == 0) {
91
+        if($request->passExpire == 0) {
92 92
             User::whereNotNull('password_expires')->update([
93 93
                 'password_expires' => null
94 94
             ]);
@@ -101,9 +101,9 @@  discard block
 block discarded – undo
101 101
             ]);
102 102
         }
103 103
 
104
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by User ID-' . Auth::user()->user_id);
104
+        Log::debug('Route '.Route::currentRouteName().' visited by User ID-'.Auth::user()->user_id);
105 105
         Log::debug('Submitted Data - ', $request->toArray());
106
-        Log::notice('User Settings have been changed by User ID-' . Auth::user()->user_id);
106
+        Log::notice('User Settings have been changed by User ID-'.Auth::user()->user_id);
107 107
         return redirect()->back()->with('success', 'User Security Updated');
108 108
     }
109 109
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
             'name'        => $request->name,
163 163
             'description' => $request->description,
164 164
         ]);
165
-        foreach ($request->permissions as $perm)
165
+        foreach($request->permissions as $perm)
166 166
         {
167 167
             UserRolePermissions::create([
168 168
                 'role_id'      => $role->role_id,
Please login to merge, or discard this patch.