original_string: public function actionThread($cid = null, $fid = null, $id = null, $slug = null)
      {
          $thread = (new ThreadVerifier([
              'categoryId' => $cid,
              'forumId' => $fid,
              'threadId' => $id,
              'threadSlug' => $slug
          ]))->verify();
          if (empty($thread)) {
              $this->error(Yii::t('podium/flash', 'Sorry! We can not find the thread you are looking for.'));
              return $this->redirect(['forum/index']);
          }
  
          $this->setMetaTags(
              $thread->forum->keywords ?: $thread->forum->category->keywords,
              $thread->forum->description ?: $thread->forum->category->description
          );
  
          $model = new Post;
          $model->subscribe = 1;
          $dataProvider = $model->search($thread->forum->id, $thread->id);
  
          return $this->render('thread', [
              'model' => $model,
              'dataProvider' => $dataProvider,
              'thread' => $thread,
          ]);
      }
code: public function actionThread($cid = null, $fid = null, $id = null, $slug = null)
      {
          $thread = (new ThreadVerifier([
              'categoryId' => $cid,
              'forumId' => $fid,
              'threadId' => $id,
              'threadSlug' => $slug
          ]))->verify();
          if (empty($thread)) {
              $this->error(Yii::t('podium/flash', 'Sorry! We can not find the thread you are looking for.'));
              return $this->redirect(['forum/index']);
          }
  
          $this->setMetaTags(
              $thread->forum->keywords ?: $thread->forum->category->keywords,
              $thread->forum->description ?: $thread->forum->category->description
          );
  
          $model = new Post;
          $model->subscribe = 1;
          $dataProvider = $model->search($thread->forum->id, $thread->id);
  
          return $this->render('thread', [
              'model' => $model,
              'dataProvider' => $dataProvider,
              'thread' => $thread,
          ]);
      }
code_tokens: public function actionThread ( $ cid = null , $ fid = null , $ id = null , $ slug = null ) { $ thread = ( new ThreadVerifier ( [ 'categoryId' => $ cid , 'forumId' => $ fid , 'threadId' => $ id , 'threadSlug' => $ slug ] ) ) -> verify ( ) ; if ( empty ( $ thread ) ) { $ this -> error ( Yii :: t ( 'podium/flash' , 'Sorry! We can not find the thread you are looking for.' ) ) ; return $ this -> redirect ( [ 'forum/index' ] ) ; } $ this -> setMetaTags ( $ thread -> forum -> keywords ? : $ thread -> forum -> category -> keywords , $ thread -> forum -> description ? : $ thread -> forum -> category -> description ) ; $ model = new Post ; $ model -> subscribe = 1 ; $ dataProvider = $ model -> search ( $ thread -> forum -> id , $ thread -> id ) ; return $ this -> render ( 'thread' , [ 'model' => $ model , 'dataProvider' => $ dataProvider , 'thread' => $ thread , ] ) ; }
docstring: Displaying the thread of given category ID, forum ID, own ID and slug.
  @param int $cid category ID
  @param int $fid forum ID
  @param int $id thread ID
  @param string $slug thread slug
  @return string|Response
docstring_tokens: Displaying the thread of given category ID forum ID own ID and slug .