src/Util/AntPathMatcher.php
protected function tokenizePath($path)
    {
        $parts = explode($this->pathSeparator, $path);
        if ($this->trimTokens) {
            for ($i = 0; $i < count($parts); $i++) {
                $parts[$i] = trim($parts[$i]);
                if ($parts[$i] === "") {
                    unset($parts[$i]);
                }
            }
        }
        return array_values($parts);
    }
protected function tokenizePath($path)
    {
        $parts = explode($this->pathSeparator, $path);
        if ($this->trimTokens) {
            for ($i = 0; $i < count($parts); $i++) {
                $parts[$i] = trim($parts[$i]);
                if ($parts[$i] === "") {
                    unset($parts[$i]);
                }
            }
        }
        return array_values($parts);
    }
protected function tokenizePath ( $ path ) { $ parts = explode ( $ this -> pathSeparator , $ path ) ; if ( $ this -> trimTokens ) { for ( $ i = 0 ; $ i < count ( $ parts ) ; $ i ++ ) { $ parts [ $ i ] = trim ( $ parts [ $ i ] ) ; if ( $ parts [ $ i ] === "" ) { unset ( $ parts [ $ i ] ) ; } } } return array_values ( $ parts ) ; }
Tokenize the given path String into parts, based on this matcher's settings.
@param string $path the path to tokenize
@return string[] the tokenized path parts
Tokenize the given path String into parts based on this matcher s settings .