Completed
Pull Request — master (#86)
by
unknown
03:11
created
app/Http/Controllers/Admin/AlbumReviewController.php 2 patches
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.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,10 +36,10 @@
 block discarded – undo
36 36
 	}
37 37
 
38 38
 	/**
39
-	* Save the new Album Review.
40
-	*
41
-	*@return Response
42
-	*/
39
+	 * Save the new Album Review.
40
+	 *
41
+	 *@return Response
42
+	 */
43 43
 	public function create(Requests\CreateRequest $request)
44 44
 	{
45 45
 		$review = new AlbumReview($request->except('img_name'));
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/DJController.php 1 patch
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.
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.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@
 block discarded – undo
39 39
 	}
40 40
 
41 41
 	/**
42
-	* Save the new Event
43
-	*
44
-	* @return Response
45
-	*/
42
+	 * Save the new Event
43
+	 *
44
+	 * @return Response
45
+	 */
46 46
 	public function create(Requests\CreateRequest $request)
47 47
 	{
48 48
 		$input = $request->all();
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/ShowController.php 2 patches
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.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@
 block discarded – undo
39 39
 	}
40 40
 
41 41
 	/**
42
-	* Save the new Show.
43
-	*
44
-	*@return Response
45
-	*/
42
+	 * Save the new Show.
43
+	 *
44
+	 *@return Response
45
+	 */
46 46
 	public function create(Requests\CreateRequest $request)
47 47
 	{
48 48
 		$show = new Show($request->except(['show_picture', 'slider_picture']));
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/SystemSettingController.php 2 patches
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.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,12 +41,12 @@
 block discarded – undo
41 41
 			$value = $input['value_' . $setting->id];
42 42
 			$setting->value = $value;
43 43
 
44
-            $enabled_id = 'enabled_' . $setting->id;
45
-            if (array_key_exists($enabled_id, $input)) {
46
-                $setting->enabled = $input[$enabled_id];
47
-            } else {
48
-                $setting->enabled = 1;
49
-            }
44
+			$enabled_id = 'enabled_' . $setting->id;
45
+			if (array_key_exists($enabled_id, $input)) {
46
+				$setting->enabled = $input[$enabled_id];
47
+			} else {
48
+				$setting->enabled = 1;
49
+			}
50 50
 
51 51
 			$setting->save();
52 52
 		}
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.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 		$user->password = '';
53 53
 		$user->save();
54 54
 
55
-        $response = $this->passwords->sendResetLink($request->only('email'), function($m)
55
+		$response = $this->passwords->sendResetLink($request->only('email'), function($m)
56 56
 		{
57 57
 			$m->subject('Welcome to WITR!');
58 58
 		});
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/VideoController.php 2 patches
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.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
 	}
38 38
 
39 39
 	/**
40
-	* Save the new eboard position.
41
-	*
42
-	*@return Response
43
-	*/
40
+	 * Save the new eboard position.
41
+	 *
42
+	 *@return Response
43
+	 */
44 44
 	public function create(Requests\CreateRequest $request)
45 45
 	{
46 46
 		$input = $request->all();
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.