Code Duplication    Length = 26-27 lines in 2 locations

src/migrations/2014_02_10_145728_notification_categories.php 1 location

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

src/migrations/2014_08_01_210813_create_notification_groups_table.php 1 location

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