original_string: final public static function get_formatted_properties() {
          $properties = static::properties_definition();
  
          $formatted = array();
          foreach ($properties as $property => $definition) {
              $propertyformat = $property . 'format';
              if (($definition['type'] == PARAM_RAW || $definition['type'] == PARAM_CLEANHTML)
                      && array_key_exists($propertyformat, $properties)
                      && $properties[$propertyformat]['type'] == PARAM_INT) {
                  $formatted[$property] = $propertyformat;
              }
          }
  
          return $formatted;
      }
code: final public static function get_formatted_properties() {
          $properties = static::properties_definition();
  
          $formatted = array();
          foreach ($properties as $property => $definition) {
              $propertyformat = $property . 'format';
              if (($definition['type'] == PARAM_RAW || $definition['type'] == PARAM_CLEANHTML)
                      && array_key_exists($propertyformat, $properties)
                      && $properties[$propertyformat]['type'] == PARAM_INT) {
                  $formatted[$property] = $propertyformat;
              }
          }
  
          return $formatted;
      }
code_tokens: final public static function get_formatted_properties ( ) { $ properties = static :: properties_definition ( ) ; $ formatted = array ( ) ; foreach ( $ properties as $ property => $ definition ) { $ propertyformat = $ property . 'format' ; if ( ( $ definition [ 'type' ] == PARAM_RAW || $ definition [ 'type' ] == PARAM_CLEANHTML ) && array_key_exists ( $ propertyformat , $ properties ) && $ properties [ $ propertyformat ] [ 'type' ] == PARAM_INT ) { $ formatted [ $ property ] = $ propertyformat ; } } return $ formatted ; }
docstring: Gets all the formatted properties.
  
  Formatted properties are properties which have a format associated with them.
  
  @return array Keys are property names, values are property format names.
docstring_tokens: Gets all the formatted properties .