Code Duplication    Length = 10-10 lines in 2 locations

src/Paystack.php 2 locations

@@ 442-451 (lines=10) @@
439
    /**
440
     * Create pages you can share with users using the returned slug
441
     */
442
    public function createPage()
443
    {
444
        $data = [
445
            "name" => request()->name,
446
            "description" => request()->description,
447
            "amount" => request()->amount
448
        ];
449
450
        return $this->paystack->pages()->create($data);
451
    }
452
453
    /**
454
     * Fetches all the pages the merchant has
@@ 477-486 (lines=10) @@
474
     * @param $pageId
475
     * @return array
476
     */
477
    public function updatePage($pageId)
478
    {
479
        $data = [
480
            "name" => request()->name,
481
            "description" => request()->description,
482
            "amount" => request()->amount
483
        ];
484
485
        return $this->paystack->pages()->update($pageId, $data);
486
    }
487
488
    /**
489
     * Creates a subaccount to be used for split payments . Required    params are business_name , settlement_bank , account_number ,   percentage_charge