src/Html/Tags.php
private static function extractAttributes(array $attributes = []): string
    {
        $extracted = [];
        if (\count($attributes) > 0) {
            foreach ($attributes as $name => $value) {
                if ($name != 'id' || ($name == 'id' && $value != '')) {
                    $extracted[] = sprintf(
                        '%s="%s"',
                        \strtolower($name),
                        \htmlspecialchars((string)$value, ENT_COMPAT | ENT_HTML5)
                    );
                }
            }
            return \sprintf(' %s', \implode(' ', $extracted));
        }
        return '';
    }
private static function extractAttributes(array $attributes = []): string
    {
        $extracted = [];
        if (\count($attributes) > 0) {
            foreach ($attributes as $name => $value) {
                if ($name != 'id' || ($name == 'id' && $value != '')) {
                    $extracted[] = sprintf(
                        '%s="%s"',
                        \strtolower($name),
                        \htmlspecialchars((string)$value, ENT_COMPAT | ENT_HTML5)
                    );
                }
            }
            return \sprintf(' %s', \implode(' ', $extracted));
        }
        return '';
    }
private static function extractAttributes ( array $ attributes = [ ] ) : string { $ extracted = [ ] ; if ( \ count ( $ attributes ) > 0 ) { foreach ( $ attributes as $ name => $ value ) { if ( $ name != 'id' || ( $ name == 'id' && $ value != '' ) ) { $ extracted [ ] = sprintf ( '%s="%s"' , \ strtolower ( $ name ) , \ htmlspecialchars ( ( string ) $ value , ENT_COMPAT | ENT_HTML5 ) ) ; } } return \ sprintf ( ' %s' , \ implode ( ' ' , $ extracted ) ) ; } return '' ; }
This method transforms attributes array to string

@param array $attributes
@return string
This method transforms attributes array to string