original_string: public function getIndexs($collection, $options = [])
      {
          if (! $this->hasCollection($collection)) {
              return [];
          }
  
          $list = [];
          foreach ($this->db->selectCollection($collection)->listIndexes($options) as $index) {
              $list[] = $index->getName();
          }
  
          return $list;
      }
code: public function getIndexs($collection, $options = [])
      {
          if (! $this->hasCollection($collection)) {
              return [];
          }
  
          $list = [];
          foreach ($this->db->selectCollection($collection)->listIndexes($options) as $index) {
              $list[] = $index->getName();
          }
  
          return $list;
      }
code_tokens: public function getIndexs ( $ collection , $ options = [ ] ) { if ( ! $ this -> hasCollection ( $ collection ) ) { return [ ] ; } $ list = [ ] ; foreach ( $ this -> db -> selectCollection ( $ collection ) -> listIndexes ( $ options ) as $ index ) { $ list [ ] = $ index -> getName ( ) ; } return $ list ; }
docstring: Get index list in collection.
  
  @param string $collection
  @param array $options
  @return array
docstring_tokens: Get index list in collection .