@@ -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 | } |
@@ -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 | } |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | if (is_array($value)) { |
| 12 | 12 | if (!isset($array2[$key]) || !is_array($array2[$key])) { |
| 13 | 13 | $difference[$key] = $value; |
| 14 | - } else { |
|
| 14 | + }else { |
|
| 15 | 15 | $new_diff = self::array_diff_assoc_recursive($value, $array2[$key]); |
| 16 | 16 | if (!empty($new_diff)) { |
| 17 | 17 | $difference[$key] = $new_diff; |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | { |
| 30 | 30 | if ($max == 0 || $views == 0) { |
| 31 | 31 | $ret = 0; |
| 32 | - } else { |
|
| 32 | + }else { |
|
| 33 | 33 | $ret = ($views / $max) * 100; |
| 34 | 34 | } |
| 35 | 35 | |
@@ -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 | }) |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | ->leftJoin('logo_votes', 'logos.id', '=', 'logo_votes.logo_id') |
| 19 | 19 | ->leftJoin('users', 'logos.user_id', '=', 'users.id') |
| 20 | 20 | ->select(['logos.id', 'logos.filename', 'logos.title', 'users.name', 'logos.user_id']) |
| 21 | - ->whereNotExists(function ($query) { |
|
| 21 | + ->whereNotExists(function($query) { |
|
| 22 | 22 | $query->select(\DB::raw(1)) |
| 23 | 23 | ->from('logo_votes') |
| 24 | 24 | ->whereRaw('logo_votes.logo_id = logos.id') |
@@ -39,7 +39,7 @@ discard block |
||
| 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 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | ->leftJoin('games_developer', 'games.id', '=', 'games_developer.game_id') |
| 19 | 19 | ->leftJoin('developer', 'games_developer.developer_id', '=', 'developer.id') |
| 20 | 20 | ->leftJoin('makers', 'makers.id', '=', 'games.maker_id') |
| 21 | - ->leftJoin('comments', function ($join) { |
|
| 21 | + ->leftJoin('comments', function($join) { |
|
| 22 | 22 | $join->on('comments.content_id', '=', 'games.id'); |
| 23 | 23 | $join->on('comments.content_type', '=', \DB::raw("'game'")); |
| 24 | 24 | }) |