Passed
Push — master ( 659a40...2f299a )
by Ron
02:05 queued 10s
created
app/Files.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
app/Navbar.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
app/User.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,8 +82,7 @@
 block discarded – undo
82 82
                     return true;
83 83
                 }
84 84
             }
85
-        }
86
-        else
85
+        } else
87 86
         {
88 87
             if($this->hasRole($roles))
89 88
             {
Please login to merge, or discard this patch.
app/Http/Controllers/CustomerController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
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.'%')
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,8 +38,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
app/Http/Controllers/TechTipsController.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -60,8 +60,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
app/Http/Controllers/UserController.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,8 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
app/Console/Commands/BackupApplication.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,7 @@
 block discarded – undo
42 42
             if($i)
43 43
             {
44 44
                 $backupName = $backupBase.'('.$i.')';
45
-            }
46
-            else
45
+            } else
47 46
             {
48 47
                 $backupName = $backupBase;
49 48
             }
Please login to merge, or discard this patch.
app/Http/Controllers/DashboardController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.