original_string: public static function getNameById($sid)
      {
          $list = self::getList(true);
          $key = array_search($sid, $list);
          if ($key === false)
              throw new SidItemNotFound('Sid not exists');
  
          return $key;
      }
code: public static function getNameById($sid)
      {
          $list = self::getList(true);
          $key = array_search($sid, $list);
          if ($key === false)
              throw new SidItemNotFound('Sid not exists');
  
          return $key;
      }
code_tokens: public static function getNameById ( $ sid ) { $ list = self :: getList ( true ) ; $ key = array_search ( $ sid , $ list ) ; if ( $ key === false ) throw new SidItemNotFound ( 'Sid not exists' ) ; return $ key ; }
docstring: Return constant name from SID.
  
  @param int $id SID to find
  
  @return string Name of constant.
  @throws SidItemNotFound
docstring_tokens: Return constant name from SID .