@@ -42,8 +42,7 @@ |
||
42 | 42 | if($i) |
43 | 43 | { |
44 | 44 | $backupName = $backupBase.'('.$i.')'; |
45 | - } |
|
46 | - else |
|
45 | + } else |
|
47 | 46 | { |
48 | 47 | $backupName = $backupBase; |
49 | 48 | } |
@@ -44,8 +44,7 @@ |
||
44 | 44 | { |
45 | 45 | $notification->delete(); |
46 | 46 | Log::info('Notification ID-'.$id.' deleted for User ID-'.Auth::user()->user_id); |
47 | - } |
|
48 | - else |
|
47 | + } else |
|
49 | 48 | { |
50 | 49 | Log::notice('Notification ID-'.$id.' not found for user ID-'.Auth::user()->user_id); |
51 | 50 | } |
@@ -36,8 +36,7 @@ discard block |
||
36 | 36 | { |
37 | 37 | $sysArr[$cat->name][] = $sys->name; |
38 | 38 | } |
39 | - } |
|
40 | - else |
|
39 | + } else |
|
41 | 40 | { |
42 | 41 | $sysArr[$cat->name] = null; |
43 | 42 | } |
@@ -122,8 +121,7 @@ discard block |
||
122 | 121 | Log::info('Test Email Successfully Sent to '.Auth::user()->email); |
123 | 122 | Mail::to(Auth::user()->email)->send(new TestEmail()); |
124 | 123 | return 'success'; |
125 | - } |
|
126 | - catch(Exception $e) |
|
124 | + } catch(Exception $e) |
|
127 | 125 | { |
128 | 126 | Log::notice('Test Email Failed. Message: '.$e); |
129 | 127 | $msg = '['.$e->getCode().'] "'.$e->getMessage().'" on line '.$e->getTrace()[0]['line'].' of file '.$e->getTrace()[0]['file']; |
@@ -186,8 +184,7 @@ discard block |
||
186 | 184 | User::whereNotNull('password_expires')->update([ |
187 | 185 | 'password_expires' => null |
188 | 186 | ]); |
189 | - } |
|
190 | - else |
|
187 | + } else |
|
191 | 188 | { |
192 | 189 | $newExpire = Carbon::now()->addDays($request->passExpire); |
193 | 190 | User::whereNull('password_expires')->update([ |
@@ -59,8 +59,7 @@ discard block |
||
59 | 59 | 'name' => $field |
60 | 60 | ]); |
61 | 61 | $id = $newField->data_type_id; |
62 | - } |
|
63 | - else |
|
62 | + } else |
|
64 | 63 | { |
65 | 64 | $id = $id->data_type_id; |
66 | 65 | } |
@@ -174,8 +173,7 @@ discard block |
||
174 | 173 | 'name' => $field |
175 | 174 | ]); |
176 | 175 | $id = $newField->data_type_id; |
177 | - } |
|
178 | - else |
|
176 | + } else |
|
179 | 177 | { |
180 | 178 | $id = $id->data_type_id; |
181 | 179 | } |