Helper/Discount.php
public function getAmastyGiftCardCodesFromTotals($totals)
    {
        $giftCardCodes = explode(',', $totals[self::AMASTY_GIFTCARD]->getTitle());
        return array_map('trim', $giftCardCodes);
    }
public function getAmastyGiftCardCodesFromTotals($totals)
    {
        $giftCardCodes = explode(',', $totals[self::AMASTY_GIFTCARD]->getTitle());
        return array_map('trim', $giftCardCodes);
    }
public function getAmastyGiftCardCodesFromTotals ( $ totals ) { $ giftCardCodes = explode ( ',' , $ totals [ self :: AMASTY_GIFTCARD ] -> getTitle ( ) ) ; return array_map ( 'trim' , $ giftCardCodes ) ; }
Get Amasty Gift Card codes, stored comma separated in total title field, return as array.

@param array $totals totals array collected from quote
@return array
Get Amasty Gift Card codes stored comma separated in total title field return as array .