original_string: public static function get($key)
      {
          $key = strtoupper($key);
  
          $list = static::loadConstants();
  
          if(array_key_exists($key,$list))
              return static::loadConstants()[$key];
  
          if(static::exist($key))
              return $key;
  
          // Throw exception.
          static::invalidType();
      }
code: public static function get($key)
      {
          $key = strtoupper($key);
  
          $list = static::loadConstants();
  
          if(array_key_exists($key,$list))
              return static::loadConstants()[$key];
  
          if(static::exist($key))
              return $key;
  
          // Throw exception.
          static::invalidType();
      }
code_tokens: public static function get ( $ key ) { $ key = strtoupper ( $ key ) ; $ list = static :: loadConstants ( ) ; if ( array_key_exists ( $ key , $ list ) ) return static :: loadConstants ( ) [ $ key ] ; if ( static :: exist ( $ key ) ) return $ key ; // Throw exception. static :: invalidType ( ) ; }
docstring: Get the constant value from a passed report type.
  
  @param $key
  @return mixed
  @throws ReportFormat
docstring_tokens: Get the constant value from a passed report type .