@@ -41,7 +41,7 @@ |
||
41 | 41 | foreach ($games as $g) { |
42 | 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 |
@@ -58,7 +58,7 @@ |
||
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'); |
@@ -87,7 +87,7 @@ |
||
87 | 87 | $posts = BoardPost::with('user', 'thread', 'cat')->whereThreadId($threadid)->orderBy('id')->paginate(25); |
88 | 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 | ]); |
@@ -37,13 +37,13 @@ |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | public function index_user() { |
40 | - if(\Auth::check()){ |
|
41 | - if(\Auth::user()->can('admin-games')){ |
|
40 | + if (\Auth::check()) { |
|
41 | + if (\Auth::user()->can('admin-games')) { |
|
42 | 42 | $ur = UserReport::all(); |
43 | - } else{ |
|
43 | + }else { |
|
44 | 44 | $ur = UserReport::whereUserId(\Auth::id()); |
45 | 45 | } |
46 | - } else{ |
|
46 | + }else { |
|
47 | 47 | $ur = null; |
48 | 48 | } |
49 | 49 |
@@ -374,17 +374,17 @@ |
||
374 | 374 | if ($request->get('content_type') == 'url') { |
375 | 375 | if (filter_var($request->get('url'), FILTER_VALIDATE_URL)) { |
376 | 376 | $content_path = $request->get('url'); |
377 | - } else { |
|
377 | + }else { |
|
378 | 378 | return back()->withInput(); |
379 | 379 | } |
380 | - } else { |
|
380 | + }else { |
|
381 | 381 | $storagetemp = 'temp/'.$request->get('uuid').'/file'; |
382 | 382 | $storagedest = 'resources/'.$request->get('uuid').'.'.$request->get('ext'); |
383 | 383 | |
384 | 384 | $exists = \Storage::disk('local')->exists($storagetemp); |
385 | 385 | if ($exists === true) { |
386 | 386 | \Storage::move($storagetemp, $storagedest); |
387 | - } else { |
|
387 | + }else { |
|
388 | 388 | return back()->withInput(); |
389 | 389 | } |
390 | 390 |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | ->select(['news.id', 'news.title', 'news.news_html', 'news_category', 'users.name', 'news.user_id', 'news.created_at', 'news.approved']) |
80 | 80 | ->where('news.id', '=', $id) |
81 | 81 | ->first(); |
82 | - } else { |
|
82 | + }else { |
|
83 | 83 | $news = \DB::table('news') |
84 | 84 | ->leftJoin('users', 'news.user_id', '=', 'users.id') |
85 | 85 | ->select(['news.id', 'news.title', 'news.news_html', 'news_category', 'users.name', 'news.user_id', 'news.created_at', 'news.approved']) |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | ->where('approved', '=', '1') |
88 | 88 | ->first(); |
89 | 89 | } |
90 | - } else { |
|
90 | + }else { |
|
91 | 91 | $news = \DB::table('news') |
92 | 92 | ->leftJoin('users', 'news.user_id', '=', 'users.id') |
93 | 93 | ->select(['news.id', 'news.title', 'news.news_html', 'news_category', 'users.name', 'news.user_id', 'news.created_at', 'news.approved']) |
@@ -49,7 +49,7 @@ |
||
49 | 49 | $list = \DB::table('user_lists') |
50 | 50 | ->where('id', '=', $listid) |
51 | 51 | ->delete(); |
52 | - } else { |
|
52 | + }else { |
|
53 | 53 | $list = \DB::table('user_lists') |
54 | 54 | ->where('id', '=', $listid) |
55 | 55 | ->where('user_id', '=', \Auth::id()) |
@@ -209,7 +209,7 @@ |
||
209 | 209 | if ($request->get('forbidden') && ($request->get('forbidden') <> '')) { |
210 | 210 | $gamefile->forbidden = 1; |
211 | 211 | $gamefile->reason = $request->get('forbidden'); |
212 | - } else { |
|
212 | + }else { |
|
213 | 213 | $gamefile->forbidden = 0; |
214 | 214 | $gamefile->reason = ''; |
215 | 215 | } |