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.

CreateLinksTable::up()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 11
c 1
b 0
f 0
dl 0
loc 14
rs 9.9
cc 1
nc 1
nop 0
1
<?php
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
7
class CreateLinksTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        $tableName = config('links.tables.links');
17
18
        Schema::create($tableName, function (Blueprint $table) {
19
            $table->increments('id');
20
            $table->string('url');
21
            $table->text('data');
22
            $table->dateTime('expiry')->nullable();
23
            $table->integer('click_limit')->nullable();
24
            $table->integer('clicks')->default(0);
25
            $table->uuid('uuid');
26
            $table->unsignedInteger('group_id')->nullable();
27
            $table->timestamps();
28
        });
29
30
31
    }
32
33
    /**
34
     * Reverse the migrations.
35
     *
36
     * @return void
37
     */
38
    public function down()
39
    {
40
        $tableName = config('links.tables.links');
41
42
        Schema::drop($tableName);
43
    }
44
}
45