src/Html/Tags.php
private static function setDefaultAttributes(array $attributes, array $default): array
    {
        foreach ($default as $name => $value) {
            if (!\array_key_exists($name, $attributes)) {
                $attributes[$name] = $value;
            }
        }
        return $attributes;
    }
private static function setDefaultAttributes(array $attributes, array $default): array
    {
        foreach ($default as $name => $value) {
            if (!\array_key_exists($name, $attributes)) {
                $attributes[$name] = $value;
            }
        }
        return $attributes;
    }
private static function setDefaultAttributes ( array $ attributes , array $ default ) : array { foreach ( $ default as $ name => $ value ) { if ( ! \ array_key_exists ( $ name , $ attributes ) ) { $ attributes [ $ name ] = $ value ; } } return $ attributes ; }
Sets default attributes

@param array $attributes
@param array $default
@return array
Sets default attributes