Phly\Conduit\Next::getBorder PHP Method

getBorder() private method

Determine the border between the request path and current route
private getBorder ( string $path, string $route ) : string
$path string
$route string
return string
    private function getBorder($path, $route)
    {
        $border = strlen($path) > strlen($route) ? $path[strlen($route)] : '';
        $border = $route === '/' ? '/' : $border;
        return $border;
    }