Amazon_S3_And_CloudFront::maybe_convert_size_to_string PHP Method

maybe_convert_size_to_string() protected method

Maybe convert size to string
protected maybe_convert_size_to_string ( integer $attachment_id, mixed $size ) : null | string
$attachment_id integer
$size mixed
return null | string
    protected function maybe_convert_size_to_string($attachment_id, $size)
    {
        if (is_array($size)) {
            return $this->convert_dimensions_to_size_name($attachment_id, $size);
        }
        return $size;
    }
Amazon_S3_And_CloudFront