Get an input item from the request.

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

@return array|string
@throws \LogicException
320793
public function getInputValue($key = null, $default = null)
    {
        $input = $this->getInputSource()->all() + $this->query->all();

        return ArrayHelper::get($input, $key, $default);
    }
1286686
public function get($key, $default = null)
    {
        $this->checkLoaded();

        return Arr::get($this->data, $key, $default);
    }
977457
public function get($key, $default = null)
    {
        if ($this->exists($key)) {
            return $this->items[$key];
        }

        $result = $this->items;

        foreach (explode('.', $key) as $piece) {
            if (is_array($result) && array_key_exists($piece, $result)) {
                $result = $result[$piece];
            } else {
                return $default;
            }
        }

        return $result;
    }
1027246
private static function get($key = null, $default = null) {

		if(null !== $key && isset(static :: $method['method'], static :: $method['data'])) {

			if(static :: isMethod(static :: $method['method'])) {

				$helper  = new StringToArray();
				$data 	 = $helper -> execute($key, $default, static :: $method['data']);

				//Trim string
				if(true === isset(static :: $options[self :: TRIM_STRING])) {

					if(is_string($data) === 0) {
						$data = trim($data);
					}
				}

				//Convert empty string to NULL
				if(true === isset(static :: $options[self :: EMPTY_STRING_TO_NULL])) {

					if(is_string($data) && strlen($data) === 0) {
						$data = null;
					}
				}

				//Convert empty array to NULL
				if(true === isset(static :: $options[self :: EMPTY_ARRAY_TO_NULL])) {

					if(is_array($data) && count($data) === 0) {
						$data = null;
					}
				}

				$default = null === $data ? $default : $data;
			}

			static :: $method = [];
		}

		return $default;
	}
90675
public function get($key, $default = null)
    {
        if ($this->offsetExists($key)) {
            return $this->items[$key];
        }

        return Helper::value($default);
    }
68814
public function get($key = null, $default = null)
    {
        if (!func_num_args()) {
            return $this->collection->all();
        }

        return $this->fetchFromArray($key, $default);
    }
1209079
public function Post($Key = NULL, $Default = NULL) {
      if ($Key === NULL)
         return $this->GetRequestArguments (self::INPUT_POST);
      else
         return $this->GetValueFrom(self::INPUT_POST, $Key, $Default);
   }
1278076
public function get($key, $default = null)
    {
        list($baseKey, $searchKey) = $this->fetchKey($key);

        $value = $this->fetchValue($baseKey, $searchKey);

        return (! is_null($value)) ? $value : $default;
    }
957809
public function getKey(string $key = null): string
    {
        if ($key === null) {
            return $this->defaultKey;
        }

        if (!isset($this->tokens[$key])) {
            throw new \LogicException(sprintf('Token with name %s could not be found', $key));
        }

        return $key;
    }
154501
public function input($key = null, $default = null)
    {
        return data_get(
            $this->getInputSource()->all() + $this->query->all(), $key, $default
        );
    }
966547
public static function get(
        array $options,
        string $key,
        $default = null
    ) {
        if (array_key_exists($key, $options)) {
            return $options[$key];
        }

        return $default;
    }
863141
public function get($key, $default = null)
		{
			if (Arrays::exists($key, $this->attributes)) {
				return $this->attributes[$key];
			}

			return value($default);
		}
878330
public function get(string $key = null, $default = null)
    {
        $key = \str_replace('.', '/user-', $key);
        $value = Arr::get($this->items, $key);

        // We need to consider if the value pending to be deleted,
        // in this case return the default.
        if ($value === ':to-be-deleted:') {
            return \value($default);
        }

        // If the result is available from data, simply return it so we
        // don't have to fetch the same result again from the database.
        if (! \is_null($value)) {
            return $value;
        }

        if (\is_null($value = $this->handler->retrieve($key))) {
            return \value($default);
        }

        $this->put($key, $value);

        return $value;
    }
1117095
public function input($key=null, $default=null)
	{
	    if ($key && $key !== '*') {
	        return isset($_SERVER['argv'][$key]) ? $_SERVER['argv'][$key] : $default;
	    } else {
	        return isset($_SERVER['argv']) ? $_SERVER['argv'] : [];
	    }
	}
175925
public function input($key = null, $default = null)
    {
        $input = array_merge($this->getInputSource()->all(),$this->query->all());
        return isset($input[$key])?$input[$key]:$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;
        }
    }
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;
  }