@param  string       $key
@param  string|array $default = ''

@return string
766856
public function tag($key, $default = '')
    {
        if (!($values = $this->get($key, $default))) {
            return '';
        }

        if (!is_array($values)) {
            $values = [$values];
        }

        $html = '';

        foreach ($this->config['tags'] as $tag) {
            $class = __NAMESPACE__.'\\Tags\\'.$tag;

            foreach ($values as $value) {
                $html .= $class::tag($key, $value);
            }
        }

        return $html;
    }
1005232
public function get($key = null, $default = null)
	{
		if ( is_null($key) )
		{
			return $this->get;
		}

		return Arr::get($this->get, $key, $default);
	}
1349250
public function getParam($key, $default = null)
        {
            $key = (string) $key;
            if (isset($this->_params[$key])) {
                return $this->_params[$key];
            }

            return $default;
        }
1073123
public static function getString(array $array, $key, string $default = '') : string
    {
        $key = (string) $key;

        if ($array[$key] ?? 0) {
            return (string) $array[$key];
        }

        return $default;
    }
812725
public function config(string $key = null, $default = null)
    {
        $key = $key ? sprintf('%s.%s', $this->getId(), $key) : $this->getId();

        return config($key, $default);
    }
1058243
public function server( $key, $default = null ) {
		if ( !isset( $this->SERVER[strtoupper( $key )] ) ) 
		{
			return $default;
		}
		return $this->SERVER[strtoupper( $key )];
	}
1237751
protected function json($key = null, $default = null)
    {
        if (null === $key) {
            return Request::json()->all();
        } else {
            return Request::json($key, $default);
        }
    }
1307760
public function getParam($key, $default = null)
    {
        if (isset($this->parameters[$key])) {
            return $this->parameters[$key];
        }

        return $default;
    }
480570
public function getArray($key, array $default = array())
    {
        $value = $this->get($key, null);

        return null !== $value ? (array) $value : (array) $default;
    }
1002396
function get($key, $default = null)
    {
        $index = array_search($key, $this->keys);

        if ($index !== false) {
            return $this->values[$index];
        } else {
            return $default;
        }
    }
44819
public function getArray($key, array $default = [])
	{
		$key = strtolower($key);
		
		if(array_key_exists($key, $this->data))
		{
			if(is_array($this->data[$key]))
			{
				return array_values($this->data[$key]);
			}
				
			return (array)$this->data[$key];
		}
		
		return $default;
	}
679601
public function getParameter($key, $default = null) {
        $parameter = array_get($this->parameters, $key, $default);

        if ($parameter === null) {
            return $default;
        }

        return $parameter;
    }
1246106
public function get($key, $default = null)
    {
        $data = Arr::get($this->config, $key);

        if ($data === null) {
            $data = is_array($default) ? new self($default) : $default;
        }

        return $data;
    }
784741
public function response_info($key = null, $default = null)
	{
		if (func_num_args() == 0)
		{
			return $this->response_info;
		}

		return \Arr::get($this->response_info, $key, $default);
	}
1101921
public function get(string $key, $default = null)
	{
		[$file, $path] = $this->parseKey($key);

		if(!isset($this->configuration[$file]))
		{
			$this->load($file);
		}

		return $path === null ? $this->configuration[$file] : Arr::get($this->configuration[$file], $path, $default);
	}
52800
public static function get($key, $default=null) {
		if( !isset(static::$main) ) {
			return $default;
		}
		return isset(static::$main->$key) ? static::$main->$key : $default;
	}
1250709
public function getOne($key, $default = null)
    {
        $ret = $default;
        $all = $this->get($key);
        if (count($all) > 0) {
            $ret = array_shift($all);
        }

        return $ret;
    }