Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 14 |
Lines | 17 |
Ratio | 100 % |
Changes | 4 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
13 | public function run() |
||
14 | { |
||
15 | Capsule::schema()->dropIfExists('players'); |
||
16 | Capsule::schema()->create('players', function (Blueprint $table) { |
||
17 | $table->increments('id'); |
||
18 | $table->string('name'); |
||
19 | $table->string('surname'); |
||
20 | $table->tinyInteger('age'); |
||
21 | $table->string('nationality',2); |
||
22 | $table->float('skillAvg'); |
||
23 | $table->float('wageReq'); |
||
24 | $table->float('val'); |
||
25 | $table->string('role',2); |
||
26 | $table->integer('team_id')->nullable(); |
||
27 | $table->timestamps(); |
||
28 | }); |
||
29 | } |
||
30 | } |
||
31 |
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.