Code Duplication    Length = 8-10 lines in 5 locations

database/migrations/2018_11_07_195157_create_code_tables.php 1 location

@@ 17-24 (lines=8) @@
14
    public function up()
15
    {
16
        Schema::create(
17
            'code_languages', function (Blueprint $table) {
18
                $table->increments('id');
19
                $table->string('name');
20
                $table->string('slug')->nullable();
21
                $table->integer('status')->default(1);
22
                $table->string('code_language_id')->nullable();
23
                $table->timestamps();
24
            }
25
        );
26
27
        Schema::create(

database/migrations/2018_12_10_100000_create_infra_tables.php 3 locations

@@ 27-34 (lines=8) @@
24
            }
25
        );
26
        Schema::create(
27
            'infra_ambientes', function (Blueprint $table) {
28
                $table->increments('id');
29
                $table->string('name')->nullable();
30
                $table->string('slug')->nullable();
31
                $table->string('branch')->nullable();
32
                $table->integer('status')->default(1);
33
                $table->timestamps();
34
            }
35
        );
36
        
37
        Schema::create(
@@ 106-113 (lines=8) @@
103
        );
104
105
        Schema::create(
106
            'infra_subdomains', function (Blueprint $table) {
107
                $table->increments('id');
108
                $table->string('name')->nullable();
109
                $table->string('url')->nullable();
110
                $table->integer('status')->default(1);
111
                $table->integer('infra_domain_id')->nullable();
112
                $table->timestamps();
113
            }
114
        );
115
        Schema::create(
116
            'infra_dominio_rules', function (Blueprint $table) {
@@ 116-123 (lines=8) @@
113
            }
114
        );
115
        Schema::create(
116
            'infra_dominio_rules', function (Blueprint $table) {
117
                $table->increments('id');
118
                $table->string('name')->nullable();
119
                $table->string('url')->nullable();
120
                $table->integer('status')->default(1);
121
                $table->integer('infra_domain_id')->nullable();
122
                $table->timestamps();
123
            }
124
        );
125
126
        /**

database/migrations/2020_12_10_100000_create_computer_catalog_tables.php 1 location

@@ 26-35 (lines=10) @@
23
        );
24
25
        Schema::create(
26
            'computer_catalogs', function (Blueprint $table) {
27
                $table->increments('id');
28
                $table->string('name');
29
                $table->string('type');
30
                $table->string('location');
31
                $table->integer('status')->default(1);
32
                $table->integer('parent_id');
33
                $table->integer('computer_id');
34
                $table->timestamps();
35
            }
36
        );
37
        // Schema::create(
38
        //     'workflow_stages', function (Blueprint $table) {