Code Duplication    Length = 7-7 lines in 2 locations

database/migrations/2017_01_05_161950_entrust_setup_tables.php 2 locations

@@ 16-22 (lines=7) @@
13
    public function up()
14
    {
15
        // Create table for storing roles
16
        Schema::create('roles', function (Blueprint $table) {
17
            $table->increments('id');
18
            $table->string('name')->unique();
19
            $table->string('display_name')->nullable();
20
            $table->string('description')->nullable();
21
            $table->timestamps();
22
        });
23
24
        // Create table for associating roles to users (Many-to-Many)
25
        Schema::create('role_user', function (Blueprint $table) {
@@ 44-50 (lines=7) @@
41
        });
42
43
        // Create table for storing permissions
44
        Schema::create('permissions', function (Blueprint $table) {
45
            $table->increments('id');
46
            $table->string('name')->unique();
47
            $table->string('display_name')->nullable();
48
            $table->string('description')->nullable();
49
            $table->timestamps();
50
        });
51
52
        // Create table for associating permissions to roles (Many-to-Many)
53
        Schema::create('permission_role', function (Blueprint $table) {