@@ -43,8 +43,7 @@ discard block |
||
43 | 43 | // Have a number; increment it |
44 | 44 | $base = $match[1]; |
45 | 45 | $number = intVal($match[2]); |
46 | - } |
|
47 | - else |
|
46 | + } else |
|
48 | 47 | { |
49 | 48 | // No number; add one |
50 | 49 | $base = $fileParts['filename']; |
@@ -71,8 +70,7 @@ discard block |
||
71 | 70 | Storage::delete($fileLink); |
72 | 71 | |
73 | 72 | Log::info('File Deleted', ['file_id' => $fileID, 'file_name' => $fileLink, 'user_id' => Auth::user()->user_id]); |
74 | - } |
|
75 | - catch(Exception $e) |
|
73 | + } catch(Exception $e) |
|
76 | 74 | { |
77 | 75 | return false; |
78 | 76 | } |
@@ -27,8 +27,7 @@ |
||
27 | 27 | $navBarSys[$item->sys_id]['category'] = $item->category; |
28 | 28 | $navBarSys[$item->sys_id]['name'] = $item->sys_name; |
29 | 29 | $navBarSys[$item->sys_id]['url'] = '/system/'.$item->category.'/'.urlencode($item->sys_name); |
30 | - } |
|
31 | - else |
|
30 | + } else |
|
32 | 31 | { |
33 | 32 | $navBarSub[$item->sys_id]['category'] = $item->category; |
34 | 33 | $navBarSub[$item->sys_id]['parent'] = $item->parent_id; |
@@ -82,8 +82,7 @@ |
||
82 | 82 | return true; |
83 | 83 | } |
84 | 84 | } |
85 | - } |
|
86 | - else |
|
85 | + } else |
|
87 | 86 | { |
88 | 87 | if($this->hasRole($roles)) |
89 | 88 | { |
@@ -55,8 +55,7 @@ |
||
55 | 55 | $q->where('sys_id', $request->system); |
56 | 56 | }) |
57 | 57 | ->get(); |
58 | - } |
|
59 | - else |
|
58 | + } else |
|
60 | 59 | { |
61 | 60 | $customerData = Customers::where('name', 'like', '%'.$request->customer.'%') |
62 | 61 | ->where('city', 'like', '%'.$request->city.'%') |
@@ -38,8 +38,7 @@ |
||
38 | 38 | if(config('app.debug')) |
39 | 39 | { |
40 | 40 | parent::report($exception); |
41 | - } |
|
42 | - else |
|
41 | + } else |
|
43 | 42 | { |
44 | 43 | Log::error('['.$exception->getCode().'] "'.$exception->getMessage().'" on line '.$exception->getTrace()[0]['line'].' of file '.$exception->getTrace()[0]['file']); |
45 | 44 | } |
@@ -60,8 +60,7 @@ discard block |
||
60 | 60 | $q->where('sys_id', $request->system); |
61 | 61 | }) |
62 | 62 | ->get(); |
63 | - } |
|
64 | - else |
|
63 | + } else |
|
65 | 64 | { |
66 | 65 | $tipData = TechTips::where('subject', 'like', '%'.$request->tipSearch.'%') |
67 | 66 | ->get(); |
@@ -118,8 +117,7 @@ discard block |
||
118 | 117 | 'sys_id' => $tag |
119 | 118 | ]); |
120 | 119 | } |
121 | - } |
|
122 | - else |
|
120 | + } else |
|
123 | 121 | { |
124 | 122 | TechTipSystems::create([ |
125 | 123 | 'tip_id' => $tipID, |
@@ -158,8 +156,7 @@ discard block |
||
158 | 156 | try |
159 | 157 | { |
160 | 158 | Mail::to($userList)->send(new newTechtip($tipData)); |
161 | - } |
|
162 | - catch(Exception $e) |
|
159 | + } catch(Exception $e) |
|
163 | 160 | { |
164 | 161 | report($e); |
165 | 162 | } |
@@ -285,8 +282,7 @@ discard block |
||
285 | 282 | 'sys_id' => $tag |
286 | 283 | ]); |
287 | 284 | } |
288 | - } |
|
289 | - else |
|
285 | + } else |
|
290 | 286 | { |
291 | 287 | TechTipSystems::create([ |
292 | 288 | 'tip_id' => $id, |
@@ -308,8 +304,7 @@ discard block |
||
308 | 304 | Files::deleteFile($file->file_id); |
309 | 305 | } |
310 | 306 | } |
311 | - } |
|
312 | - else |
|
307 | + } else |
|
313 | 308 | { |
314 | 309 | TechTipFiles::where('tip_id', $id)->delete(); |
315 | 310 | } |
@@ -43,8 +43,7 @@ discard block |
||
43 | 43 | if($role->role_id == 1 && Auth::user()->role_id != 1) |
44 | 44 | { |
45 | 45 | continue; |
46 | - } |
|
47 | - else |
|
46 | + } else |
|
48 | 47 | { |
49 | 48 | $roleArr[$role->role_id] = $role->name; |
50 | 49 | } |
@@ -94,8 +93,7 @@ discard block |
||
94 | 93 | try |
95 | 94 | { |
96 | 95 | Mail::to($request->email)->send(new InitializeUser($hash, $request->username, $request->first_name.' '.$request->last_name)); |
97 | - } |
|
98 | - catch(Exception $e) |
|
96 | + } catch(Exception $e) |
|
99 | 97 | { |
100 | 98 | report($e); |
101 | 99 | } |
@@ -203,8 +201,7 @@ discard block |
||
203 | 201 | if($role->role_id == 1 && Auth::user()->role_id != 1) |
204 | 202 | { |
205 | 203 | continue; |
206 | - } |
|
207 | - else |
|
204 | + } else |
|
208 | 205 | { |
209 | 206 | $roleArr[$role->role_id] = $role->name; |
210 | 207 | } |
@@ -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 | } |