Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
13 | public function up() { |
||
14 | 9 | Schema::create('movies', function (Blueprint $table) { |
|
15 | 9 | $table->increments('id'); |
|
16 | 9 | $table->string('name'); |
|
17 | 9 | $table->string('boxmojo_id')->nullable(); |
|
18 | 9 | $table->string('boxoffice_id')->nullable(); |
|
19 | 9 | $table->date('release'); |
|
20 | 9 | $table->unsignedInteger('latest_earnings_id')->nullable(); |
|
21 | 9 | $table->timestamps(); |
|
22 | 9 | }); |
|
23 | 9 | } |
|
24 | |||
35 |
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.