protected function prepareListAccountAddress(array $addresses)
    {
        $prepared = array();

        foreach ($addresses as $address_id => $items) {
            $prepared[$address_id]['items'] = $items;
            $prepared[$address_id]['locked'] = !$this->address->canDelete($address_id);
        }

        return $prepared;
    }
protected function prepareListAccountAddress(array $addresses)
    {
        $prepared = array();

        foreach ($addresses as $address_id => $items) {
            $prepared[$address_id]['items'] = $items;
            $prepared[$address_id]['locked'] = !$this->address->canDelete($address_id);
        }

        return $prepared;
    }
protected function prepareListAccountAddress ( array $ addresses ) { $ prepared = array ( ) ; foreach ( $ addresses as $ address_id => $ items ) { $ prepared [ $ address_id ] [ 'items' ] = $ items ; $ prepared [ $ address_id ] [ 'locked' ] = ! $ this -> address -> canDelete ( $ address_id ) ; } return $ prepared ; }
Prepares an array of user addresses
@param array $addresses
@return array
Prepares an array of user addresses