@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('house_ads', function (Blueprint $table) { |
|
| 15 | + Schema::create('house_ads', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | |
| 18 | 18 | $table->integer('game_id')->unsigned(); |
@@ -26,10 +26,11 @@ |
||
| 26 | 26 | $houseAd = HouseAd::findOrFail($id); |
| 27 | 27 | |
| 28 | 28 | // A check to prevent hacker to change the level owner |
| 29 | - if ($request->confirmed == '1') |
|
| 30 | - $houseAd->confirmed_count++; |
|
| 31 | - else |
|
| 32 | - $houseAd->cancelled_count++; |
|
| 29 | + if ($request->confirmed == '1') { |
|
| 30 | + $houseAd->confirmed_count++; |
|
| 31 | + } else { |
|
| 32 | + $houseAd->cancelled_count++; |
|
| 33 | + } |
|
| 33 | 34 | |
| 34 | 35 | $houseAd->save(); |
| 35 | 36 | |