Code Duplication    Length = 8-11 lines in 3 locations

app/Containers/Authorization/Data/Migrations/2016_12_29_201047_create_permission_tables.php 2 locations

@@ 18-25 (lines=8) @@
15
        $tableNames = config('permission.table_names');
16
        $foreignKeys = config('permission.foreign_keys');
17
18
        Schema::create($tableNames['permissions'], function (Blueprint $table) {
19
            $table->increments('id');
20
            $table->string('name');
21
            $table->string('guard_name');
22
            $table->string('display_name')->nullable();
23
            $table->string('description')->nullable();
24
            $table->timestamps();
25
        });
26
27
        Schema::create($tableNames['roles'], function (Blueprint $table) {
28
            $table->increments('id');
@@ 27-34 (lines=8) @@
24
            $table->timestamps();
25
        });
26
27
        Schema::create($tableNames['roles'], function (Blueprint $table) {
28
            $table->increments('id');
29
            $table->string('name');
30
            $table->string('guard_name');
31
            $table->string('display_name')->nullable();
32
            $table->string('description')->nullable();
33
            $table->timestamps();
34
        });
35
36
        Schema::create($tableNames['model_has_permissions'], function (Blueprint $table) use ($tableNames, $foreignKeys) {
37
            $table->integer('permission_id')->unsigned();

app/Ship/Migrations/2017_09_12_174826_create_notifications_table.php 1 location

@@ 14-24 (lines=11) @@
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('notifications', function (Blueprint $table) {
17
            $table->uuid('id')->primary();
18
            $table->string('type');
19
            $table->morphs('notifiable');
20
            $table->text('data');
21
            $table->timestamp('read_at')->nullable();
22
            $table->timestamps();
23
        });
24
    }
25
26
    /**
27
     * Reverse the migrations.