@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | * @see \sprintf() |
28 | 28 | */ |
29 | 29 | protected string $svgHeader = '<svg xmlns="http://www.w3.org/2000/svg" class="qr-svg %1$s" '. |
30 | - 'style="width: 100%%; height: auto;" viewBox="0 0 %2$d %2$d">'; |
|
30 | + 'style="width: 100%%; height: auto;" viewBox="0 0 %2$d %2$d">'; |
|
31 | 31 | |
32 | 32 | /** |
33 | 33 | * @inheritDoc |
@@ -93,9 +93,9 @@ discard block |
||
93 | 93 | $matrix = $this->matrix->matrix(); |
94 | 94 | |
95 | 95 | $svg = sprintf($this->svgHeader, $this->options->cssClass, $this->options->svgViewBoxSize ?? $this->moduleCount) |
96 | - .$this->options->eol |
|
97 | - .'<defs>'.$this->options->svgDefs.'</defs>' |
|
98 | - .$this->options->eol; |
|
96 | + .$this->options->eol |
|
97 | + .'<defs>'.$this->options->svgDefs.'</defs>' |
|
98 | + .$this->options->eol; |
|
99 | 99 | |
100 | 100 | foreach($this->moduleValues as $M_TYPE => $value){ |
101 | 101 | $path = ''; |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | // if saving to file, append the correct headers |
150 | 150 | if($file !== null){ |
151 | 151 | return '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'. |
152 | - $this->options->eol.$svg; |
|
152 | + $this->options->eol.$svg; |
|
153 | 153 | } |
154 | 154 | |
155 | 155 | if($this->options->imageBase64){ |