Completed
Push — staging ( 097c57...210fda )
by John
04:43 queued 02:21
created
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/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 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 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 2 patches
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.
app/Providers/AppServiceProvider.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Illuminate\Support\ServiceProvider;
6 6
 use Validator;
7
-use LearnParty\Category;
8 7
 
9 8
 class AppServiceProvider extends ServiceProvider
10 9
 {
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/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 LearnParty\User;
8 7
 use Auth;
9 8
 
Please login to merge, or discard this patch.