original_string: public function verify()
      {
          if (!$this->validate()) {
              return null;
          }
          $this->_query = Thread::find()->where([
                              Thread::tableName() . '.id' => $this->threadId,
                              Thread::tableName() . '.slug' => $this->threadSlug,
                              Thread::tableName() . '.forum_id' => $this->forumId,
                              Thread::tableName() . '.category_id' => $this->categoryId,
                          ]);
          if (Podium::getInstance()->user->isGuest) {
              return $this->getThreadForGuests();
          }
          return $this->getThreadForMembers();
      }
code: public function verify()
      {
          if (!$this->validate()) {
              return null;
          }
          $this->_query = Thread::find()->where([
                              Thread::tableName() . '.id' => $this->threadId,
                              Thread::tableName() . '.slug' => $this->threadSlug,
                              Thread::tableName() . '.forum_id' => $this->forumId,
                              Thread::tableName() . '.category_id' => $this->categoryId,
                          ]);
          if (Podium::getInstance()->user->isGuest) {
              return $this->getThreadForGuests();
          }
          return $this->getThreadForMembers();
      }
code_tokens: public function verify ( ) { if ( ! $ this -> validate ( ) ) { return null ; } $ this -> _query = Thread :: find ( ) -> where ( [ Thread :: tableName ( ) . '.id' => $ this -> threadId , Thread :: tableName ( ) . '.slug' => $ this -> threadSlug , Thread :: tableName ( ) . '.forum_id' => $ this -> forumId , Thread :: tableName ( ) . '.category_id' => $ this -> categoryId , ] ) ; if ( Podium :: getInstance ( ) -> user -> isGuest ) { return $ this -> getThreadForGuests ( ) ; } return $ this -> getThreadForMembers ( ) ; }
docstring: Returns verified thread.
  @return Thread
docstring_tokens: Returns verified thread .