Code Duplication    Length = 8-10 lines in 3 locations

database/migrations/2016_01_04_173148_create_admin_tables.php 2 locations

@@ 41-48 (lines=8) @@
38
            $table->timestamps();
39
        });
40
41
        Schema::create(config('admin.database.permissions_table'), function (Blueprint $table) {
42
            $table->increments('id');
43
            $table->string('name', 50)->unique();
44
            $table->string('slug', 50)->unique();
45
            $table->string('http_method')->nullable();
46
            $table->text('http_path')->nullable();
47
            $table->timestamps();
48
        });
49
50
        Schema::create(config('admin.database.menu_table'), function (Blueprint $table) {
51
            $table->increments('id');
@@ 90-99 (lines=10) @@
87
            $table->timestamps();
88
        });
89
90
        Schema::create(config('admin.database.operation_log_table'), function (Blueprint $table) {
91
            $table->increments('id');
92
            $table->integer('user_id');
93
            $table->string('path');
94
            $table->string('method', 10);
95
            $table->string('ip');
96
            $table->text('input');
97
            $table->index('user_id');
98
            $table->timestamps();
99
        });
100
    }
101
102
    /**

tests/migrations/2016_11_22_093148_create_test_tables.php 1 location

@@ 43-51 (lines=9) @@
40
            $table->timestamps();
41
        });
42
43
        Schema::create('test_users', function (Blueprint $table) {
44
            $table->increments('id');
45
            $table->string('username');
46
            $table->string('email');
47
            $table->string('mobile')->nullable();
48
            $table->string('avatar')->nullable();
49
            $table->string('password');
50
            $table->timestamps();
51
        });
52
53
        Schema::create('test_user_profiles', function (Blueprint $table) {
54
            $table->increments('id');