src/Template/Extension/URI.php
protected function checkUriSegmentMatch($key, $string, $returnOnTrue = null, $returnOnFalse = null)
    {
        if (\array_key_exists($key, $this->parts) && $this->parts[$key] === $string) {
            return $returnOnTrue ?? true;
        }

        return $returnOnFalse ?? false;
    }
protected function checkUriSegmentMatch($key, $string, $returnOnTrue = null, $returnOnFalse = null)
    {
        if (\array_key_exists($key, $this->parts) && $this->parts[$key] === $string) {
            return $returnOnTrue ?? true;
        }

        return $returnOnFalse ?? false;
    }
protected function checkUriSegmentMatch ( $ key , $ string , $ returnOnTrue = null , $ returnOnFalse = null ) { if ( \ array_key_exists ( $ key , $ this -> parts ) && $ this -> parts [ $ key ] === $ string ) { return $ returnOnTrue ?? true ; } return $ returnOnFalse ?? false ; }
Perform a URI segment match.
@param  integer $key
@param  string  $string
@param  mixed   $returnOnTrue
@param  mixed   $returnOnFalse
@return mixed
Perform a URI segment match .