@@ -95,7 +95,7 @@ |
||
| 95 | 95 | if (count($title) == 1) { |
| 96 | 96 | $game = Game::whereTitle($title[0]) |
| 97 | 97 | ->first(); |
| 98 | - }else { |
|
| 98 | + } else { |
|
| 99 | 99 | $game = Game::whereTitle($title[0]) |
| 100 | 100 | ->orWhere('subtitle', '=', $title[1]) |
| 101 | 101 | ->first(); |
@@ -83,9 +83,9 @@ |
||
| 83 | 83 | |
| 84 | 84 | if ($request->get('content_type') == 'news') { |
| 85 | 85 | return \Redirect::action('NewsController@show', $request->get('content_id')); |
| 86 | - }elseif ($request->get('content_type') == 'game') { |
|
| 86 | + } elseif ($request->get('content_type') == 'game') { |
|
| 87 | 87 | return \Redirect::action('GameController@show', $request->get('content_id')); |
| 88 | - }elseif ($request->get('content_type') == 'resource') { |
|
| 88 | + } elseif ($request->get('content_type') == 'resource') { |
|
| 89 | 89 | return \Redirect::action('ResourceController@show', $request->get('content_id')); |
| 90 | 90 | } |
| 91 | 91 | |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | |
| 10 | 10 | class TaggingController extends Controller |
| 11 | 11 | { |
| 12 | - public function index($orderby = 'tag', $direction = 'asc'){ |
|
| 12 | + public function index($orderby = 'tag', $direction = 'asc') { |
|
| 13 | 13 | $tags = Tag::all()->sortBy('title'); |
| 14 | 14 | |
| 15 | 15 | return view('tags.index', [ |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | |
| 93 | 93 | if (\Auth::check()) { |
| 94 | 94 | $pm = \Auth::user()->newThreadsCount(); |
| 95 | - }else { |
|
| 95 | + } else { |
|
| 96 | 96 | $pm = ''; |
| 97 | 97 | } |
| 98 | 98 | |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | if ($request->get('value') == 0) { |
| 40 | 40 | $lv->down = 1; |
| 41 | 41 | $lv->up = 0; |
| 42 | - }else { |
|
| 42 | + } else { |
|
| 43 | 43 | $lv->down = 0; |
| 44 | 44 | $lv->up = 1; |
| 45 | 45 | } |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | $es->reg_end_date = $request->get('reg_end'); |
| 61 | 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(); |
@@ -25,11 +25,11 @@ |
||
| 25 | 25 | $comment->vote_up = 1; |
| 26 | 26 | $comment->vote_down = 0; |
| 27 | 27 | event(new Obyx('rating', \Auth::id())); |
| 28 | - }elseif ($rate == 'down') { |
|
| 28 | + } elseif ($rate == 'down') { |
|
| 29 | 29 | $comment->vote_up = 0; |
| 30 | 30 | $comment->vote_down = 1; |
| 31 | 31 | event(new Obyx('rating', \Auth::id())); |
| 32 | - }else { |
|
| 32 | + } else { |
|
| 33 | 33 | $comment->vote_up = 0; |
| 34 | 34 | $comment->vote_down = 0; |
| 35 | 35 | } |
@@ -83,11 +83,11 @@ |
||
| 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 | ]); |
@@ -58,7 +58,7 @@ discard block |
||
| 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 @@ discard block |
||
| 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 | ]); |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | //Prüfen ob Screenshots vorhanden sind |
| 22 | 22 | if (is_null($s)) {//Es sind keine Screenshots vorhanden |
| 23 | 23 | $storagePath = public_path().'/assets/no_image.png'; |
| 24 | - }else {//Es sind Screenshots vorhanden |
|
| 24 | + } else {//Es sind Screenshots vorhanden |
|
| 25 | 25 | $storagePath = \Storage::get($s->filename); |
| 26 | 26 | } |
| 27 | 27 | |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | { |
| 50 | 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); |