Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Test Setup Failed
Pull Request — development (#68)
by José
06:06
created

CreateUsersTable::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace GiveBlood\Modules\Users\Database\Migrations;
4
5
use Illuminate\Database\Schema\Blueprint;
6
use Illuminate\Database\Migrations\Migration;
7
8
class CreateUsersTable extends Migration
9
{
10
    /**
11
     * @var \Illuminate\Database\Schema\Builder
12
     */
13
    protected $schema;
14
15
    /**
16
     * Migration constructor.
17
     */
18
    public function __construct()
19
    {
20
        $this->schema = app('db')->connection()->getSchemaBuilder();
21
    }
22
23
    /**
24
     * Run the migrations.
25
     *
26
     * @return void
27
     */
28
    public function up()
29
    {
30
        $this->schema->create(
31
            'users', function (Blueprint $table) {
32
                $table->uuid('id');
33
                $table->string('first_name');
34
                $table->string('last_name');
35
                $table->string('username')->unique();
36
                $table->string('email')->unique();
37
                $table->timestamp('email_verified_at')->nullable();
38
                $table->string('phone', 15);
39
                $table->text('bio')->nullable();
40
                $table->date('birthdate')->nullable();
41
                $table->uuid('country_id');
42
                $table->uuid('blood_type_id');
43
                $table->string('password');
44
                $table->rememberToken();
45
                $table->timestamps();
46
47
                //$table->foreign('country_id')->references('id')->on('countries')->onCascade('delete');
48
                //$table->foreign('blood_type_id')->references('id')->on('blood_types')->onCascade('delete');
49
            }
50
        );
51
    }
52
53
    /**
54
     * Reverse the migrations.
55
     *
56
     * @return void
57
     */
58
    public function down()
59
    {
60
        $this->schema->drop('users');
61
    }
62
}
63