src/Routing/RouteParameterBinder.php
/**
	 * Replace null parameters with their defaults.
	 *
	 * @param array $parameters
	 * @return array
	 */
Replace null parameters with their defaults.
@param array $parameters
@return array
Replace null parameters with their defaults . @param array $parameters @return array
protected function replaceDefaults(array $parameters) {
		foreach ($parameters as $key => $value) {
			if (!$parameters[$key]) {
				if (isset($this->route->defaults[$key])) {
					$parameters[$key] = $this->route->defaults[$key];
				}
			}
		}
		foreach ($this->route->defaults as $key => $value) {
			if (!isset($parameters[$key])) {
				$parameters[$key] = $value;
			}
		}
		return $parameters;
	}
protected function replaceDefaults ( array $ parameters ) { foreach ( $ parameters as $ key => $ value ) { if ( ! $ parameters [ $ key ] ) { if ( isset ( $ this -> route -> defaults [ $ key ] ) ) { $ parameters [ $ key ] = $ this -> route -> defaults [ $ key ] ; } } } foreach ( $ this -> route -> defaults as $ key => $ value ) { if ( ! isset ( $ parameters [ $ key ] ) ) { $ parameters [ $ key ] = $ value ; } } return $ parameters ; }
Replace null parameters with their defaults.
Replace null parameters with their defaults .