public function isUriPrefixExcluded($uri)
    {
        foreach ($this->excludedUriPrefixes as $excludedPrefix) {
            $excludedPrefix = '/' . trim($excludedPrefix, '/');
            if (mb_stripos($uri, $excludedPrefix) === 0) {
                return true;
            }
        }

        return false;
    }
public function isUriPrefixExcluded($uri)
    {
        foreach ($this->excludedUriPrefixes as $excludedPrefix) {
            $excludedPrefix = '/' . trim($excludedPrefix, '/');
            if (mb_stripos($uri, $excludedPrefix) === 0) {
                return true;
            }
        }

        return false;
    }
public function isUriPrefixExcluded ( $ uri ) { foreach ( $ this -> excludedUriPrefixes as $ excludedPrefix ) { $ excludedPrefix = '/' . trim ( $ excludedPrefix , '/' ) ; if ( mb_stripos ( $ uri , $ excludedPrefix ) === 0 ) { return true ; } } return false ; }
Checks if passed URI has an excluded prefix, when a root location is defined.

@param string $uri

@return bool
Checks if passed URI has an excluded prefix when a root location is defined .