| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 1 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | // Schema::table(\Config::get('countries.table_name'), function ($table) { |
||
| 16 | // \DB::statement("ALTER TABLE " . \DB::getTablePrefix() . \Config::get('countries.table_name') . " MODIFY country_code CHAR(3) NOT NULL DEFAULT ''"); |
||
| 17 | // \DB::statement("ALTER TABLE " . \DB::getTablePrefix() . \Config::get('countries.table_name') . " MODIFY iso_3166_2 CHAR(2) NOT NULL DEFAULT ''"); |
||
| 18 | // \DB::statement("ALTER TABLE " . \DB::getTablePrefix() . \Config::get('countries.table_name') . " MODIFY iso_3166_3 CHAR(3) NOT NULL DEFAULT ''"); |
||
| 19 | // \DB::statement("ALTER TABLE " . \DB::getTablePrefix() . \Config::get('countries.table_name') . " MODIFY region_code CHAR(3) NOT NULL DEFAULT ''"); |
||
| 20 | // \DB::statement("ALTER TABLE " . \DB::getTablePrefix() . \Config::get('countries.table_name') . " MODIFY sub_region_code CHAR(3) NOT NULL DEFAULT ''"); |
||
| 21 | // }); |
||
| 22 | } |
||
| 23 | |||
| 42 |
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.