original_string: public function search()
      {
          $query = static::find();
          if (Podium::getInstance()->user->isGuest) {
              $query->andWhere(['visible' => 1]);
          }
          $dataProvider = new ActiveDataProvider(['query' => $query]);
          $dataProvider->sort->defaultOrder = ['sort' => SORT_ASC, 'id' => SORT_ASC];
          return $dataProvider;
      }
code: public function search()
      {
          $query = static::find();
          if (Podium::getInstance()->user->isGuest) {
              $query->andWhere(['visible' => 1]);
          }
          $dataProvider = new ActiveDataProvider(['query' => $query]);
          $dataProvider->sort->defaultOrder = ['sort' => SORT_ASC, 'id' => SORT_ASC];
          return $dataProvider;
      }
code_tokens: public function search ( ) { $ query = static :: find ( ) ; if ( Podium :: getInstance ( ) -> user -> isGuest ) { $ query -> andWhere ( [ 'visible' => 1 ] ) ; } $ dataProvider = new ActiveDataProvider ( [ 'query' => $ query ] ) ; $ dataProvider -> sort -> defaultOrder = [ 'sort' => SORT_ASC , 'id' => SORT_ASC ] ; return $ dataProvider ; }
docstring: Searches users.
  @return ActiveDataProvider
docstring_tokens: Searches users .