code/libraries/joomlatools/library/http/message/message.php
public function getFormat()
    {
        $result = null;

        foreach (static::$_formats as $value => $media_types)
        {
            $media_type = $this->getContentType();

            if (in_array($media_type, (array)$media_types))
            {
                $result = $value;
                break;
            }
        }

        return $result;
    }
public function getFormat()
    {
        $result = null;

        foreach (static::$_formats as $value => $media_types)
        {
            $media_type = $this->getContentType();

            if (in_array($media_type, (array)$media_types))
            {
                $result = $value;
                break;
            }
        }

        return $result;
    }
public function getFormat ( ) { $ result = null ; foreach ( static :: $ _formats as $ value => $ media_types ) { $ media_type = $ this -> getContentType ( ) ; if ( in_array ( $ media_type , ( array ) $ media_types ) ) { $ result = $ value ; break ; } } return $ result ; }
Return the message format

@return  string  The message format NULL if no format could be found
Return the message format