original_string: protected function getConstNameToIds($prefix)
      {
          if (!isset(self::$constNameToIds[$prefix])) {
              foreach ($this->getConsts($prefix) as $const) {
                  self::$constNameToIds[$prefix][$const['name']] = $const['id'];
              }
          }
  
          return self::$constNameToIds[$prefix];
      }
code: protected function getConstNameToIds($prefix)
      {
          if (!isset(self::$constNameToIds[$prefix])) {
              foreach ($this->getConsts($prefix) as $const) {
                  self::$constNameToIds[$prefix][$const['name']] = $const['id'];
              }
          }
  
          return self::$constNameToIds[$prefix];
      }
code_tokens: protected function getConstNameToIds ( $ prefix ) { if ( ! isset ( self :: $ constNameToIds [ $ prefix ] ) ) { foreach ( $ this -> getConsts ( $ prefix ) as $ const ) { self :: $ constNameToIds [ $ prefix ] [ $ const [ 'name' ] ] = $ const [ 'id' ] ; } } return self :: $ constNameToIds [ $ prefix ] ; }
docstring: Returns the name to id map
  
  @param string $prefix
  @return array
docstring_tokens: Returns the name to id map