Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
removeStyles example
$use
->
removeAttribute
(
'fill'
)
;
}
if
(
$fillrule
)
{
$use
->
setAttribute
(
'fill-rule',
$fillrule
)
;
}
elseif
(
$cleanup
)
{
$use
->
removeAttribute
(
'fill-rule'
)
;
}
$svg
->
getDocument
(
)
->
addChild
(
$use
)
;
if
(
$cleanup
)
{
$this
->
removeStyles
(
$svg
->
getDocument
(
)
)
;
}
file_put_contents
(
$path
. 'processed/' .
basename
(
$file
)
,
$svg
->
toXMLString
(
false
)
)
;
if
(
$verbose
)
{
$this
->io->
writeln
(
'Icon ' .
$file
. ' processed'
)
;
}
++
$processedCount
;
}
$this
->io->
success
(
'Processed ' .
$processedCount
. ' icons'
)
;