Completed
Pull Request — master (#86)
by
unknown
03:11
created
app/Http/Controllers/Admin/AlbumReviewController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 use WITR\Http\Controllers\Controller;
5 5
 use WITR\AlbumReview;
6 6
 use File;
7
-use Carbon\Carbon;
8 7
 
9 8
 class AlbumReviewController extends Controller {
10 9
 
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/DJController.php 2 patches
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -6,12 +6,7 @@
 block discarded – undo
6 6
 use WITR\Http\Controllers\Controller;
7 7
 use WITR\DJ;
8 8
 use WITR\TimeSlot;
9
-use Input;
10 9
 use File;
11
-use Hash;
12
-
13
-use Illuminate\Http\Request;
14
-use Illuminate\Contracts\Auth\PasswordBroker;
15 10
 
16 11
 class DJController extends Controller {
17 12
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	{
47 47
 		$dj = new DJ($request->all());
48 48
 
49
-		if($request->hasFile('picture'))
49
+		if ($request->hasFile('picture'))
50 50
 		{
51 51
 			$file = $request->file('picture');
52 52
 			$dj->uploadFile('picture', $file);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 		$dj = DJ::findOrFail($id);
87 87
 		$dj->fill($request->except(['picture']));
88 88
 
89
-		if($request->hasFile('picture'))
89
+		if ($request->hasFile('picture'))
90 90
 		{
91 91
 			$file = $request->file('picture');
92 92
 			$dj->uploadFile('picture', $file);
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 		}
112 112
 
113 113
 		$dj = DJ::findOrFail($id);
114
-		File::delete(public_path().'/img/djs/'.$dj->picture);
114
+		File::delete(public_path() . '/img/djs/' . $dj->picture);
115 115
 		DJ::destroy($id);
116 116
 		return redirect()->route('admin.djs.index')
117 117
 			->with('success', 'DJ Deleted!');
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/EventController.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -4,11 +4,8 @@
 block discarded – undo
4 4
 use WITR\Http\Controllers\Controller;
5 5
 use WITR\Event;
6 6
 use Carbon\Carbon;
7
-use Input;
8 7
 use File;
9 8
 
10
-use Illuminate\Http\Request;
11
-
12 9
 class EventController extends Controller {
13 10
 
14 11
 	public function __construct()
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
 	public function delete($id)
86 86
 	{
87 87
 		$event = Event::findOrFail($id);
88
-		File::delete(public_path().'/img/events/'.$event->picture);
88
+		File::delete(public_path() . '/img/events/' . $event->picture);
89 89
 		Event::destroy($id);
90 90
 		return redirect()->route('admin.events.index')
91 91
 			->with('success', 'Event Deleted!');
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/ShowController.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -3,11 +3,7 @@
 block discarded – undo
3 3
 use WITR\Http\Requests\Admin\Show as Requests;
4 4
 use WITR\Http\Controllers\Controller;
5 5
 use WITR\Show;
6
-use Input;
7 6
 use File;
8
-use Carbon\Carbon;
9
-
10
-use Illuminate\Http\Request;
11 7
 
12 8
 class ShowController extends Controller {
13 9
 
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/SystemSettingController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,9 +1,7 @@
 block discarded – undo
1 1
 <?php namespace WITR\Http\Controllers\Admin;
2 2
 
3
-use WITR\Http\Requests;
4 3
 use WITR\Http\Controllers\Controller;
5 4
 use WITR\SystemSetting;
6
-
7 5
 use Illuminate\Http\Request;
8 6
 
9 7
 class SystemSettingController extends Controller {
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/UserController.php 2 patches
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -6,11 +6,7 @@
 block discarded – undo
6 6
 use WITR\Http\Controllers\Controller;
7 7
 use WITR\User;
8 8
 use WITR\Role;
9
-use Input;
10 9
 use File;
11
-use Hash;
12
-
13
-use Illuminate\Http\Request;
14 10
 use Illuminate\Contracts\Auth\PasswordBroker;
15 11
 
16 12
 class UserController extends Controller {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
 	public function delete($id)
102 102
 	{
103 103
 		$user = User::findOrFail($id);
104
-		File::delete(public_path().'/img/djs/'.$user->picture);
104
+		File::delete(public_path() . '/img/djs/' . $user->picture);
105 105
 		User::destroy($id);
106 106
 		return redirect()->route('admin.users.index')
107 107
 			->with('success', 'User Deleted!');
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/VideoController.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,9 +3,6 @@
 block discarded – undo
3 3
 use WITR\Http\Requests\Admin\Video as Requests;
4 4
 use WITR\Http\Controllers\Controller;
5 5
 use WITR\Video;
6
-use Input;
7
-
8
-use Illuminate\Http\Request;
9 6
 
10 7
 class VideoController extends Controller {
11 8
 
Please login to merge, or discard this patch.
app/Http/Controllers/AskDestlerController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,6 @@
 block discarded – undo
5 5
 use Illuminate\Contracts\Mail\Mailer;
6 6
 use WITR\SystemSetting;
7 7
 
8
-use Illuminate\Http\Request;
9
-
10 8
 class AskDestlerController extends Controller {
11 9
 
12 10
 	public function index()
Please login to merge, or discard this patch.
app/Http/Controllers/DJController.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php namespace WITR\Http\Controllers;
2 2
 
3
-use WITR\Http\Requests;
4 3
 use WITR\Http\Requests\DJ\TicketRequest;
5 4
 use WITR\Http\Controllers\Controller;
6 5
 use WITR\Services\IcecastReader;
@@ -9,8 +8,6 @@  discard block
 block discarded – undo
9 8
 use Illuminate\Contracts\Mail\Mailer;
10 9
 use WITR\SystemSetting;
11 10
 
12
-use Illuminate\Http\Request;
13
-
14 11
 class DJController extends Controller {
15 12
 
16 13
 	public function __construct()
Please login to merge, or discard this patch.