Completed
Branch staging (f9f9b2)
by John
06:57
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/CategoryController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace LearnParty\Http\Controllers;
4 4
 
5
-use Illuminate\Http\Request;
6
-use LearnParty\Http\Requests;
7 5
 use LearnParty\Category;
8 6
 
9 7
 class CategoryController extends Controller
Please login to merge, or discard this patch.
app/Http/Controllers/CommentController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace LearnParty\Http\Controllers;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-use LearnParty\Http\Requests;
7 6
 use Auth;
8 7
 
9 8
 class CommentController extends Controller
Please login to merge, or discard this patch.
app/Http/Controllers/DashboardController.php 3 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace LearnParty\Http\Controllers;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-use LearnParty\Http\Requests;
7 6
 use LearnParty\Http\Requests\VideoRequest;
8 7
 use LearnParty\Video;
9 8
 use LearnParty\Category;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $newVideo = Auth::user()->videos()->create($request->all());
38 38
         $newVideo->categories()->sync($request->input('category_list'));
39 39
 
40
-        return redirect('videos/' . $newVideo->id);
40
+        return redirect('videos/'.$newVideo->id);
41 41
     }
42 42
 
43 43
     /**
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $request->session()->flash('status', 'success');
83 83
         $request->session()->flash('message', 'Video successfully updated.');
84 84
 
85
-        return redirect('dashboard/videos/' . $id . '/edit');
85
+        return redirect('dashboard/videos/'.$id.'/edit');
86 86
     }
87 87
 
88 88
     /**
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         $videos = Video::whereIn('id', Auth::user()->favorites->lists('video_id')->toArray());
117 117
         $favorites = [];
118 118
 
119
-        $videos->each(function ($video, $Key) use (&$favorites) {
119
+        $videos->each(function($video, $Key) use (&$favorites) {
120 120
             $favorites[$video->id] = $video->favorites->count();
121 121
         });
122 122
 
Please login to merge, or discard this patch.
app/Http/Controllers/FavoritesController.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,7 @@
 block discarded – undo
3 3
 namespace LearnParty\Http\Controllers;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-use LearnParty\Http\Requests;
7 6
 use LearnParty\Favorite;
8
-use LearnParty\Video;
9 7
 use Auth;
10 8
 
11 9
 class FavoritesController extends Controller
Please login to merge, or discard this 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/Controllers/HomeController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace LearnParty\Http\Controllers;
4 4
 
5
-use LearnParty\Http\Requests;
6
-use Illuminate\Http\Request;
7 5
 use LearnParty\Video;
8 6
 
9 7
 class HomeController extends Controller
Please login to merge, or discard this patch.
app/Http/Controllers/UserController.php 2 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace LearnParty\Http\Controllers;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-use LearnParty\Http\Requests;
7 6
 use LearnParty\User;
8 7
 use Auth;
9 8
 
Please login to merge, or discard this patch.
app/Http/Controllers/VideoController.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -2,11 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace LearnParty\Http\Controllers;
4 4
 
5
-use Illuminate\Http\Request;
6
-use LearnParty\Http\Requests;
7 5
 use LearnParty\Video;
8
-use LearnParty\Comment;
9
-use LearnParty\User;
10 6
 
11 7
 class VideoController extends Controller
12 8
 {
Please login to merge, or discard this patch.
app/Http/Repositories/UserRepository.php 3 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.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,7 @@
 block discarded – undo
2 2
 
3 3
 namespace LearnParty\Http\Repositories;
4 4
 
5
-use Illuminate\Contracts\Filesystem\Filesystem;
6 5
 use LearnParty\User;
7
-use Storage;
8 6
 use Auth;
9 7
 use Cloudder;
10 8
 
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.