protected static function _searchPaths($paths, $library) {
		$result = [];

		foreach ($paths as $tpl => $opts) {
			if (is_int($tpl)) {
				$tpl = $opts;
				$opts = [];
			}
			if (isset($opts['libraries']) && !in_array($library, (array) $opts['libraries'])) {
				continue;
			}
			$result[] = $tpl;
		}
		return $result;
	}
protected static function _searchPaths($paths, $library) {
		$result = [];

		foreach ($paths as $tpl => $opts) {
			if (is_int($tpl)) {
				$tpl = $opts;
				$opts = [];
			}
			if (isset($opts['libraries']) && !in_array($library, (array) $opts['libraries'])) {
				continue;
			}
			$result[] = $tpl;
		}
		return $result;
	}
protected static function _searchPaths ( $ paths , $ library ) { $ result = [ ] ; foreach ( $ paths as $ tpl => $ opts ) { if ( is_int ( $ tpl ) ) { $ tpl = $ opts ; $ opts = [ ] ; } if ( isset ( $ opts [ 'libraries' ] ) && ! in_array ( $ library , ( array ) $ opts [ 'libraries' ] ) ) { continue ; } $ result [ ] = $ tpl ; } return $ result ; }
Returns the list of valid search path templates for the given service location lookup.

@see lithium\core\Libraries::$_paths
@see lithium\core\Libraries::_search()
@param array $paths The list of all possible path templates from `Libraries::$_paths`.
@param string $library The name of the library being searched.
@return array Returns an array of valid path template strings.
Returns the list of valid search path templates for the given service location lookup .