private static function Braintree_SettlementBatchSummary::_underscoreCustomField in Commerce Braintree 7
1 call to Braintree_SettlementBatchSummary::_underscoreCustomField()
- Braintree_SettlementBatchSummary::generate in braintree_php/
lib/ Braintree/ SettlementBatchSummary.php
File
- braintree_php/
lib/ Braintree/ SettlementBatchSummary.php, line 25
Class
Code
private static function _underscoreCustomField($groupByCustomField, $records) {
$updatedRecords = array();
foreach ($records as $record) {
$camelized = Braintree_Util::delimiterToCamelCase($groupByCustomField);
$record[$groupByCustomField] = $record[$camelized];
unset($record[$camelized]);
$updatedRecords[] = $record;
}
return $updatedRecords;
}