Skip to content

Commit f28605c

Browse files
committed
🚿
1 parent ee8a19a commit f28605c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Output/QRMarkupXML.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
*/
2323
class QRMarkupXML extends QRMarkup{
2424

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';
2727

2828
protected DOMDocument $dom;
2929

@@ -52,7 +52,7 @@ protected function createMarkup(bool $saveToFile):string{
5252
$root = $this->dom->createElement('qrcode');
5353

5454
$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);
5656
$root->setAttribute('version', $this->matrix->getVersion());
5757
$root->setAttribute('eccLevel', $this->matrix->getEccLevel());
5858
$root->appendChild($this->createMatrix());
@@ -120,7 +120,7 @@ protected function row(int $y, array $row):DOMElement|null{
120120
}
121121

122122
/**
123-
* Creates a DOM element for single module
123+
* Creates a DOM element for a single module
124124
*/
125125
protected function module(int $x, int $y, int $M_TYPE):DOMElement|null{
126126
$isDark = $this->matrix->isDark($M_TYPE);

src/Output/qrcode.schema.xsd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</xs:element>
3737
<xs:element name="matrix">
3838
<xs:annotation>
39-
<xs:documentation>The matrix holds the encoded data in a 2-dimensional array of modules</xs:documentation>
39+
<xs:documentation>The matrix holds the encoded data in a 2-dimensional array of modules.</xs:documentation>
4040
</xs:annotation>
4141
<xs:complexType>
4242
<xs:sequence>
@@ -64,7 +64,7 @@
6464
</xs:attribute>
6565
<xs:attribute name="quietzoneSize" use="required" type="xs:nonNegativeInteger">
6666
<xs:annotation>
67-
<xs:documentation>The size of the quiet zone (margin around the QR symbol)</xs:documentation>
67+
<xs:documentation>The size of the quiet zone (margin around the QR symbol).</xs:documentation>
6868
</xs:annotation>
6969
</xs:attribute>
7070
<xs:attribute name="size" use="required">
@@ -92,7 +92,7 @@
9292
</xs:element>
9393
<xs:element name="row">
9494
<xs:annotation>
95-
<xs:documentation>A row holds an array of modules</xs:documentation>
95+
<xs:documentation>A row holds an array of modules.</xs:documentation>
9696
</xs:annotation>
9797
<xs:complexType>
9898
<xs:sequence>

0 commit comments

Comments
 (0)