original_string: protected function chooseView(){
          if($this->guestView){
              if(Yii::$app->user->isGuest){
                  $this->controller->layout=$this->guestLayout;
                  $this->view=$this->guestView;
              }
          }
          if($this->userView){
              if(!Yii::$app->user->isGuest){
                  $this->controller->layout=$this->userLayout;
                  $this->view=$this->userView;
              }
          }
      }
code: protected function chooseView(){
          if($this->guestView){
              if(Yii::$app->user->isGuest){
                  $this->controller->layout=$this->guestLayout;
                  $this->view=$this->guestView;
              }
          }
          if($this->userView){
              if(!Yii::$app->user->isGuest){
                  $this->controller->layout=$this->userLayout;
                  $this->view=$this->userView;
              }
          }
      }
code_tokens: protected function chooseView ( ) { if ( $ this -> guestView ) { if ( Yii :: $ app -> user -> isGuest ) { $ this -> controller -> layout = $ this -> guestLayout ; $ this -> view = $ this -> guestView ; } } if ( $ this -> userView ) { if ( ! Yii :: $ app -> user -> isGuest ) { $ this -> controller -> layout = $ this -> userLayout ; $ this -> view = $ this -> userView ; } } }
docstring: select view template of error view by different group
docstring_tokens: select view template of error view by different group