Code Duplication    Length = 28-29 lines in 2 locations

src/Modules/Core/Database/Migrations/2016_01_24_123630_settings.php 1 location

@@ 6-34 (lines=29) @@
3
use Illuminate\Database\Schema\Blueprint;
4
use Illuminate\Database\Migrations\Migration;
5
6
class Settings extends Migration
7
{
8
	/**
9
	 * Run the migrations.
10
	 *
11
	 * @return void
12
	 */
13
	public function up()
14
	{
15
		Schema::create('settings', function (Blueprint $table) {
16
            $table->increments('id');
17
            $table->string('name',100);
18
            $table->string('key',100)->unique();
19
            $table->string('value',100);
20
            $table->softDeletes();
21
            $table->timestamps();
22
        });
23
	}
24
25
	/**
26
	 * Reverse the migrations.
27
	 *
28
	 * @return void
29
	 */
30
	public function down()
31
	{
32
		Schema::drop('settings');
33
	}
34
}

src/Modules/Reporting/Database/Migrations/2016_01_19_112350_reports.php 1 location

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