private static function prepare_tax_rate($tax_rate) { foreach ($tax_rate as $key => $value) { if (method_exists(__CLASS__, 'format_' . $key)) { $tax_rate[$key] = call_user_func(array(__CLASS__, 'format_' . $key), $value); } } return $tax_rate; }