original_string: public function getDescription()
      {
          $description = Yii::t('podium/view', 'No New Posts');
          $append = false;
  
          if ($this->locked) {
              $description = Yii::t('podium/view', 'Locked Thread');
              $append = true;
          } elseif ($this->pinned) {
              $description = Yii::t('podium/view', 'Pinned Thread');
              $append = true;
          } elseif ($this->posts >= Podium::getInstance()->podiumConfig->get('hot_minimum')) {
              $description = Yii::t('podium/view', 'Hot Thread');
              $append = true;
          }
          if ($this->userView) {
              if ($this->new_post_at > $this->userView->new_last_seen) {
                  if (!$append) {
                      $description = Yii::t('podium/view', 'New Posts');
                  } else {
                      $description .= ' (' . Yii::t('podium/view', 'New Posts') . ')';
                  }
              } elseif ($this->edited_post_at > $this->userView->edited_last_seen) {
                  if (!$append) {
                      $description = Yii::t('podium/view', 'Edited Posts');
                  } else {
                      $description = ' (' . Yii::t('podium/view', 'Edited Posts') . ')';
                  }
              }
          } else {
              if (!$append) {
                  $description = Yii::t('podium/view', 'New Posts');
              } else {
                  $description .= ' (' . Yii::t('podium/view', 'New Posts') . ')';
              }
          }
          return $description;
      }
code: public function getDescription()
      {
          $description = Yii::t('podium/view', 'No New Posts');
          $append = false;
  
          if ($this->locked) {
              $description = Yii::t('podium/view', 'Locked Thread');
              $append = true;
          } elseif ($this->pinned) {
              $description = Yii::t('podium/view', 'Pinned Thread');
              $append = true;
          } elseif ($this->posts >= Podium::getInstance()->podiumConfig->get('hot_minimum')) {
              $description = Yii::t('podium/view', 'Hot Thread');
              $append = true;
          }
          if ($this->userView) {
              if ($this->new_post_at > $this->userView->new_last_seen) {
                  if (!$append) {
                      $description = Yii::t('podium/view', 'New Posts');
                  } else {
                      $description .= ' (' . Yii::t('podium/view', 'New Posts') . ')';
                  }
              } elseif ($this->edited_post_at > $this->userView->edited_last_seen) {
                  if (!$append) {
                      $description = Yii::t('podium/view', 'Edited Posts');
                  } else {
                      $description = ' (' . Yii::t('podium/view', 'Edited Posts') . ')';
                  }
              }
          } else {
              if (!$append) {
                  $description = Yii::t('podium/view', 'New Posts');
              } else {
                  $description .= ' (' . Yii::t('podium/view', 'New Posts') . ')';
              }
          }
          return $description;
      }
code_tokens: public function getDescription ( ) { $ description = Yii :: t ( 'podium/view' , 'No New Posts' ) ; $ append = false ; if ( $ this -> locked ) { $ description = Yii :: t ( 'podium/view' , 'Locked Thread' ) ; $ append = true ; } elseif ( $ this -> pinned ) { $ description = Yii :: t ( 'podium/view' , 'Pinned Thread' ) ; $ append = true ; } elseif ( $ this -> posts >= Podium :: getInstance ( ) -> podiumConfig -> get ( 'hot_minimum' ) ) { $ description = Yii :: t ( 'podium/view' , 'Hot Thread' ) ; $ append = true ; } if ( $ this -> userView ) { if ( $ this -> new_post_at > $ this -> userView -> new_last_seen ) { if ( ! $ append ) { $ description = Yii :: t ( 'podium/view' , 'New Posts' ) ; } else { $ description .= ' (' . Yii :: t ( 'podium/view' , 'New Posts' ) . ')' ; } } elseif ( $ this -> edited_post_at > $ this -> userView -> edited_last_seen ) { if ( ! $ append ) { $ description = Yii :: t ( 'podium/view' , 'Edited Posts' ) ; } else { $ description = ' (' . Yii :: t ( 'podium/view' , 'Edited Posts' ) . ')' ; } } } else { if ( ! $ append ) { $ description = Yii :: t ( 'podium/view' , 'New Posts' ) ; } else { $ description .= ' (' . Yii :: t ( 'podium/view' , 'New Posts' ) . ')' ; } } return $ description ; }
docstring: Returns proper description for thread.
  @return string
docstring_tokens: Returns proper description for thread .