Completed
Branch staging (f9f9b2)
by John
06:57
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/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 2 patches
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 1 patch
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.
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 1 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.
app/Providers/AppServiceProvider.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      */
16 16
     public function boot()
17 17
     {
18
-        Validator::extend('youtube_url', function ($attribute, $value, $parameters, $validator) {
18
+        Validator::extend('youtube_url', function($attribute, $value, $parameters, $validator) {
19 19
 
20 20
             $urlParts = [
21 21
                 'scheme',
Please login to merge, or discard this patch.