Test Failed
Push — vue-test ( 225db2...556454 )
by Tony
04:05
created
app/Http/Middleware/Access.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@
 block discarded – undo
20 20
         if (Auth::guard($guard)->guest()) {
21 21
             if ($request->ajax() || $request->wantsJson()) {
22 22
                 return response('Unauthorized.', 401);
23
-            } else {
23
+            }
24
+            else {
24 25
                 return redirect()->guest('login');
25 26
             }
26 27
         }
Please login to merge, or discard this patch.
app/Console/Commands/AddUser.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,14 +54,16 @@  discard block
 block discarded – undo
54 54
         // set realname
55 55
         if ($this->option('realname')) {
56 56
             $user->realname = $this->option('realname');
57
-        } else {
57
+        }
58
+        else {
58 59
             $user->realname = $this->ask('Real Name');
59 60
         }
60 61
 
61 62
         // set email
62 63
         if ($this->option('email')) {
63 64
             $user->email = $this->option('email');
64
-        } else {
65
+        }
66
+        else {
65 67
             $user->email = $this->ask('Email');
66 68
         }
67 69
 
@@ -77,14 +79,16 @@  discard block
 block discarded – undo
77 79
         // set password
78 80
         if ($this->argument('password')) {
79 81
             $user->password = $this->argument('password');
80
-        } else {
82
+        }
83
+        else {
81 84
             $user->password = $this->secret('Password');
82 85
         }
83 86
 
84 87
         // save user
85 88
         if ($user->save()) {
86 89
             $this->info('User '.$user->username.' created.');
87
-        } else {
90
+        }
91
+        else {
88 92
             $this->error('Failed to create user '.$user->username);
89 93
         }
90 94
     }
Please login to merge, or discard this patch.
app/DataTables/Alerting/LogsDataTable.php 1 patch
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -46,7 +46,8 @@  discard block
 block discarded – undo
46 46
             ->editColumn('rule.name', function ($log) {
47 47
                 if ($log->rule_id) {
48 48
                     return '<a href="'.url("alerting/rules/".$log->rule_id).'">'.$log->rule->name.'</a>';
49
-                } else {
49
+                }
50
+                else {
50 51
                     return trans('alerting.general.text.invalid');
51 52
                 }
52 53
             })
@@ -58,19 +59,23 @@  discard block
 block discarded – undo
58 59
                     $icon   = 'check';
59 60
                     $colour = 'green';
60 61
                     $text   = trans('alerting.logs.text.ok');
61
-                } elseif ($log->state == 1) {
62
+                }
63
+                elseif ($log->state == 1) {
62 64
                     $icon   = 'times';
63 65
                     $colour = 'red';
64 66
                     $text   = trans('alerting.logs.text.fail');
65
-                } elseif ($log->state == 2) {
67
+                }
68
+                elseif ($log->state == 2) {
66 69
                     $icon   = 'volume-off';
67 70
                     $colour = 'lightgrey';
68 71
                     $text   = trans('alerting.logs.text.ack');
69
-                } elseif ($log->state == 3) {
72
+                }
73
+                elseif ($log->state == 3) {
70 74
                     $icon   = 'arrow-down';
71 75
                     $colour = 'orange';
72 76
                     $text   = trans('alerting.logs.text.worse');
73
-                } elseif ($log->state == 4) {
77
+                }
78
+                elseif ($log->state == 4) {
74 79
                     $icon   = 'arrow-up';
75 80
                     $colour = 'khaki';
76 81
                     $text   = trans('alerting.logs.text.better');
Please login to merge, or discard this patch.
app/DataTables/Alerting/AlertsDataTable.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,8 @@
 block discarded – undo
60 60
                 if ($alert->state == 2) {
61 61
                     $btn  = "btn-danger";
62 62
                     $icon = "volume-off";
63
-                } else {
63
+                }
64
+                else {
64 65
                     $btn  = "btn-success";
65 66
                     $icon = "volume-up";
66 67
                 }
Please login to merge, or discard this patch.
app/Http/Middleware/AdminOnly.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,8 @@
 block discarded – undo
19 19
         if (!Auth::guard($guard)->user()->isAdmin()) {
20 20
             if ($request->ajax() || $request->wantsJson()) {
21 21
                 return response(trans('general.text.unauthorized'), 401);
22
-            } else {
22
+            }
23
+            else {
23 24
                 //FIXME: Errors not working
24 25
                 return redirect('/')->withErrors(['msg', trans('general.text.unauthorized')]);
25 26
             }
Please login to merge, or discard this patch.
app/Http/Requests/UpdateUserRequest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,8 @@
 block discarded – undo
59 59
                 $rules['current_password'] = 'required|password:'.$user_id;
60 60
             }
61 61
             return $rules;
62
-        } else {
62
+        }
63
+        else {
63 64
             $user = User::find($this->input('user_id'));
64 65
             return ['username'    => 'required|max:20|unique:users,username,'.$user->username.',username',
65 66
                     'email'       => 'required|email|max:60|unique:users,email,'.$user->username.',username',
Please login to merge, or discard this patch.
app/Http/Controllers/NotificationController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,8 @@
 block discarded – undo
23 23
             $page = '';
24 24
             $button = 'Notifications';
25 25
             $bg = 'maroon';
26
-        } else {
26
+        }
27
+        else {
27 28
             $page = 'archive';
28 29
             $button = 'Archive';
29 30
             $bg = 'blue';
Please login to merge, or discard this patch.
app/Http/Controllers/UserController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,8 @@
 block discarded – undo
108 108
         $user->update($request->all());
109 109
         if ($request->input('update') == 'password') {
110 110
             $message = trans('user.text.pwdupdated');
111
-        } else {
111
+        }
112
+        else {
112 113
             $message = trans('user.text.updated', ['username' => $user->username]);
113 114
         }
114 115
 
Please login to merge, or discard this patch.
app/Http/Controllers/SettingsController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,8 @@
 block discarded – undo
70 70
         if ($type == 'settings-value') {
71 71
             Settings::set($key, $value);
72 72
             return response('OK', 200);
73
-        } elseif ($type == 'settings-array') {
73
+        }
74
+        elseif ($type == 'settings-array') {
74 75
             $current = Settings::get($key);
75 76
 
76 77
             // remove entries with missing indexes
Please login to merge, or discard this patch.