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

CreateBanksTable   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 4
dl 0
loc 46
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A up() 0 15 1
A down() 0 4 1
1
<?php
2
3
namespace GiveBlood\Modules\Bank\Database\Migrations;
4
5
use Illuminate\Database\Schema\Blueprint;
6
use Illuminate\Database\Migrations\Migration;
7
8
class CreateBanksTable 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
            'banks', function (Blueprint $table) {
32
                $table->uuid('id')->unique()->primary();
33
                $table->string('name');
34
                $table->string('email');
35
                $table->string('url');
36
                $table->string('phone');
37
                $table->string('location');
38
                $table->timestamps();
39
                $table->softDeletes();
40
            }
41
        );
42
    }
43
44
    /**
45
     * Reverse the migrations.
46
     *
47
     * @return void
48
     */
49
    public function down()
50
    {
51
        $this->schema->drop('banks');
52
    }
53
}
54