src/DataFormatter.php
protected function getMappedKey($map, $key)
    {
        if (is_array($map)) {
            if (array_key_exists($key, $map)) {
                return $map[$key];
            } else {
                return $key;
            }
        }
        return $key;
    }
protected function getMappedKey($map, $key)
    {
        if (is_array($map)) {
            if (array_key_exists($key, $map)) {
                return $map[$key];
            } else {
                return $key;
            }
        }
        return $key;
    }
protected function getMappedKey ( $ map , $ key ) { if ( is_array ( $ map ) ) { if ( array_key_exists ( $ key , $ map ) ) { return $ map [ $ key ] ; } else { return $ key ; } } return $ key ; }
Helper function to get mapped field names

@param array $map
@param string $key
@return string
Helper function to get mapped field names