Code Duplication    Length = 8-8 lines in 2 locations

src/Api/Card.php 2 locations

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