protected static function _locatePath($type, $params) {
		if (!isset(static::$_paths[$type])) {
			return null;
		}
		$params += ['app' => LITHIUM_APP_PATH, 'root' => LITHIUM_LIBRARY_PATH];

		foreach (static::$_paths[$type] as $path) {
			if (is_dir($path = str_replace('\\', '/', Text::insert($path, $params)))) {
				return $path;
			}
		}
	}
protected static function _locatePath($type, $params) {
		if (!isset(static::$_paths[$type])) {
			return null;
		}
		$params += ['app' => LITHIUM_APP_PATH, 'root' => LITHIUM_LIBRARY_PATH];

		foreach (static::$_paths[$type] as $path) {
			if (is_dir($path = str_replace('\\', '/', Text::insert($path, $params)))) {
				return $path;
			}
		}
	}
protected static function _locatePath ( $ type , $ params ) { if ( ! isset ( static :: $ _paths [ $ type ] ) ) { return null ; } $ params += [ 'app' => LITHIUM_APP_PATH , 'root' => LITHIUM_LIBRARY_PATH ] ; foreach ( static :: $ _paths [ $ type ] as $ path ) { if ( is_dir ( $ path = str_replace ( '\\' , '/' , Text :: insert ( $ path , $ params ) ) ) ) { return $ path ; } } }
Helper function for returning known paths given a certain type.

@see lithium\core\Libraries::$_paths
@param string $type Path type (specified in `Libraries::$_paths`).
@param array $params Path parameters.
@return string|null Valid path name or `null` when no of path of given tpe is set.
Helper function for returning known paths given a certain type .