@param array  $params
@param string $key
@param null   $default

@return mixed|null
353700
public static function getDefaultIfEmpty(
        array $params,
        string $key,
        $default = null
    ) {
        if (self::isEmpty($params, $key)) {
            return $default;
        }

        return self::get(
            $params,
            $key,
            $default
        );
    }
257107
public function getParameter($key, $default = null)
    {
        return isset($this->options[$key]) ? $this->options[$key] : $default;
    }
1255636
public function query($key = null, $default = null)
    {
        $queries = $this->getQueryParams();

        return is_null($key) ? $queries : data_get($queries, $key, $default);
    }
1133293
public function get($parameterKey, $default = null)
    {
        if (is_array($parameterKey)) {
            return $this->getParameters($parameterKey);
        }

        return DotArray::get($this->items, $parameterKey, $default);
    }
490349
public function get($paramName = null, $default = null)
    {
        $result = $default;

        $params = $this->getRequestParams();

        if ($paramName === null) {
            $result = $params;
        } elseif (isset($params[$paramName])) {
            $result = $params[$paramName];
        }

        return $result;
    }
832130
public static function isEmpty(
        array $params,
        string $key
    ) {
        return empty(self::get($params, $key, null));
    }
1043935
public function getArgument($key, $default = null)
    {
        return array_key_exists($key, $this->arguments) ? $this->arguments[$key] : $default;
    }
1338613
public static function getInt(
        array $params,
        string $key,
        $default = null
    ) {
        if (self::has($params, $key)) {
            return (int)$params[$key];
        }

        return $default;
    }
1121600
public static function getRequired(
        array $params,
        string $key,
        $context = null
    ) {
        self::assertHas($params, $key, $context);

        return $params[$key];
    }
764575
public function input($key = null, $default = null)
    {
        if ($key === null) {
            return $this->input;
        }

        return array_key_exists($key, $this->input) ? $this->input[$key] : $default;
    }
1165466
public function get($key, $default = null)
	{
		return is_array($this->response) ? \Arr::get($this->response, $key, $default) : $default;
	}
273751
public function Get($Key = NULL, $Default = NULL) {
      if ($Key === NULL)
         return $this->GetRequestArguments (self::INPUT_GET);
      else
         return $this->GetValueFrom(self::INPUT_GET, $Key, $Default);
   }
480570
public function getArray($key, array $default = array())
    {
        $value = $this->get($key, null);

        return null !== $value ? (array) $value : (array) $default;
    }
656003
public function get($key, $default = null)
    {
        if(strpos($key, '.')) {
            return $this->getRecursive($key, $default);
        }

        if (array_key_exists($key, $this->parameters)) {
            return $this->parameters[$key];
        } else {
            return $default;
        }
    }
797288
public function options($key = null, $default = null)
    {
        $option = $this->getParameter('options', new Collection());

        if ($key == null) {
            return $option;
        }

        return $option->get($key, $default);
    }
217150
public function get(string $key,string $default=null)
  {
    $keys = explode('.',$key);
    $val = $this->confValues;

    for ($i=0; $i<count($keys); $i++) {
      $val = ( $val[ $keys[$i] ] ?? null);
      if (is_null($val)) break;
    }

    return $val ?? $default;
  }
452186
public static function findKey($params, $arg, $default = null)
    {
        if (is_object($params) === true)
        {
            $params = (array)$params;
        }

        if (isset($params[$arg]) === true)
        {
            $val = $params[$arg];
            unset($params[$arg]);

            return $val;
        } else
        {
            return $default;
        }
    }