original_string: public function redirect($url, $code = 302)
      {
          if ($this->data()->virtualOwner) {
              $parts = explode('#', $url);
              if (isset($parts[1])) {
                  $url = $parts[0] . '#' . $this->data()->virtualOwner->ID;
              }
          }
  
          return parent::redirect($url, $code);
      }
code: public function redirect($url, $code = 302)
      {
          if ($this->data()->virtualOwner) {
              $parts = explode('#', $url);
              if (isset($parts[1])) {
                  $url = $parts[0] . '#' . $this->data()->virtualOwner->ID;
              }
          }
  
          return parent::redirect($url, $code);
      }
code_tokens: public function redirect ( $ url , $ code = 302 ) { if ( $ this -> data ( ) -> virtualOwner ) { $ parts = explode ( '#' , $ url ) ; if ( isset ( $ parts [ 1 ] ) ) { $ url = $ parts [ 0 ] . '#' . $ this -> data ( ) -> virtualOwner -> ID ; } } return parent :: redirect ( $ url , $ code ) ; }
docstring: if this is a virtual request, change the hash if set.
  
  @param string $url
  @param int $code
  
  @return HTTPResponse
docstring_tokens: if this is a virtual request change the hash if set .