original_string: protected function getThreadForGuests()
      {
          return $this->_query->joinWith([
                  'forum' => function ($query) {
                      $query->andWhere([
                              Forum::tableName() . '.visible' => 1
                          ])->joinWith(['category' => function ($query) {
                              $query->andWhere([Category::tableName() . '.visible' => 1]);
                          }]);
                  }
              ])->limit(1)->one();
      }
code: protected function getThreadForGuests()
      {
          return $this->_query->joinWith([
                  'forum' => function ($query) {
                      $query->andWhere([
                              Forum::tableName() . '.visible' => 1
                          ])->joinWith(['category' => function ($query) {
                              $query->andWhere([Category::tableName() . '.visible' => 1]);
                          }]);
                  }
              ])->limit(1)->one();
      }
code_tokens: protected function getThreadForGuests ( ) { return $ this -> _query -> joinWith ( [ 'forum' => function ( $ query ) { $ query -> andWhere ( [ Forum :: tableName ( ) . '.visible' => 1 ] ) -> joinWith ( [ 'category' => function ( $ query ) { $ query -> andWhere ( [ Category :: tableName ( ) . '.visible' => 1 ] ) ; } ] ) ; } ] ) -> limit ( 1 ) -> one ( ) ; }
docstring: Returns thread for guests.
  @return Thread
docstring_tokens: Returns thread for guests .