Completed
Push — staging ( c6d71d...0efaef )
by John
04:53 queued 02:26
created
app/Http/Controllers/FavoritesController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
     {
22 22
         $request['user_id'] = Auth::user()->id;
23 23
         $favorite = Favorite::where('user_id', Auth::user()->id)
24
-                       ->where('video_id', $request->input('video_id'))
25
-                       ->get();
24
+                        ->where('video_id', $request->input('video_id'))
25
+                        ->get();
26 26
 
27 27
         if ($favorite->count() === 0) {
28 28
             return $this->videoRepository->favoriteVideo($request->all());
Please login to merge, or discard this patch.
app/Http/Repositories/VideoRepository.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,8 +100,8 @@
 block discarded – undo
100 100
     public function unfavoriteVideo($request)
101 101
     {
102 102
         Favorite::where('user_id', Auth::user()->id)
103
-              ->where('video_id', $request['video_id'])
104
-              ->delete();
103
+                ->where('video_id', $request['video_id'])
104
+                ->delete();
105 105
 
106 106
         return [
107 107
             'status' => 200,
Please login to merge, or discard this patch.
app/Http/Repositories/UserRepository.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     public function authenticateUser($user, $provider)
22 22
     {
23 23
         if (User::where('provider_id', $user->id)->count() === 0) {
24
-             $userData = [
24
+                $userData = [
25 25
                 'name' => $user->name,
26 26
                 'username' => $user->nickname,
27 27
                 'email' => $user->email,
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
                 'provider_id' => $user->id,
30 30
                 'provider' => $provider,
31 31
                 'about' => $provider === 'twitter' ? $user->user['description'] : '',
32
-             ];
32
+                ];
33 33
 
34
-             User::create($userData);
34
+                User::create($userData);
35 35
         }
36 36
 
37 37
         return User::where('provider_id', $user->id)->first();
Please login to merge, or discard this patch.