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 — master (#4002)
by
unknown
24:42 queued 09:36
created

CreatePivotableRelationsTables   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 69
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 44
c 1
b 0
f 1
dl 0
loc 69
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A down() 0 9 1
A up() 0 50 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
class CreatePivotableRelationsTables extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('comments', function (Blueprint $table) {
17
            $table->bigIncrements('id');
18
            $table->string('text')->nullable();
19
            $table->morphs('commentable');
20
            $table->timestamps();
21
        });
22
23
        Schema::create('recommendables', function (Blueprint $table) {
24
            $table->bigIncrements('id');
25
            $table->string('text')->nullable();
26
            $table->morphs('recommendable');
27
            $table->bigInteger('recommend_id');
28
            $table->timestamps();
29
        });
30
31
        Schema::create('billables', function (Blueprint $table) {
32
            $table->bigIncrements('id');
33
            $table->string('text')->nullable();
34
            $table->morphs('billable');
35
            $table->bigInteger('bill_id');
36
            $table->timestamps();
37
        });
38
39
        Schema::create('articles_user', function (Blueprint $table) {
40
            $table->increments('id');
41
            $table->integer('article_id')->unsigned();
42
            $table->integer('user_id')->unsigned();
43
            $table->string('notes');
44
            $table->nullableTimestamps();
45
        });
46
47
        Schema::create('recommends', function (Blueprint $table) {
48
            $table->bigIncrements('id');
49
            $table->string('title')->nullable();
50
            $table->timestamps();
51
        });
52
53
        Schema::create('bills', function (Blueprint $table) {
54
            $table->bigIncrements('id');
55
            $table->string('title')->nullable();
56
            $table->timestamps();
57
        });
58
59
        Schema::create('stars', function (Blueprint $table) {
60
            $table->bigIncrements('id');
61
            $table->string('starable_type');
62
            $table->bigInteger('starable_id');
63
            $table->string('title')->nullable();
64
        });
65
    }
66
67
    public function down()
68
    {
69
        Schema::dropIfExists('recommendables');
70
        Schema::dropIfExists('comments');
71
        Schema::dropIfExists('recommends');
72
        Schema::dropIfExists('stars');
73
        Schema::dropIfExists('billables');
74
        Schema::dropIfExists('bills');
75
        Schema::dropIfExists('articles_users');
76
    }
77
}
78