| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | 38 | Schema::create('firewall', function (Blueprint $table) { |
|
| 17 | 38 | $table->increments('id'); |
|
| 18 | |||
| 19 | 38 | $table->string('ip_address', 39)->unique()->index(); |
|
| 20 | |||
| 21 | 38 | $table->boolean('whitelisted')->default(false); /// default is blacklist |
|
| 22 | |||
| 23 | 38 | $table->timestamps(); |
|
| 24 | 38 | }); |
|
| 25 | 38 | } |
|
| 26 | |||
| 37 |
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.