Test Setup Failed
Push — master ( 18aad0...79eeb7 )
by Marcel
05:40
created
app/Events/GameView.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,7 @@
 block discarded – undo
5 5
 use Illuminate\Broadcasting\Channel;
6 6
 use Illuminate\Queue\SerializesModels;
7 7
 use Illuminate\Broadcasting\PrivateChannel;
8
-use Illuminate\Broadcasting\PresenceChannel;
9 8
 use Illuminate\Broadcasting\InteractsWithSockets;
10
-use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
11 9
 
12 10
 class GameView
13 11
 {
Please login to merge, or discard this patch.
app/Events/Obyx.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -5,9 +5,7 @@
 block discarded – undo
5 5
 use Illuminate\Broadcasting\Channel;
6 6
 use Illuminate\Queue\SerializesModels;
7 7
 use Illuminate\Broadcasting\PrivateChannel;
8
-use Illuminate\Broadcasting\PresenceChannel;
9 8
 use Illuminate\Broadcasting\InteractsWithSockets;
10
-use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
11 9
 
12 10
 class Obyx
13 11
 {
Please login to merge, or discard this patch.
app/Exceptions/Handler.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Exception;
6 6
 use Illuminate\Auth\AuthenticationException;
7 7
 use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
8
-use Intervention\Image\Exception\NotFoundException;
9 8
 use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
10 9
 use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
11 10
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,9 +47,9 @@
 block discarded – undo
47 47
      */
48 48
     public function render($request, Exception $exception)
49 49
     {
50
-        if($exception instanceof NotFoundHttpException){
50
+        if ($exception instanceof NotFoundHttpException) {
51 51
             return response()->view('errors.404', [], 404);
52
-        }elseif($exception instanceof AccessDeniedHttpException){
52
+        }elseif ($exception instanceof AccessDeniedHttpException) {
53 53
             return response()->view('errors.403', [], 403);
54 54
         }
55 55
         return parent::render($request, $exception);
Please login to merge, or discard this patch.
app/Http/Controllers/Api/v1/GameController.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace App\Http\Controllers\Api\v1;
4 4
 
5 5
 use App\Models\Game;
6
-use Carbon\Carbon;
7
-use Illuminate\Http\Request;
8 6
 use App\Http\Controllers\Controller;
9 7
 
10 8
 class GameController extends Controller
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 class GameController extends Controller
11 11
 {
12
-    public function index(){
12
+    public function index() {
13 13
         return Game::select([
14 14
             'id',
15 15
             'title',
@@ -18,13 +18,13 @@  discard block
 block discarded – undo
18 18
             ->get();
19 19
     }
20 20
 
21
-    public function show($id){
21
+    public function show($id) {
22 22
         $game = Game::with('developers', 'user', 'maker', 'screenshots', 'comments')->whereId($id)->first();
23 23
 
24 24
         return $game;
25 25
     }
26 26
 
27
-    public function show_app(){
27
+    public function show_app() {
28 28
         $games = Game::with('developers', 'user', 'maker', 'screenshots')->orderBy('created_at')->limit(25)->get();
29 29
 
30 30
         $jason = [
Please login to merge, or discard this patch.
app/Http/Controllers/Api/v1/TakoController.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 App\Http\Controllers\Api\v1;
4 4
 
5 5
 use App\Models\GamesFile;
6
-use Illuminate\Http\Request;
7 6
 use App\Http\Controllers\Controller;
8 7
 
9 8
 class TakoController extends Controller
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@
 block discarded – undo
8 8
 
9 9
 class TakoController extends Controller
10 10
 {
11
-    public function filelist(){
12
-        $list = GamesFile::with('gamefiletype', 'game')->get();//->take(5);
11
+    public function filelist() {
12
+        $list = GamesFile::with('gamefiletype', 'game')->get(); //->take(5);
13 13
 
14 14
         return $list;
15 15
     }
Please login to merge, or discard this patch.
app/Http/Controllers/AutocompleteController.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace App\Http\Controllers;
4 4
 
5 5
 use App\Models\User;
6
-use Illuminate\Http\Request;
7
-use Illuminate\Support\Facades\Input;
8 6
 use App\Models\Developer;
9 7
 
10 8
 class AutocompleteController extends Controller
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
 
10 10
 class AutocompleteController extends Controller
11 11
 {
12
-    public function developer($term){
12
+    public function developer($term) {
13 13
         $result = array();
14 14
 
15 15
         //$devs = Developer::whereName($term)->get();
@@ -18,14 +18,14 @@  discard block
 block discarded – undo
18 18
             ->where('developer.name', 'like', '%'.$term.'%')
19 19
             ->get();
20 20
 
21
-        foreach ($devs as $dev){
21
+        foreach ($devs as $dev) {
22 22
             $result[] = ['id' => $dev->id, 'value' => $dev->name];
23 23
         }
24 24
 
25 25
         return \Response::json($result);
26 26
     }
27 27
 
28
-    public function game($term){
28
+    public function game($term) {
29 29
         $result = array();
30 30
 
31 31
         $games = \DB::table('games')
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
             ->orWhere('subtitle', 'like', '%'.$term.'%')
39 39
             ->get();
40 40
 
41
-        foreach($games as $g){
42
-            if(is_null($g->subtitle) || $g->subtitle == ''){
41
+        foreach ($games as $g) {
42
+            if (is_null($g->subtitle) || $g->subtitle == '') {
43 43
                 $result[] = ['id' => $g->id, 'value' => $g->title];
44
-            }else{
44
+            }else {
45 45
                 $result[] = ['id' => $g->id, 'value' => $g->title.' -=- '.$g->subtitle];
46 46
             }
47 47
 
@@ -50,28 +50,28 @@  discard block
 block discarded – undo
50 50
         return \Response::json($result);
51 51
     }
52 52
 
53
-    public function faqcat($term){
53
+    public function faqcat($term) {
54 54
         $result = array();
55 55
 
56 56
         //$devs = Developer::whereName($term)->get();
57 57
         $devs = \DB::table('faq')
58
-            ->select(['id','cat'])
58
+            ->select(['id', 'cat'])
59 59
             ->where('faq.cat', 'like', '%'.$term.'%')
60 60
             ->groupBy('faq.cat')
61 61
             ->get();
62 62
 
63
-        foreach ($devs as $dev){
63
+        foreach ($devs as $dev) {
64 64
             $result[] = ['id' => $dev->id, 'value' => $dev->cat];
65 65
         }
66 66
 
67 67
         return \Response::json($result);
68 68
     }
69 69
 
70
-    public function awardpage($term){
70
+    public function awardpage($term) {
71 71
         $result = array();
72 72
         $aw = \DB::table('award_pages')->get();
73 73
 
74
-        foreach ($aw as $item){
74
+        foreach ($aw as $item) {
75 75
             $result[] = [
76 76
                 'id' => $item->id,
77 77
                 'value' => $item->title
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
         return \Response::json($result);
82 82
     }
83 83
 
84
-    public function awardcat($term){
84
+    public function awardcat($term) {
85 85
         $result = array();
86 86
         $aw = \DB::table('award_cats')->get();
87 87
 
88
-        foreach ($aw as $item){
88
+        foreach ($aw as $item) {
89 89
             $result[] = [
90 90
                 'id' => $item->id,
91 91
                 'value' => $item->title
@@ -95,11 +95,11 @@  discard block
 block discarded – undo
95 95
         return \Response::json($result);
96 96
     }
97 97
 
98
-    public function awardsubcat($term){
98
+    public function awardsubcat($term) {
99 99
         $result = array();
100 100
         $aw = \DB::table('award_subcats')->get();
101 101
 
102
-        foreach ($aw as $item){
102
+        foreach ($aw as $item) {
103 103
             $result[] = [
104 104
                 'id' => $item->id,
105 105
                 'value' => $item->title
@@ -109,11 +109,11 @@  discard block
 block discarded – undo
109 109
         return \Response::json($result);
110 110
     }
111 111
 
112
-    public function user($term){
112
+    public function user($term) {
113 113
         $result = array();
114 114
         $users = User::where('name', 'like', '%'.$term.'%')->get();
115 115
 
116
-        foreach ($users as $user){
116
+        foreach ($users as $user) {
117 117
             $result[] = [
118 118
                 'id' => $user->id,
119 119
                 'value' => $user->name,
Please login to merge, or discard this patch.
app/Http/Controllers/BoardController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use App\Models\BoardThread;
9 9
 use Carbon\Carbon;
10 10
 use Illuminate\Http\Request;
11
-use Illuminate\Pagination\Paginator;
12 11
 use Illuminate\Support\Facades\Input;
13 12
 
14 13
 class BoardController extends Controller
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 
14 14
 class BoardController extends Controller
15 15
 {
16
-    public function index(){
16
+    public function index() {
17 17
         $cats = BoardCat::with('last_user', 'threads')->orderBy('order')->get();
18 18
 
19 19
         return view('board.index', [
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         ]);
22 22
     }
23 23
 
24
-    public function show_cat($catid){
24
+    public function show_cat($catid) {
25 25
         $thr = BoardThread::with('user', 'cat', 'last_user', 'posts')
26 26
             ->whereCatId($catid)
27 27
             ->orderBy('board_threads.pinned', 'desc')
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         ]);
35 35
     }
36 36
 
37
-    public function create_cat(){
37
+    public function create_cat() {
38 38
 
39 39
         $cats = \DB::table('board_cats')
40 40
             ->select([
@@ -53,12 +53,12 @@  discard block
 block discarded – undo
53 53
         ]);
54 54
     }
55 55
 
56
-    public function order_cat($catid, $direction){
57
-        if($direction == 'up'){
56
+    public function order_cat($catid, $direction) {
57
+        if ($direction == 'up') {
58 58
             \DB::table('board_cats')
59 59
                 ->where('id', '=', $catid)
60 60
                 ->increment('order');
61
-        }else{
61
+        }else {
62 62
             \DB::table('board_cats')
63 63
                 ->where('id', '=', $catid)
64 64
                 ->decrement('order');
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         return redirect()->action('BoardController@create_cat');
68 68
     }
69 69
 
70
-    public function store_cat(Request $request){
70
+    public function store_cat(Request $request) {
71 71
         $this->validate($request, [
72 72
             'name' => 'required',
73 73
             'desc' => 'required',
@@ -83,11 +83,11 @@  discard block
 block discarded – undo
83 83
         return redirect()->action('BoardController@create_cat');
84 84
     }
85 85
 
86
-    public function show_thread($threadid){
86
+    public function show_thread($threadid) {
87 87
         $posts = BoardPost::with('user', 'thread', 'cat')->whereThreadId($threadid)->orderBy('id')->paginate(25);
88
-        if(!Input::get('page')){
88
+        if (!Input::get('page')) {
89 89
            return redirect('board/thread/'.$threadid.'?page='.$posts->lastPage());
90
-        }else{
90
+        }else {
91 91
             return view('board.threads.show', [
92 92
                 'posts' => $posts,
93 93
             ]);
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
     }
98 98
 
99
-    public function store_thread(Request $request){
99
+    public function store_thread(Request $request) {
100 100
         $date = Carbon::now();
101 101
 
102 102
         $threadid = \DB::table('board_threads')->insertGetId([
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         return redirect()->action('BoardController@show_thread', [$threadid]);
125 125
     }
126 126
 
127
-    public function store_post(Request $request, $threadid){
127
+    public function store_post(Request $request, $threadid) {
128 128
         $this->validate($request, [
129 129
             'catid' => 'required',
130 130
             'message' => 'required',
@@ -162,11 +162,11 @@  discard block
 block discarded – undo
162 162
         return redirect()->to($url);
163 163
     }
164 164
 
165
-    public function thread_close_switch($id, $state){
166
-        if(\Auth::check()){
167
-            if(\Auth::user()->can('mod-threads')){
168
-                if(is_numeric($id)){
169
-                    if($state == 1 || $state == 0){
165
+    public function thread_close_switch($id, $state) {
166
+        if (\Auth::check()) {
167
+            if (\Auth::user()->can('mod-threads')) {
168
+                if (is_numeric($id)) {
169
+                    if ($state == 1 || $state == 0) {
170 170
                         \DB::table('board_threads')
171 171
                             ->where('id', '=', $id)
172 172
                             ->update([
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
         return redirect()->action('BoardController@show_thread', $id);
180 180
     }
181 181
 
182
-    public function post_edit($threadid, $postid){
182
+    public function post_edit($threadid, $postid) {
183 183
         $post = BoardPost::whereId($postid)->first();
184 184
 
185 185
         return view('board.post.edit', [
@@ -187,8 +187,8 @@  discard block
 block discarded – undo
187 187
         ]);
188 188
     }
189 189
 
190
-    public function post_update(Request $request, $threadid, $postid){
191
-        if(\Auth::check()){
190
+    public function post_update(Request $request, $threadid, $postid) {
191
+        if (\Auth::check()) {
192 192
             $this->validate($request, [
193 193
                 'thread_id' => 'required',
194 194
                 'post_id' => 'required',
Please login to merge, or discard this patch.
app/Http/Controllers/DeveloperController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Http\Controllers;
4 4
 
5
-use App\Models\Game;
6 5
 use App\Models\GamesDeveloper;
7 6
 use Illuminate\Http\Request;
8 7
 
Please login to merge, or discard this patch.
app/Http/Controllers/EventController.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use App\Models\EventSetting;
7 7
 use Illuminate\Http\Request;
8 8
 use Illuminate\Support\Facades\Input;
9
-use Illuminate\Validation\Rules\In;
10 9
 
11 10
 class EventController extends Controller
12 11
 {
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 {
13 13
     //-------------------------------------------------
14 14
     // Events
15
-    public function index(){
15
+    public function index() {
16 16
         $events = Event::orderBy('start_date', 'desc')->get();
17 17
 
18 18
         return view('events.index', [
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         ]);
21 21
     }
22 22
 
23
-    public function show($id){
23
+    public function show($id) {
24 24
         $event = Event::whereId($id)->first();
25 25
 
26 26
         return view('events.show', [
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
         ]);
29 29
     }
30 30
 
31
-    public function create(){
31
+    public function create() {
32 32
         return view('events.create');
33 33
     }
34 34
 
35
-    public function store(Request $request){
35
+    public function store(Request $request) {
36 36
         dd($request);
37 37
         $this->validate($request, [
38 38
             'title' => 'required',
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
         $es->reg_price = $request->get('price');
59 59
         $es->reg_start_date = $request->get('reg_start');
60 60
         $es->reg_end_date = $request->get('reg_end');
61
-        if($request->get('reg_allowed') == "on"){
61
+        if ($request->get('reg_allowed') == "on") {
62 62
             $es->reg_allowed = 1;
63
-        }else{
63
+        }else {
64 64
             $es->reg_allowed = 0;
65 65
         }
66 66
         $es->save();
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         return redirect()->action('EventController@show', $e->id);
69 69
     }
70 70
 
71
-    public function edit($id){
71
+    public function edit($id) {
72 72
         $event = Event::whereId($id)->first();
73 73
 
74 74
         return view('events.edit', [
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         ]);
77 77
     }
78 78
 
79
-    public function update($id){
79
+    public function update($id) {
80 80
         $e = Event::whereId($id)->first();
81 81
         $e->title = Input::get('title');
82 82
         $e->description = Input::get('desc');
@@ -94,53 +94,53 @@  discard block
 block discarded – undo
94 94
 
95 95
     //-------------------------------------------------
96 96
     // Meetings
97
-    public function meeting_index($eventid){
97
+    public function meeting_index($eventid) {
98 98
 
99 99
     }
100 100
 
101
-    public function meeting_show($id){
101
+    public function meeting_show($id) {
102 102
 
103 103
     }
104 104
 
105
-    public function meeting_create(){
105
+    public function meeting_create() {
106 106
 
107 107
     }
108 108
 
109
-    public function meeting_store(){
109
+    public function meeting_store() {
110 110
 
111 111
     }
112 112
 
113
-    public function meeting_edit($id){
113
+    public function meeting_edit($id) {
114 114
 
115 115
     }
116 116
 
117
-    public function meeting_update($id){
117
+    public function meeting_update($id) {
118 118
 
119 119
     }
120 120
 
121 121
     //-------------------------------------------------
122 122
     // Pictures
123
-    public function picture_index(){
123
+    public function picture_index() {
124 124
 
125 125
     }
126 126
 
127
-    public function picture_show($id){
127
+    public function picture_show($id) {
128 128
 
129 129
     }
130 130
 
131
-    public function picture_create(){
131
+    public function picture_create() {
132 132
 
133 133
     }
134 134
 
135
-    public function picture_store(){
135
+    public function picture_store() {
136 136
 
137 137
     }
138 138
 
139
-    public function picture_edit($id){
139
+    public function picture_edit($id) {
140 140
 
141 141
     }
142 142
 
143
-    public function picture_update($id){
143
+    public function picture_update($id) {
144 144
 
145 145
     }
146 146
 }
Please login to merge, or discard this patch.