protected findValueToMatch ( string $requestPath ) : string | ||
$requestPath | string | The request path to be matched |
return | string | value to match, or an empty string if $requestPath is empty or split string was not found |
protected function findValueToMatch($requestPath)
{
if ($this->splitString !== '') {
$splitStringPosition = strpos($requestPath, $this->splitString);
if ($splitStringPosition !== false) {
return substr($requestPath, 0, $splitStringPosition);
}
}
return $requestPath;
}