Completed
Push — misc ( 0b9c50...cfaf83 )
by Tony
02:41
created
app/Http/Middleware/Authenticate.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/DeleteUser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public function handle()
63 63
     {
64 64
         $user = $this->argument('user');
65
-        $user_list = User::select('username')->where('username', 'like', '%' . $user . '%')->orWhere('realname', 'like', '%' . $user . '%')->get();
65
+        $user_list = User::select('username')->where('username', 'like', '%'.$user.'%')->orWhere('realname', 'like', '%'.$user.'%')->get();
66 66
         $names = [];
67 67
 
68 68
         if (count($user_list) < 1) {
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         else {
79 79
             $name = $names[0];
80 80
         }
81
-        if ($this->confirm('Do you wish to remove ' . $name . '?')) {
81
+        if ($this->confirm('Do you wish to remove '.$name.'?')) {
82 82
             User::where('username', $name)->delete();
83 83
             $this->info('User deleted.');
84 84
         }
Please login to merge, or discard this patch.
app/Settings.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
      * Forget a key and all children
195 195
      * This cannot forget variables set in config.php
196 196
      *
197
-     * @param $key string Explicit key to forget
197
+     * @param string $key string Explicit key to forget
198 198
      */
199 199
     public function forget($key)
200 200
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         // Cannot remove from config
202 202
 
203 203
         $count = DbConfig::key($key)->count();
204
-        if($count == 1) {
204
+        if ($count == 1) {
205 205
             $this->flush($key);
206 206
         }
207 207
         else {
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
     {
261 261
         $var = $this->get($key);
262 262
 
263
-        if(is_array($var)) {
263
+        if (is_array($var)) {
264 264
             $this->forget($key);
265 265
             array_unshift($var, $value);
266 266
             $this->set($key, $var);
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
     public function push($key, $value)
282 282
     {
283 283
         $var = $this->get($key);
284
-        if(is_array($var)) {
284
+        if (is_array($var)) {
285 285
             $var[] = $value;
286 286
             $this->set($key, $var);
287 287
         }
Please login to merge, or discard this patch.