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

CreateMenuItemsTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 34
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 16 1
A down() 0 4 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class CreateMenuItemsTable extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13
    public function up()
14
    {
15
        Schema::create('menu_items', function (Blueprint $table) {
16
            $table->increments('id');
17
            $table->string('name', 100);
18
            $table->string('type', 20)->nullable();
19
            $table->string('link', 255)->nullable();
20
            $table->integer('page_id')->unsigned()->nullable();
21
            $table->integer('parent_id')->unsigned()->nullable();
22
            $table->integer('lft')->unsigned()->nullable();
23
            $table->integer('rgt')->unsigned()->nullable();
24
            $table->integer('depth')->unsigned()->nullable();
25
            $table->timestamps();
26
            $table->softDeletes();
27
        });
28
    }
29
30
    /**
31
     * Reverse the migrations.
32
     *
33
     * @return void
34
     */
35
    public function down()
36
    {
37
        Schema::drop('menu_items');
38
    }
39
}
40