public function matchAny($relativePath, $globExpressionList)
    {
        if (!is_array($globExpressionList) && (!$globExpressionList instanceof \Traversable)
            && (!is_null($globExpressionList))) {
            $message = "Given value \"$globExpressionList\" is not a valid glob expression list. ".
                "Valid entry must be a list of glob expressions e.g. [\"*.txt\", \"*.pdf\"].";

            throw new \InvalidArgumentException($message);
        }

        if (count($globExpressionList) > 0) {
            return $this->isMatchInList($relativePath, $globExpressionList);
        }

        return false;
    }
public function matchAny($relativePath, $globExpressionList)
    {
        if (!is_array($globExpressionList) && (!$globExpressionList instanceof \Traversable)
            && (!is_null($globExpressionList))) {
            $message = "Given value \"$globExpressionList\" is not a valid glob expression list. ".
                "Valid entry must be a list of glob expressions e.g. [\"*.txt\", \"*.pdf\"].";

            throw new \InvalidArgumentException($message);
        }

        if (count($globExpressionList) > 0) {
            return $this->isMatchInList($relativePath, $globExpressionList);
        }

        return false;
    }
public function matchAny ( $ relativePath , $ globExpressionList ) { if ( ! is_array ( $ globExpressionList ) && ( ! $ globExpressionList instanceof \ Traversable ) && ( ! is_null ( $ globExpressionList ) ) ) { $ message = "Given value \"$globExpressionList\" is not a valid glob expression list. " . "Valid entry must be a list of glob expressions e.g. [\"*.txt\", \"*.pdf\"]." ; throw new \ InvalidArgumentException ( $ message ) ; } if ( count ( $ globExpressionList ) > 0 ) { return $ this -> isMatchInList ( $ relativePath , $ globExpressionList ) ; } return false ; }
Returns true if given relative path matches against at least one glob expression from provided list.

@param string $relativePath
@param array  $globExpressionList List of glob expressions, e.g. ["*.txt", "*.pdf"].

@throws \InvalidArgumentException If $globExpressionList is not a \Traversable instance.

@return bool
Returns true if given relative path matches against at least one glob expression from provided list .