|
22 | 22 | */ |
23 | 23 | class QRMarkupXML extends QRMarkup{ |
24 | 24 |
|
25 | | - final public const MIME_TYPE = 'application/xml'; |
26 | | - protected const XML_SCHEMA = 'https://raw.githubusercontent.com/chillerlan/php-qrcode/main/src/Output/qrcode.schema.xsd'; |
| 25 | + final public const MIME_TYPE = 'application/xml'; |
| 26 | + final public const SCHEMA = 'https://raw.githubusercontent.com/chillerlan/php-qrcode/main/src/Output/qrcode.schema.xsd'; |
27 | 27 |
|
28 | 28 | protected DOMDocument $dom; |
29 | 29 |
|
@@ -52,7 +52,7 @@ protected function createMarkup(bool $saveToFile):string{ |
52 | 52 | $root = $this->dom->createElement('qrcode'); |
53 | 53 |
|
54 | 54 | $root->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); |
55 | | - $root->setAttribute('xsi:noNamespaceSchemaLocation', $this::XML_SCHEMA); |
| 55 | + $root->setAttribute('xsi:noNamespaceSchemaLocation', $this::SCHEMA); |
56 | 56 | $root->setAttribute('version', $this->matrix->getVersion()); |
57 | 57 | $root->setAttribute('eccLevel', $this->matrix->getEccLevel()); |
58 | 58 | $root->appendChild($this->createMatrix()); |
@@ -120,7 +120,7 @@ protected function row(int $y, array $row):DOMElement|null{ |
120 | 120 | } |
121 | 121 |
|
122 | 122 | /** |
123 | | - * Creates a DOM element for single module |
| 123 | + * Creates a DOM element for a single module |
124 | 124 | */ |
125 | 125 | protected function module(int $x, int $y, int $M_TYPE):DOMElement|null{ |
126 | 126 | $isDark = $this->matrix->isDark($M_TYPE); |
|
0 commit comments