Code Duplication    Length = 25-25 lines in 3 locations

database/migrations/2016_11_24_174808_create_studies_table.php 1 location

@@ 7-31 (lines=25) @@
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
class CreateStudiesTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('studies', function (Blueprint $table) {
17
            $table->increments('id');
18
            $table->timestamps();
19
        });
20
    }
21
22
    /**
23
     * Reverse the migrations.
24
     *
25
     * @return void
26
     */
27
    public function down()
28
    {
29
        Schema::dropIfExists('studies');
30
    }
31
}
32

database/migrations/2016_11_30_191930_create_courses_table.php 1 location

@@ 7-31 (lines=25) @@
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
class CreateCoursesTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('courses', function (Blueprint $table) {
17
            $table->increments('id');
18
            $table->timestamps();
19
        });
20
    }
21
22
    /**
23
     * Reverse the migrations.
24
     *
25
     * @return void
26
     */
27
    public function down()
28
    {
29
        Schema::dropIfExists('courses');
30
    }
31
}
32

database/migrations/2016_12_10_232027_create_brands_table.php 1 location

@@ 7-31 (lines=25) @@
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
class CreateBrandsTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('brands', function (Blueprint $table) {
17
            $table->increments('id');
18
            $table->timestamps();
19
        });
20
    }
21
22
    /**
23
     * Reverse the migrations.
24
     *
25
     * @return void
26
     */
27
    public function down()
28
    {
29
        Schema::dropIfExists('brands');
30
    }
31
}
32