@@ -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 | } |
@@ -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(); |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | \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()) |
@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -44,10 +44,10 @@ |
||
| 44 | 44 | if (\Auth::check()) { |
| 45 | 45 | if (\Auth::user()->can('admin-games')) { |
| 46 | 46 | $ur = UserReport::all(); |
| 47 | - } else { |
|
| 47 | + }else { |
|
| 48 | 48 | $ur = UserReport::whereUserId(\Auth::id()); |
| 49 | 49 | } |
| 50 | - } else { |
|
| 50 | + }else { |
|
| 51 | 51 | $ur = null; |
| 52 | 52 | } |
| 53 | 53 | |