We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | \Schema::create('plugin_options', function (Blueprint $table) { |
||
| 16 | $table->increments('id'); |
||
| 17 | $table->unsignedInteger('plugin_id'); |
||
| 18 | $table->string('key'); |
||
| 19 | $table->string('value')->nullable(); |
||
| 20 | $table->timestamps(); |
||
| 21 | |||
| 22 | $table->unique(['key']); |
||
| 23 | }); |
||
| 36 |
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.