Code Duplication    Length = 31-34 lines in 2 locations

app/Containers/Payment/Data/Migrations/2000_01_02_000001_create_payment_accounts_table.php 1 location

@@ 11-41 (lines=31) @@
8
 *
9
 * @author  Mahmoud Zalt  <[email protected]>
10
 */
11
class CreatePaymentAccountsTable extends Migration
12
{
13
14
    /**
15
     * Run the migrations.
16
     */
17
    public function up()
18
    {
19
        Schema::create('payment_accounts', function (Blueprint $table) {
20
21
            $table->increments('id');
22
            $table->string('name')->nullable();
23
24
            $table->morphs('accountable');
25
26
            $table->integer('user_id')->unsigned();
27
            $table->foreign('user_id')->references('id')->on('users');
28
29
            $table->timestamps();
30
            $table->softDeletes();
31
        });
32
    }
33
34
    /**
35
     * Reverse the migrations.
36
     */
37
    public function down()
38
    {
39
        Schema::drop('payment_accounts');
40
    }
41
}
42

app/Containers/Stripe/Data/Migrations/2016_07_08_110947_create_stripe_accounts_table.php 1 location

@@ 11-44 (lines=34) @@
8
 *
9
 * @author  Mahmoud Zalt  <[email protected]>
10
 */
11
class CreateStripeAccountsTable extends Migration
12
{
13
14
    /**
15
     * Run the migrations.
16
     *
17
     * @return void
18
     */
19
    public function up()
20
    {
21
        Schema::create('stripe_accounts', function (Blueprint $table) {
22
            $table->increments('id');
23
24
            $table->string('customer_id');
25
            $table->string('card_id')->nullable();
26
            $table->string('card_funding')->nullable();
27
            $table->string('card_last_digits')->nullable();
28
            $table->string('card_fingerprint')->nullable();
29
30
            $table->timestamps();
31
            $table->softDeletes();
32
        });
33
    }
34
35
    /**
36
     * Reverse the migrations.
37
     *
38
     * @return void
39
     */
40
    public function down()
41
    {
42
        Schema::drop('stripe_accounts');
43
    }
44
}
45