original_string: public function translateToRoleId($role)
      {
          $lookup = array_flip($this->_roleTranslations);
  
          if (isset($lookup[$role])) {
              return $lookup[$role];
          }
  
          return $role;
      }
code: public function translateToRoleId($role)
      {
          $lookup = array_flip($this->_roleTranslations);
  
          if (isset($lookup[$role])) {
              return $lookup[$role];
          }
  
          return $role;
      }
code_tokens: public function translateToRoleId ( $ role ) { $ lookup = array_flip ( $ this -> _roleTranslations ) ; if ( isset ( $ lookup [ $ role ] ) ) { return $ lookup [ $ role ] ; } return $ role ; }
docstring: Translate string role id to numeric role id
  
  @param string $role
  @return array Of role id's
docstring_tokens: Translate string role id to numeric role id