Skip to content

Commit

Permalink
Fix Scrutinizer issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
furic committed Dec 5, 2020
1 parent 00708c6 commit ad3cdfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions routes/api.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

use Illuminate\Support\Facades\Route;
use Furic\RedeemCodes\Http\Controllers\GameController;
use Furic\RedeemCodes\Http\Controllers\PlayerController;
use Furic\RedeemCodes\Http\Controllers\PlayerGameController;
use Furic\GameEssentials\Http\Controllers\GameController;
use Furic\GameEssentials\Http\Controllers\PlayerController;
use Furic\GameEssentials\Http\Controllers\PlayerGameController;

// Games
Route::get('games/{id}', [GameController::class, 'show'])->name('games.show');
Expand Down
4 changes: 2 additions & 2 deletions src/Http/Controllers/GameController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class GameController extends Controller
*/
public function show($id)
{
return reponse(Game::findOrFail($id), 200);
return response(Game::findOrFail($id), 200);
}

/**
Expand All @@ -29,7 +29,7 @@ public function show($id)
public function showVersions($id) // Depricated
{
$game = Game::findOrFail($id);
return reponse(['ios' => $game->version_ios, 'android' => $game->version_android, 'tvos' => $game->version_tvos], 200);
return response(['ios' => $game->version_ios, 'android' => $game->version_android, 'tvos' => $game->version_tvos], 200);
}

}

0 comments on commit ad3cdfc

Please sign in to comment.