Code Duplication    Length = 9-9 lines in 3 locations

app/Containers/Stripe/UI/API/Controllers/Controller.php 2 locations

@@ 24-32 (lines=9) @@
21
     *
22
     * @return  \Illuminate\Http\JsonResponse
23
     */
24
    public function createStripeAccount(CreateStripeAccountRequest $request)
25
    {
26
        $stripeAccount = Apiato::call('[email protected]', [new DataTransporter($request)]);
27
28
        return $this->accepted([
29
            'message'           => 'Stripe account created successfully.',
30
            'stripe_account_id' => $stripeAccount->id,
31
        ]);
32
    }
33
34
    /**
35
     * @param \App\Containers\Stripe\UI\API\Requests\UpdateStripeAccountRequest $request
@@ 39-47 (lines=9) @@
36
     *
37
     * @return  \Illuminate\Http\JsonResponse
38
     */
39
    public function updateStripeAccount(UpdateStripeAccountRequest $request)
40
    {
41
        $stripeAccount = Apiato::call('[email protected]', [new DataTransporter($request)]);
42
43
        return $this->accepted([
44
            'message'           => 'Stripe account updated successfully.',
45
            'stripe_account_id' => $stripeAccount->id,
46
        ]);
47
    }
48
49
}
50

app/Containers/Wepay/UI/API/Controllers/Controller.php 1 location

@@ 23-31 (lines=9) @@
20
     *
21
     * @return  \Illuminate\Http\JsonResponse
22
     */
23
    public function createWepayAccount(CreateWepayAccountRequest $request)
24
    {
25
        $wepayAccount = Apiato::call('[email protected]', [new DataTransporter($request)]);
26
27
        return $this->accepted([
28
            'message'        => 'Wepay account created successfully.',
29
            'wepayAccountId' => $wepayAccount->id,
30
        ]);
31
    }
32
33
}
34