original_string: public function getDsIdsByFieldType($fieldType)
      {
          $result = [];
          foreach ($this->dsIdMap as $dsId => $node) {
              /* @var $node ElementtypeStructureNode */
              if ($fieldType === $node->getType()) {
                  $result[] = $dsId;
              }
          }
  
          return $result;
      }
code: public function getDsIdsByFieldType($fieldType)
      {
          $result = [];
          foreach ($this->dsIdMap as $dsId => $node) {
              /* @var $node ElementtypeStructureNode */
              if ($fieldType === $node->getType()) {
                  $result[] = $dsId;
              }
          }
  
          return $result;
      }
code_tokens: public function getDsIdsByFieldType ( $ fieldType ) { $ result = [ ] ; foreach ( $ this -> dsIdMap as $ dsId => $ node ) { /* @var $node ElementtypeStructureNode */ if ( $ fieldType === $ node -> getType ( ) ) { $ result [ ] = $ dsId ; } } return $ result ; }
docstring: Get the ds_ids of all fields in this structure tree of a specific type.
  
  @param string $fieldType
  
  @return array
docstring_tokens: Get the ds_ids of all fields in this structure tree of a specific type .