Jade\Compiler\CompilerUtils::decodeAttributes PHP Method

decodeAttributes() protected static method

Decode each attribute in the given list.
protected static decodeAttributes ( array $attributes ) : array
$attributes array
return array
    protected static function decodeAttributes($attributes)
    {
        foreach ($attributes as &$attribute) {
            if (is_array($attribute)) {
                $attribute['value'] = is_bool($attribute['value']) ? $attribute['value'] : static::decodeValue($attribute['value']);
                continue;
            }
            $attribute = static::decodeValue($attribute);
        }
        return $attributes;
    }