src/Routing/RouteParameterBinder.php
/**
	 * Combine a set of parameter matches with the route's keys.
	 *
	 * @param array $matches
	 * @return array
	 */
Combine a set of parameter matches with the route's keys.
@param array $matches
@return array
Combine a set of parameter matches with the route ' s keys . @param array $matches @return array
protected function matchToKeys(array $matches) {
		$parameterNames = $this->route->parameterNames();
		if (empty($parameterNames)) {
			return array();
		}
		$parameters = array_intersect_key($matches, array_flip($parameterNames));
		return array_filter($parameters, function ($value) {
			return is_string($value) && strlen($value) > 0;
		});
	}
protected function matchToKeys ( array $ matches ) { $ parameterNames = $ this -> route -> parameterNames ( ) ; if ( empty ( $ parameterNames ) ) { return array ( ) ; } $ parameters = array_intersect_key ( $ matches , array_flip ( $ parameterNames ) ) ; return array_filter ( $ parameters , function ( $ value ) { return is_string ( $ value ) && strlen ( $ value ) > 0 ; } ) ; }
Combine a set of parameter matches with the route's keys.
Combine a set of parameter matches with the route ' s keys .