Completed
Pull Request — staging (#34)
by John
02:26
created
app/Http/Controllers/Auth/AuthController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
      *
97 97
      * @codeCoverageIgnore
98 98
      *
99
-     * @return Response
99
+     * @return \Illuminate\Http\RedirectResponse
100 100
      */
101 101
     public function handleProviderCallback($provider)
102 102
     {
Please login to merge, or discard this patch.
app/Http/Controllers/DashboardController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * to
29 29
      *
30 30
      * @param  VideoRequest $request Request
31
-     * @return Redirect to create page
31
+     * @return \Illuminate\Http\RedirectResponse to create page
32 32
      */
33 33
     public function store(VideoRequest $request)
34 34
     {
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      *
66 66
      * @param  VideoRequest $request  Validation request
67 67
      * @param  integer       $id      Video Id
68
-     * @return Redirect               Redirect to episode page
68
+     * @return \Illuminate\Http\RedirectResponse               Redirect to episode page
69 69
      */
70 70
     public function update(VideoRequest $request, $id)
71 71
     {
Please login to merge, or discard this patch.
app/Http/Controllers/UserController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      * upload an avatar to cloudinary and return url.
47 47
      *
48 48
      * @param  Request $request Request from user
49
-     * @return Object           redirect to profile page
49
+     * @return \Illuminate\Http\RedirectResponse           redirect to profile page
50 50
      */
51 51
     public function updateAvatar(Request $request)
52 52
     {
Please login to merge, or discard this patch.
app/Http/Repositories/UserRepository.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     /**
41 41
      * upload an avatar to cloudinary and return url
42 42
      *
43
-     * @param  Request $request Request from user
43
+     * @param  \Illuminate\Http\Request $request Request from user
44 44
      * @return string           Cloudinary Url
45 45
      */
46 46
     public function uploadAvatar($request)
Please login to merge, or discard this 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.
app/Http/Repositories/VideoRepository.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -13,6 +13,7 @@
 block discarded – undo
13 13
     /**
14 14
      * Get a single video
15 15
      *
16
+     * @param integer $id
16 17
      * @return void
17 18
      */
18 19
     public function getVideo($id)
Please login to merge, or discard this 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/Video.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     /**
17 17
      * A video belongs to one user.
18 18
      *
19
-     * @return Object
19
+     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
20 20
      */
21 21
     public function user()
22 22
     {
@@ -27,7 +27,6 @@  discard block
 block discarded – undo
27 27
      * Get a list of categories associated with
28 28
      * this video
29 29
      *
30
-     * @param  [type] $value [description]
31 30
      * @return array        Associated categories
32 31
      */
33 32
     public function getCategoryListAttribute()
@@ -48,7 +47,7 @@  discard block
 block discarded – undo
48 47
     /**
49 48
      * A video can have many comments.
50 49
      *
51
-     * @return Object
50
+     * @return \Illuminate\Database\Eloquent\Relations\HasMany
52 51
      */
53 52
     public function comments()
54 53
     {
@@ -58,7 +57,7 @@  discard block
 block discarded – undo
58 57
     /**
59 58
      * A video can have many favorites
60 59
      *
61
-     * @return Object
60
+     * @return \Illuminate\Database\Eloquent\Relations\HasMany
62 61
      */
63 62
     public function favorites()
64 63
     {
Please login to merge, or discard this patch.
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.