@@ -19,7 +19,7 @@ |
||
| 19 | 19 | /* |
| 20 | 20 | * Authenticate the user's personal channel... |
| 21 | 21 | */ |
| 22 | - Broadcast::channel('App.User.*', function ($user, $userId) { |
|
| 22 | + Broadcast::channel('App.User.*', function($user, $userId) { |
|
| 23 | 23 | return (int) $user->id === (int) $userId; |
| 24 | 24 | }); |
| 25 | 25 | } |
@@ -29,7 +29,7 @@ |
||
| 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 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | ->orderBy('games_files.release_day', $direction) |
| 38 | 38 | ->select('games.*') |
| 39 | 39 | ->paginate(20); |
| 40 | - } else { |
|
| 40 | + }else { |
|
| 41 | 41 | $games = Game::orderBy($orderby, $direction)->orderBy('title')->orderBy('subtitle')->paginate(20); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | GamesDeveloper::whereGameId($id)->delete(); |
| 279 | 279 | Comment::whereContentId($id)->where('content_type', '=', 'game')->delete(); |
| 280 | 280 | TagRelation::whereContentId($id)->where('content_type', '=', 'game')->delete(); |
| 281 | - } else { |
|
| 281 | + }else { |
|
| 282 | 282 | return redirect()->action('GameController@edit', $id); |
| 283 | 283 | } |
| 284 | 284 | } |
@@ -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 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | Route::group([ |
| 55 | 55 | 'middleware' => 'web', |
| 56 | 56 | 'namespace' => $this->namespace, |
| 57 | - ], function ($router) { |
|
| 57 | + ], function($router) { |
|
| 58 | 58 | require base_path('routes/web.php'); |
| 59 | 59 | }); |
| 60 | 60 | } |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | 'middleware' => 'api', |
| 73 | 73 | 'namespace' => $this->namespace, |
| 74 | 74 | 'prefix' => 'api', |
| 75 | - ], function ($router) { |
|
| 75 | + ], function($router) { |
|
| 76 | 76 | require base_path('routes/api.php'); |
| 77 | 77 | }); |
| 78 | 78 | } |
@@ -26,10 +26,10 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | if ($releasedate) { |
| 28 | 28 | return Carbon::parse($releasedate->reldate)->toDateString(); |
| 29 | - } else { |
|
| 29 | + }else { |
|
| 30 | 30 | return ''; |
| 31 | 31 | } |
| 32 | - } else { |
|
| 32 | + }else { |
|
| 33 | 33 | return Carbon::parse($game->release_date)->toDateString(); |
| 34 | 34 | } |
| 35 | 35 | } |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | if ($lang) { |
| 108 | 108 | return $lang->id; |
| 109 | - } else { |
|
| 109 | + }else { |
|
| 110 | 110 | return 0; |
| 111 | 111 | } |
| 112 | 112 | } |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | |
| 121 | 121 | if ($dev) { |
| 122 | 122 | return $dev->id; |
| 123 | - } else { |
|
| 123 | + }else { |
|
| 124 | 124 | return 0; |
| 125 | 125 | } |
| 126 | 126 | } |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | |
| 16 | 16 | if ($comments->up > 0 || $comments->down > 0) { |
| 17 | 17 | return false; |
| 18 | - } else { |
|
| 18 | + }else { |
|
| 19 | 19 | return true; |
| 20 | 20 | } |
| 21 | 21 | } |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | ->leftJoin('games_developer', 'games.id', '=', 'games_developer.game_id') |
| 21 | 21 | ->leftJoin('developer', 'games_developer.developer_id', '=', 'developer.id') |
| 22 | 22 | ->leftJoin('makers', 'makers.id', '=', 'games.maker_id') |
| 23 | - ->leftJoin('comments', function ($join) { |
|
| 23 | + ->leftJoin('comments', function($join) { |
|
| 24 | 24 | $join->on('comments.content_id', '=', 'games.id'); |
| 25 | 25 | $join->on('comments.content_type', '=', \DB::raw("'game'")); |
| 26 | 26 | }) |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | if (count($title) == 1) { |
| 97 | 97 | $game = Game::whereTitle($title[0]) |
| 98 | 98 | ->first(); |
| 99 | - } else { |
|
| 99 | + }else { |
|
| 100 | 100 | $game = Game::whereTitle($title[0]) |
| 101 | 101 | ->orWhere('subtitle', '=', $title[1]) |
| 102 | 102 | ->first(); |
@@ -13,11 +13,11 @@ discard block |
||
| 13 | 13 | ->leftJoin('games_developer', 'games.id', '=', 'games_developer.game_id') |
| 14 | 14 | ->leftJoin('developer', 'games_developer.developer_id', '=', 'developer.id') |
| 15 | 15 | ->leftJoin('makers', 'makers.id', '=', 'games.maker_id') |
| 16 | - ->leftJoin('comments', function ($join) { |
|
| 16 | + ->leftJoin('comments', function($join) { |
|
| 17 | 17 | $join->on('comments.content_id', '=', 'games.id'); |
| 18 | 18 | $join->on('comments.content_type', '=', \DB::raw("'game'")); |
| 19 | 19 | }) |
| 20 | - ->leftJoin('screenshots', function ($join) { |
|
| 20 | + ->leftJoin('screenshots', function($join) { |
|
| 21 | 21 | $join->on('screenshots.game_id', '=', 'games.id'); |
| 22 | 22 | $join->on('screenshots.screenshot_id', '=', \DB::raw('1')); |
| 23 | 23 | }) |
@@ -70,11 +70,11 @@ discard block |
||
| 70 | 70 | ->leftJoin('games_developer', 'games.id', '=', 'games_developer.game_id') |
| 71 | 71 | ->leftJoin('developer', 'games_developer.developer_id', '=', 'developer.id') |
| 72 | 72 | ->leftJoin('makers', 'makers.id', '=', 'games.maker_id') |
| 73 | - ->leftJoin('comments', function ($join) { |
|
| 73 | + ->leftJoin('comments', function($join) { |
|
| 74 | 74 | $join->on('comments.content_id', '=', 'games.id'); |
| 75 | 75 | $join->on('comments.content_type', '=', \DB::raw("'game'")); |
| 76 | 76 | }) |
| 77 | - ->leftJoin('screenshots', function ($join) { |
|
| 77 | + ->leftJoin('screenshots', function($join) { |
|
| 78 | 78 | $join->on('screenshots.game_id', '=', 'games.id'); |
| 79 | 79 | $join->on('screenshots.screenshot_id', '=', \DB::raw('1')); |
| 80 | 80 | }) |
@@ -127,11 +127,11 @@ discard block |
||
| 127 | 127 | ->leftJoin('games_developer', 'games.id', '=', 'games_developer.game_id') |
| 128 | 128 | ->leftJoin('developer', 'games_developer.developer_id', '=', 'developer.id') |
| 129 | 129 | ->leftJoin('makers', 'makers.id', '=', 'games.maker_id') |
| 130 | - ->leftJoin('comments', function ($join) { |
|
| 130 | + ->leftJoin('comments', function($join) { |
|
| 131 | 131 | $join->on('comments.content_id', '=', 'games.id'); |
| 132 | 132 | $join->on('comments.content_type', '=', \DB::raw("'game'")); |
| 133 | 133 | }) |
| 134 | - ->leftJoin('screenshots', function ($join) { |
|
| 134 | + ->leftJoin('screenshots', function($join) { |
|
| 135 | 135 | $join->on('screenshots.game_id', '=', 'games.id'); |
| 136 | 136 | $join->on('screenshots.screenshot_id', '=', \DB::raw('1')); |
| 137 | 137 | }) |