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

Code Duplication    Length = 48-50 lines in 2 locations

app/Modules/Campaign/Database/Migrations/CreateCampaignsTable.php 1 location

@@ 8-57 (lines=50) @@
5
use Illuminate\Database\Schema\Blueprint;
6
use Illuminate\Database\Migrations\Migration;
7
8
class CreateCampaignsTable 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
            'campaigns', function (Blueprint $table) {
32
                $table->uuid('id')->unique()->primary();
33
                $table->string('title');
34
                $table->text('description');
35
                $table->string('image')->nullable();
36
                $table->dateTimeTz('expires');
37
                $table->uuid('user_id');
38
                $table->string('slug');
39
                $table->timestamps();
40
                $table->softDeletes();
41
42
                // $table->foreign('user_id')->references('id')->on('users')
43
                //       ->onDelete('cascade');
44
            }
45
        );
46
    }
47
48
    /**
49
     * Reverse the migrations.
50
     *
51
     * @return void
52
     */
53
    public function down()
54
    {
55
        $this->schema->drop('campaigns');
56
    }
57
}
58

app/Modules/Users/Database/Migrations/CreateInvitationRequestsTable.php 1 location

@@ 8-55 (lines=48) @@
5
use Illuminate\Database\Schema\Blueprint;
6
use Illuminate\Database\Migrations\Migration;
7
8
class CreateInvitationRequestsTable 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
            'invitation_requests', function (Blueprint $table) {
32
                $table->increments('id');
33
                $table->string('first_name');
34
                $table->string('last_name');
35
                $table->string('guest_email')->unique();
36
                $table->integer('country_id')->unsigned();
37
                $table->string('token')->unique();
38
                $table->timestamps();
39
40
                $table->foreign('country_id')->references('id')
41
                    ->on('countries');
42
            }
43
        );
44
    }
45
46
    /**
47
     * Reverse the migrations.
48
     *
49
     * @return void
50
     */
51
    public function down()
52
    {
53
        $this->schema->drop('invitation_requests');
54
    }
55
}
56