Code Duplication    Length = 19-20 lines in 2 locations

tests/database/migrations/2017_09_21_010109_create_books.php 1 location

@@ 6-25 (lines=20) @@
3
use Illuminate\Database\Schema\Blueprint;
4
use Illuminate\Database\Migrations\Migration;
5
6
class CreateBooks extends Migration
7
{
8
    public function up()
9
    {
10
        Schema::create('books', function (Blueprint $table) {
11
            $table->increments('id');
12
            $table->unsignedInteger('author_id');
13
            $table->timestamps();
14
15
            $table->text('description');
16
            $table->dateTime('published_at');
17
            $table->string('title');
18
        });
19
    }
20
21
    public function down()
22
    {
23
        //
24
    }
25
}
26

tests/database/migrations/2017_09_21_200000_create_profiles.php 1 location

@@ 6-24 (lines=19) @@
3
use Illuminate\Database\Schema\Blueprint;
4
use Illuminate\Database\Migrations\Migration;
5
6
class CreateProfiles extends Migration
7
{
8
    public function up()
9
    {
10
        Schema::create('profiles', function (Blueprint $table) {
11
            $table->increments('id');
12
            $table->unsignedInteger('author_id');
13
            $table->timestamps();
14
15
            $table->text('first_name');
16
            $table->text('last_name');
17
        });
18
    }
19
20
    public function down()
21
    {
22
        //
23
    }
24
}
25