@@ -36,8 +36,9 @@ |
||
36 | 36 | public function showWithName($name) |
37 | 37 | { |
38 | 38 | $player = Player::findByName($name); |
39 | - if ($player != NULL) |
|
40 | - return response($player, 200); |
|
39 | + if ($player != NULL) { |
|
40 | + return response($player, 200); |
|
41 | + } |
|
41 | 42 | return response([ |
42 | 43 | 'error' => 'No player found.' |
43 | 44 | ], 400); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public function up() |
16 | 16 | { |
17 | - Schema::create('game_player', function (Blueprint $table) { |
|
17 | + Schema::create('game_player', function(Blueprint $table) { |
|
18 | 18 | $table->increments('id'); |
19 | 19 | |
20 | 20 | $table->integer('game_id')->unsigned(); |