<commit_before><?php
namespace Eusonlito\LaravelMeta\Tags;

class MetaProduct extends TagAbstract
{
    protected static $available = [
        'price', 'currency',
    ];

    public static function tagDefault($key, $values)
    {
        if (!is_array($values)) {
            return;
        }
        $html = '';
        foreach($values as $key => $value) {
            if (in_array($key, self::$available, true)) {
                $html .= '<meta property="'.self::propertyTag($key).'" content="'.$value.'" />';
            }    
        }

        return $html;
        
    }

    public static function propertyTag ($key)
    {
        $tag = 'product:';
        switch ($key) {
            case 'price':
                $tag .= 'price:amount';
            break;
            case 'currency':
                $tag .= 'price:currency';
            break; 
        } 

        return $tag;
    }
}<commit_msg>Updated MetProduct style<commit_after><?php
namespace Eusonlito\LaravelMeta\Tags;

class MetaProduct extends TagAbstract
{
    protected static $available = [
        'price', 'currency',
    ];

    public static function tagDefault($key, $values)
    {
        if (!is_array($values)) {
            return;
        }

        $html = '';

        foreach($values as $key => $value) {
            if (in_array($key, self::$available, true)) {
                $html .= '<meta property="'.self::propertyTag($key).'" content="'.$value.'" />';
            }    
        }

        return $html;
    }

    public static function propertyTag ($key)
    {
        $tag = 'product:';

        switch ($key) {
            case 'amount':
            case 'price':
                $tag .= 'price:amount';
                break;
            case 'currency':
                $tag .= 'price:currency';
                break; 
        } 

        return $tag;
    }
}
{'fraction_non_alphanumeric': 0.14507494646680943, 'fraction_numerical': 0.0, 'mean_word_length': 1.515477792732167, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4255679', 'n_tokens_mistral': 529, 'n_tokens_neox': 508, 'n_words': 116}