original_string: public function print_login(){
          $url = $this->boxnetclient->get_login_url();
          if ($this->options['ajax']) {
              $ret = array();
              $popup_btn = new stdClass();
              $popup_btn->type = 'popup';
              $popup_btn->url = $url->out(false);
              $ret['login'] = array($popup_btn);
              return $ret;
          } else {
              echo html_writer::link($url, get_string('login', 'repository'), array('target' => '_blank'));
          }
      }
code: public function print_login(){
          $url = $this->boxnetclient->get_login_url();
          if ($this->options['ajax']) {
              $ret = array();
              $popup_btn = new stdClass();
              $popup_btn->type = 'popup';
              $popup_btn->url = $url->out(false);
              $ret['login'] = array($popup_btn);
              return $ret;
          } else {
              echo html_writer::link($url, get_string('login', 'repository'), array('target' => '_blank'));
          }
      }
code_tokens: public function print_login ( ) { $ url = $ this -> boxnetclient -> get_login_url ( ) ; if ( $ this -> options [ 'ajax' ] ) { $ ret = array ( ) ; $ popup_btn = new stdClass ( ) ; $ popup_btn -> type = 'popup' ; $ popup_btn -> url = $ url -> out ( false ) ; $ ret [ 'login' ] = array ( $ popup_btn ) ; return $ ret ; } else { echo html_writer :: link ( $ url , get_string ( 'login' , 'repository' ) , array ( 'target' => '_blank' ) ) ; } }
docstring: Return login form
  
  @return array
docstring_tokens: Return login form