Code Duplication    Length = 13-15 lines in 2 locations

database/migrations/2014_10_12_000000_create_users_table.php 1 location

@@ 17-29 (lines=13) @@
14
     */
15
    public function up()
16
    {
17
        Schema::create('users', function(Blueprint $table) {
18
            $table->increments('user_id');
19
            $table->string('username')->unique;
20
            $table->string('first_name');
21
            $table->string('last_name');
22
            $table->string('email')->unique();
23
            $table->string('password');
24
            $table->rememberToken();
25
            $table->boolean('active');
26
            $table->boolean('is_installer')->default(0);
27
            $table->timestamp('password_expires')->nullable();
28
            $table->timestamps();
29
        });
30
        
31
        User::create([
32
            'user_id'      => 1,

database/migrations/2018_05_26_055053_create_customers_table.php 1 location

@@ 14-28 (lines=15) @@
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('customers', function(Blueprint $table) {
17
            $table->increments('cust_id');
18
            $table->text('name');
19
            $table->text('dba_name')->nullable();
20
            $table->text('address');
21
            $table->text('city');
22
            $table->text('state');
23
            $table->integer('zip');
24
            $table->boolean('active')->default(1);
25
            $table->softDeletes();
26
            $table->timestamps();
27
        });
28
    }
29
30
    /**
31
     * Reverse the migrations.