Completed
Branch master (faec18)
by Travis
04:09
created
app/Http/Controllers/SnippetsController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@
 block discarded – undo
68 68
             'body' => 'required',
69 69
         ]);
70 70
 
71
-        $data = request()->only(['title', 'body', 'forked_id']);
72
-        $data['user_id'] = auth()->user()->id;
71
+        $data = request()->only([ 'title', 'body', 'forked_id' ]);
72
+        $data[ 'user_id' ] = auth()->user()->id;
73 73
 
74 74
         Snippet::create($data);
75 75
 
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/LoginController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
      */
35 35
     public function __construct()
36 36
     {
37
-        $this->middleware('guest', ['except' => 'logout']);
37
+        $this->middleware('guest', [ 'except' => 'logout' ]);
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/RegisterController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,10 +64,10 @@
 block discarded – undo
64 64
     protected function create(array $data)
65 65
     {
66 66
         return User::create([
67
-            'name' => $data['name'],
68
-            'username' => $data['username'],
69
-            'email' => $data['email'],
70
-            'password' => bcrypt($data['password']),
67
+            'name' => $data[ 'name' ],
68
+            'username' => $data[ 'username' ],
69
+            'email' => $data[ 'email' ],
70
+            'password' => bcrypt($data[ 'password' ]),
71 71
         ]);
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
app/Model.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,5 +6,5 @@
 block discarded – undo
6 6
 
7 7
 class Model extends Eloquent
8 8
 {
9
-    protected $guarded = [];
9
+    protected $guarded = [ ];
10 10
 }
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     protected function unauthenticated($request, AuthenticationException $exception)
58 58
     {
59 59
         if ($request->expectsJson()) {
60
-            return response()->json(['error' => 'Unauthenticated.'], 401);
60
+            return response()->json([ 'error' => 'Unauthenticated.' ], 401);
61 61
         }
62 62
 
63 63
         return redirect()->guest(route('login'));
Please login to merge, or discard this patch.