Test Failed
Push — vue-test ( ef2926 )
by Tony
12:13
created
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.
app/Http/Controllers/HomeController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,8 @@
 block discarded – undo
36 36
         if (Dashboard::find($request->route('dashboard_id'))) {
37 37
             $dash    = Api::be(auth()->user())->get('/api/dashboard/'.$request->route('dashboard_id'));
38 38
             $widgets = Api::be(auth()->user())->get('/api/widget');
39
-        } else {
39
+        }
40
+        else {
40 41
             return redirect()->route('home');
41 42
         }
42 43
         return view('home', ['dashboards' => $dashboards, 'request' => $request, 'dash_widgets' => $dash['widgets'], 'token' => $token, 'dash_details' => $dash['dashboard'], 'widgets' => $widgets]);
Please login to merge, or discard this patch.
app/Models/Notification.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,8 @@
 block discarded – undo
87 87
             $read->value = 1;
88 88
             $this->attribs()->save($read);
89 89
             return true;
90
-        } else {
90
+        }
91
+        else {
91 92
             return $this->attribs()->where('key', $name)->delete();
92 93
         }
93 94
     }
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,8 +74,8 @@
 block discarded – undo
74 74
     }
75 75
 
76 76
     /**
77
-     * @param $name
78
-     * @param $enabled
77
+     * @param string $name
78
+     * @param boolean $enabled
79 79
      * @return bool
80 80
      */
81 81
     private function setAttrib($name, $enabled)
Please login to merge, or discard this patch.
app/Models/DbConfig.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,8 @@
 block discarded – undo
115 115
             } catch (\Exception $e) {
116 116
                 if (str_contains($e->getMessage(), 'unserialize():')) {
117 117
                     return $value;
118
-                } else {
118
+                }
119
+                else {
119 120
                     throw $e;
120 121
                 }
121 122
             }
Please login to merge, or discard this patch.
app/Api/Controllers/Alerting/AlertsController.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -97,7 +97,8 @@
 block discarded – undo
97 97
         $alert->state  = $request->input('state');
98 98
         if ($alert->save()) {
99 99
             return $this->response->array(array('statusText' => 'OK'));
100
-        } else {
100
+        }
101
+        else {
101 102
             return $this->response->errorInternal();
102 103
         }
103 104
     }
Please login to merge, or discard this patch.
app/Api/Controllers/WidgetController.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -58,7 +58,8 @@  discard block
 block discarded – undo
58 58
         $user_widget->dashboard_id = $request->dashboard_id;
59 59
         if ($user_widget->save()) {
60 60
             return $this->response->array(array('statusText' => 'OK', 'user_widget_id' => $user_widget->user_widget_id));
61
-        } else {
61
+        }
62
+        else {
62 63
             return $this->response->errorInternal();
63 64
         }
64 65
     }
@@ -99,7 +100,8 @@  discard block
 block discarded – undo
99 100
         if ($request->input('settings')) {
100 101
             $users_widgets = UsersWidgets::find($id);
101 102
             $users_widgets->settings = json_encode($request->input('settings'));
102
-        } else {
103
+        }
104
+        else {
103 105
             $users_widgets = UsersWidgets::find($id);
104 106
             $users_widgets->col = $request->input('x');
105 107
             $users_widgets->row = $request->input('y');
@@ -109,7 +111,8 @@  discard block
 block discarded – undo
109 111
 
110 112
         if ($users_widgets->save()) {
111 113
             return $this->response->array(array('statusText' => 'OK'));
112
-        } else {
114
+        }
115
+        else {
113 116
             return $this->response->errorInternal();
114 117
         }
115 118
     }
@@ -124,7 +127,8 @@  discard block
 block discarded – undo
124 127
     {
125 128
         if (UsersWidgets::destroy($id)) {
126 129
             return $this->response->array(array('statusText' => 'OK'));
127
-        } else {
130
+        }
131
+        else {
128 132
             return $this->response->errorInternal();
129 133
         }
130 134
     }
Please login to merge, or discard this patch.
app/Console/Commands/MigrateSettings.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,8 @@
 block discarded – undo
93 93
 
94 94
         if ($this->option('dry-run')) {
95 95
             $this->warn(trans('commands.migrate-settings.nochanges'));
96
-        } else {
96
+        }
97
+        else {
97 98
             Settings::flush(); // clear the settings cache
98 99
             DbConfig::updateOrCreate(['config_name' => 'settings.migrated'], ['config_value' => true]);
99 100
         }
Please login to merge, or discard this patch.
app/Console/Commands/DeleteUser.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,8 @@
 block discarded – undo
74 74
         }
75 75
         if (count($names) > 1) {
76 76
             $name = $this->choice('Who would you like to remove?', $names);
77
-        } else {
77
+        }
78
+        else {
78 79
             $name = $names[0];
79 80
         }
80 81
         if ($this->confirm('Do you wish to remove '.$name.'?')) {
Please login to merge, or discard this patch.
app/Util.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,8 @@
 block discarded – undo
44 44
                 if (array_key_exists($key, $out)) {
45 45
                     // concat the values
46 46
                     $out[$key] = $out[$key].$arr[$key];
47
-                } else {
47
+                }
48
+                else {
48 49
                     $out[$key] = $arr[$key];
49 50
                 }
50 51
             }
Please login to merge, or discard this patch.