GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 1347f4...2e6529 )
by Freek
01:54
created

CreateSitesTable::up()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 24
Code Lines 18

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 18
nc 1
nop 0
dl 0
loc 24
rs 8.9713
c 0
b 0
f 0
1
<?php
2
3
use Spatie\UptimeMonitor\Models\Enums\SslCertificateStatus;
4
use Spatie\UptimeMonitor\Models\Enums\UptimeStatus;
5
use Illuminate\Database\Schema\Blueprint;
6
use Illuminate\Database\Migrations\Migration;
7
8
class CreateSitesTable extends Migration
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
9
{
10
    /**
11
     * Run the migrations.
12
     *
13
     * @return void
14
     */
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
40
    /**
41
     * Reverse the migrations.
42
     *
43
     * @return void
44
     */
45
    public function down()
46
    {
47
        Schema::drop('sites');
48
    }
49
}
50