Code Duplication    Length = 29-29 lines in 2 locations

database/migrations/2017_05_10_151509_create_user_invitations_table.php 1 location

@@ 10-38 (lines=29) @@
7
/**
8
 * Class CreateUserInvitationsTable.
9
 */
10
class CreateUserInvitationsTable extends Migration
11
{
12
    /**
13
     * Run the migrations.
14
     *
15
     * @return void
16
     */
17
    public function up()
18
    {
19
        Schema::create('user_invitations', function (Blueprint $table) {
20
            $table->increments('id');
21
            $table->string('email')->unique();
22
            $table->string('state');
23
            $table->string('token');
24
            $table->integer('user_id')->unsigned()->nullable();
25
            $table->timestamps();
26
        });
27
    }
28
29
    /**
30
     * Reverse the migrations.
31
     *
32
     * @return void
33
     */
34
    public function down()
35
    {
36
        Schema::dropIfExists('user_invitations');
37
    }
38
}
39

database/migrations/2017_06_23_172230_create_progress_batches_table.php 1 location

@@ 10-38 (lines=29) @@
7
/**
8
 * Class CreateProgressBatchesTable.
9
 */
10
class CreateProgressBatchesTable extends Migration
11
{
12
    /**
13
     * Run the migrations.
14
     *
15
     * @return void
16
     */
17
    public function up()
18
    {
19
        Schema::create('progress_batches', function (Blueprint $table) {
20
            $table->increments('id');
21
            $table->integer('accomplished')->unsigned()->nullable();
22
            $table->integer('incidences')->unsigned()->nullable();
23
            $table->string('state');
24
            $table->string('type');
25
            $table->timestamps();
26
        });
27
    }
28
29
    /**
30
     * Reverse the migrations.
31
     *
32
     * @return void
33
     */
34
    public function down()
35
    {
36
        Schema::dropIfExists('progress_batches');
37
    }
38
}
39