protected function createWhenUri($uri)
    {
        $when = static::$firing['when'];

        if (substr($when, -1) !== '/') {
            $when .= '/';
        }

        if(substr($uri, 0,1) === '/'){
            $uri = substr($uri, 1, strlen($uri));
        }

        return $when.$uri;
    }
protected function createWhenUri($uri)
    {
        $when = static::$firing['when'];

        if (substr($when, -1) !== '/') {
            $when .= '/';
        }

        if(substr($uri, 0,1) === '/'){
            $uri = substr($uri, 1, strlen($uri));
        }

        return $when.$uri;
    }
protected function createWhenUri ( $ uri ) { $ when = static :: $ firing [ 'when' ] ; if ( substr ( $ when , - 1 ) !== '/' ) { $ when .= '/' ; } if ( substr ( $ uri , 0 , 1 ) === '/' ) { $ uri = substr ( $ uri , 1 , strlen ( $ uri ) ) ; } return $ when . $ uri ; }
prapare uri to merge with when url, and return it.

@param string $uri
@return string
prapare uri to merge with when url and return it .