Code Duplication    Length = 8-9 lines in 2 locations

database/migrations/2016_04_03_015711_rbac_setup_tables.php 2 locations

@@ 30-38 (lines=9) @@
27
    {
28
        // Create table for admin user
29
        if ($this->managerTable != 'users') {
30
            Schema::create($this->managerTable, function (Blueprint $table) {
31
                $table->engine = "InnoDB COMMENT='管理员表'";
32
                $table->increments('id');
33
34
                $table->string('name')
35
                    ->unique()
36
                    ->comment('名称');
37
38
                $table->string('email')
39
                    ->nullable()
40
                    ->unique()
41
                    ->comment('邮箱');
@@ 53-60 (lines=8) @@
50
        }
51
52
        // Create table for storing roles
53
        Schema::create('roles', function (Blueprint $table) {
54
            $table->engine = "InnoDB COMMENT='角色表'";
55
            $table->increments('id');
56
57
            $table->string('name')
58
                ->unique()
59
                ->comment('名称');
60
61
            $table->string('display_name')
62
                ->nullable()
63
                ->comment('显示名');