| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function up() |
||
| 16 | { |
||
| 17 | Schema::create('sites', function (Blueprint $table) { |
||
| 18 | $table->increments('id'); |
||
| 19 | $table->string('url'); |
||
| 20 | $table->boolean('enabled')->default(true); |
||
| 21 | |||
| 22 | $table->string('look_for_string')->default(''); |
||
| 23 | $table->string('uptime_status')->default(UptimeStatus::NOT_YET_CHECKED); |
||
| 24 | $table->string('uptime_failure_reason')->default(''); |
||
| 25 | $table->integer('uptime_check_times_failed_in_a_row')->default(0); |
||
| 26 | $table->timestamp('uptime_status_last_change_date')->nullable(); |
||
| 27 | $table->timestamp('uptime_last_check_date')->nullable(); |
||
| 28 | $table->string('uptime_check_method')->default('get'); |
||
| 29 | |||
| 30 | $table->boolean('check_ssl_certificate')->default(false); |
||
| 31 | $table->string('ssl_certificate_status')->default(SslCertificateStatus::NOT_YET_CHECKED); |
||
| 32 | $table->timestamp('ssl_certificate_expiration_date')->nullable(); |
||
| 33 | $table->string('ssl_certificate_issuer')->nullable(); |
||
| 34 | $table->string('ssl_certificate_failure_reason')->default(''); |
||
| 35 | |||
| 36 | $table->timestamps(); |
||
| 37 | }); |
||
| 38 | } |
||
| 39 | |||
| 50 |
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.