Code Duplication    Length = 8-8 lines in 2 locations

src/Api/Card.php 2 locations

@@ 74-81 (lines=8) @@
71
    /**
72
     * @param Domain $card
73
     */
74
    public function update(Domain $card)
75
    {
76
        self::assertNotEmpty(@$card->customer->id && $card->id, 'CustomerId or Id cannot be empty.');
77
78
        $card->updateStore(
79
            $this->doRequest('PATCH', self::path($card->customer->id, $card->id), $card->getUpdateData())->getData()
80
        );
81
    }
82
83
    /**
84
     * @param Domain $card
@@ 86-93 (lines=8) @@
83
    /**
84
     * @param Domain $card
85
     */
86
    public function destroy(Domain $card)
87
    {
88
        self::assertNotEmpty(@$card->customer->id && $card->id, 'CustomerId or Id cannot be empty.');
89
90
        $card->updateStore(
91
            $this->doRequest('DELETE', self::path($card->customer->id, $card->id), $card->getUpdateData())->toArray()
92
        );
93
    }
94
}
95