| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 4 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 13 | public function run() |
||
| 14 | { |
||
| 15 | Capsule::schema()->dropIfExists('matches'); |
||
| 16 | Capsule::schema()->create('matches', function (Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->integer('league_round_id')->nullable(); |
||
| 19 | $table->integer('home_team_id'); |
||
| 20 | $table->integer('goal_home')->default(0); |
||
| 21 | $table->integer('away_team_id'); |
||
| 22 | $table->integer('goal_away')->default(0); |
||
| 23 | $table->boolean('is_draw')->default(false); |
||
| 24 | $table->integer('winner_id')->default(null); |
||
| 25 | $table->integer('loser_id')->default(null); |
||
| 26 | $table->boolean('simulated')->default(false); |
||
| 27 | $table->date('match_date')->default(\Carbon\Carbon::now()); |
||
| 28 | $table->timestamps(); |
||
| 29 | }); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.