original_string: public function search($forumId, $threadId)
      {
          $dataProvider = new ActiveDataProvider([
              'query' => static::find()->where(['forum_id' => $forumId, 'thread_id' => $threadId]),
              'pagination' => [
                  'defaultPageSize' => 10,
                  'pageSizeLimit' => false,
                  'forcePageParam' => false
              ],
          ]);
          $dataProvider->sort->defaultOrder = ['id' => SORT_ASC];
          return $dataProvider;
      }
code: public function search($forumId, $threadId)
      {
          $dataProvider = new ActiveDataProvider([
              'query' => static::find()->where(['forum_id' => $forumId, 'thread_id' => $threadId]),
              'pagination' => [
                  'defaultPageSize' => 10,
                  'pageSizeLimit' => false,
                  'forcePageParam' => false
              ],
          ]);
          $dataProvider->sort->defaultOrder = ['id' => SORT_ASC];
          return $dataProvider;
      }
code_tokens: public function search ( $ forumId , $ threadId ) { $ dataProvider = new ActiveDataProvider ( [ 'query' => static :: find ( ) -> where ( [ 'forum_id' => $ forumId , 'thread_id' => $ threadId ] ) , 'pagination' => [ 'defaultPageSize' => 10 , 'pageSizeLimit' => false , 'forcePageParam' => false ] , ] ) ; $ dataProvider -> sort -> defaultOrder = [ 'id' => SORT_ASC ] ; return $ dataProvider ; }
docstring: Searches for posts.
  @param int $forumId
  @param int $threadId
  @return ActiveDataProvider
docstring_tokens: Searches for posts .