Transforms the provided key to a environment variable name

@param string $key
@return string
971485
private function transformKey($key)
    {
        $regEx = '/(?#! splitCamelCase Rev:20140412)
            # Split camelCase "words". Two global alternatives. Either g1of2:
              (?<=[a-z])      # Position is after a lowercase,
              (?=[A-Z])       # and before an uppercase letter.
            | (?<=[A-Z])      # Or g2of2; Position is after uppercase,
              (?=[A-Z][a-z])  # and before upper-then-lower case.
            /x';

        $words   = preg_split($regEx, $key);
        $envName = implode('_', $words);
        $envName = str_replace(['.', '_', '-'], '_', $envName);
        $envName = strtoupper($envName);

        return $envName;
    }
473366
public function getAttribute($key)
    {
        // Sanitize the key
        $key = preg_replace('/^_/', '', $key);

        // Decoder ring for legacy keys
        switch ($key) {
            case 'size':
                $key = 'file_size';
                break;
            case 'filename':
            case 'original_filename':
                $key = 'file_name';
                break;
        }

        return $this->getInstance()
            ->getAttribute("{$this->name}_{$key}");
    }
408443
protected function normalizeKey($key)
    {
        if (preg_match(static::$arrayKey, $key, $matches)) {
            $key = $matches[1];
            return $key;
        }
        return $key;
    }
28435
protected function setHeaderName(string $key)
        {
            $key = strtr(strtolower($key), '_', '-');
            if (strpos($key, 'http-') === 0) {
                $key = substr($key, 5);
            }
            return $key;
        }
115955
public function get(string $key): string
    {
        return $this->handle->hGet($this->name, $key);
    }
826963
protected function normalizeKey($key)
    {
        if (null !== $this->keyNormalizer) {
            return call_user_func($this->keyNormalizer, $key);
        }

        return static::fixNodeName($key);
    }
1013395
private function prefix($key)
    {
        if (strtoupper(substr(PHP_OS, 0, 3)) != 'WIN' && is_file($key) && substr($key, 0, 7) != 'file://') {
            $key = 'file://' . $key;
        }

        return $key;
    }
1198792
public static String getPropertyEnv(String key)
	{
		String env = sanitizeEnvVarNAme(key);
		return getProperty(env);
	}
661841
public static function normalizeKey($key)
    {
        $key = strtr(strtolower($key), '_', '-');
        if (strpos($key, 'http-') === 0) {
            $key = substr($key, 5);
        }

        return $key;
    }
1229057
private function applyPrefix($key)
    {
        $prefix = (string) $this->client->getOption(Redis::OPT_PREFIX);

        return $prefix.$key;
    }
337408
public function normalize($key)
    {
        foreach ($this->chain as $normalizer) {
            $key = $normalizer->normalize($key);
        }

        return $key;
    }
362431
public static function getEnv($key)
    {
        switch (true) {
            case array_key_exists($key, $_ENV):
                return $_ENV[$key];
            case array_key_exists($key, $_SERVER);
                return $_SERVER[$key];
            default:
                return getenv($key);
        }
    }
752032
protected function _normalizeKey($key)
    {
        try {
            return $this->_normalizeString($key);
        } catch (InvalidArgumentException $e) {
            throw $this->_createOutOfRangeException($this->__('Invalid key'), null, $e, $key);
        }
    }
837610
public function getNameByKey($key)
    {
        return (array_key_exists($key, $this->_languages)) ? $this->_languages[$key] : null;
    }
286078
public function getAbsoluteConfigKey($key) {
        $prefix = null;
        $parser = $this->getConfigParser();
        $steps = explode('.', $key);
        $config = $this->config;

        foreach ($steps as $step) {
            if ( ! is_array($config)) {
                break;
            }

            array_shift($steps);
            $config = array_get($config, $step);

            if ($parser->isReference($config)) {
                array_unshift($steps, $parser->parseReferencePath($config));
                $config = implode('.', $steps);

                return $this->getAbsoluteConfigKey($config);
            }
        }

        return $key;
    }
1134845
private function getEnv($key)
    {
        $key = strtoupper(str_replace('-', '_', $key));

        if (strpos($key, 'BOLT_') !== 0) {
            $key = 'BOLT_' . $key;
        }

        return getenv($key);
    }
496160
public static function getEnv($key = '')
    {
        if (self::$env_setting === null) {
            return self::get($key);
        }

        $arr = explode('.', $key);

        $value = null;
        foreach ($arr as $kv) {
            if (empty($kv)) {
                $value = null;
                break;
            }
            if ($value === null) {
                if (isset(self::$env_setting->$kv)) {
                    $value =  self::$env_setting->$kv;
                    continue;
                }
                $value = null;
                break;
            } else {
                if (isset($value->$kv)) {
                    $value =  $value->$kv;
                    continue;
                }
                $value = null;
                break;
            }
        }

        if ($value === null) {
            return self::get($key);
        }
        return $value;
    }