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
Branch master (114f68)
by Mark
08:50
created

CreateRolesTable::down()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
use App\Model\Role;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
7
class CreateRolesTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        \Schema::create('roles', function (Blueprint $table) {
17
            $table->increments('id');
18
            $table->string('title');
19
            $table->string('description');
20
            $table->softDeletes();
21
            $table->timestamps();
22
        });
23
24
        $role = new Role;
25
        $role->setTitle('Super User');
26
        $role->setDescription('System-wide access to engine properties.');
27
        $role->save();
28
29
        $role = new Role;
30
        $role->setTitle('Administrator');
31
        $role->setDescription('This is the top level user with full application control.');
32
        $role->save();
33
34
        $role = new Role;
35
        $role->setTitle('Content Creator');
36
        $role->setDescription('This user can manage content, but not settings.');
37
        $role->save();
38
    }
39
40
    /**
41
     * Reverse the migrations.
42
     *
43
     * @return void
44
     */
45
    public function down()
46
    {
47
        \Schema::dropIfExists('roles');
48
    }
49
}
50