| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function run() |
||
| 14 | { |
||
| 15 | Capsule::schema()->dropIfExists('match_players'); |
||
| 16 | Capsule::schema()->create('match_players', function (Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->integer('match_id'); |
||
| 19 | $table->integer('team_id'); |
||
| 20 | $table->integer('player_id')->default(0); |
||
| 21 | $table->unsignedTinyInteger('goals')->default(0); |
||
| 22 | $table->unsignedTinyInteger('vote')->default(6); |
||
| 23 | $table->timestamps(); |
||
| 24 | }); |
||
| 25 | } |
||
| 26 | } |
||
| 27 |
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.