| Conditions | 1 |
| Paths | 1 |
| Total Lines | 27 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 19 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | 9 | Schema::create('leagues', function(Blueprint $table) |
|
| 16 | { |
||
| 17 | 9 | $table->increments('id'); |
|
| 18 | 9 | $table->string('name'); |
|
| 19 | 9 | $table->string('slug'); |
|
| 20 | 9 | $table->text('description'); |
|
| 21 | 9 | $table->text('url')->nullable(); |
|
| 22 | |||
| 23 | 9 | $table->string('mode', 16)->default(Config::get('draft.league_defaults.mode')); |
|
| 24 | 9 | $table->integer('money')->default(Config::get("draft.league_defaults.money")); |
|
| 25 | 9 | $table->string('units', 16)->default(Config::get('draft.league_defaults.units')); |
|
| 26 | 9 | $table->integer('extra_weeks')->default(Config::get('draft.league_defaults.extra_weeks')); |
|
| 27 | |||
| 28 | 9 | $table->date('start_date'); |
|
| 29 | 9 | $table->date('end_date'); |
|
| 30 | 9 | $table->boolean('active')->default(false)->nullable(); |
|
| 31 | |||
| 32 | 9 | $table->boolean('private')->default(false)->nullable(); |
|
| 33 | 9 | $table->boolean('featured')->default(false)->nullable(); |
|
| 34 | |||
| 35 | 9 | $table->timestamps(); |
|
| 36 | |||
| 37 | 9 | $table->unique('slug'); |
|
| 38 | 9 | }); |
|
| 39 | 9 | } |
|
| 40 | |||
| 52 |
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.