@@ -138,18 +138,18 @@ public function getEntries(): array
138
138
139
139
/**
140
140
* @param string $ns
141
- * @param string $url
141
+ * @param string $uri
142
142
* @param string $name
143
143
* @param mixed $value
144
144
* @param null|string[] $attributes
145
145
*/
146
- public function addCustomElement (string $ ns , string $ url , string $ name , $ value , ?array $ attributes = null ): void
146
+ public function addCustomElement (string $ ns , string $ uri , string $ name , $ value , ?array $ attributes = null ): void
147
147
{
148
- self ::assertURL ($ url );
148
+ self ::assertURL ($ uri );
149
149
150
150
$ this ->customElements [] = [
151
151
'ns ' => $ ns ,
152
- 'url ' => $ url ,
152
+ 'uri ' => $ uri ,
153
153
'name ' => $ name ,
154
154
'value ' => $ value ,
155
155
'attributes ' => $ attributes ?? [],
@@ -186,7 +186,7 @@ public function addChildrenTo(SimpleXMLElement $parent): void
186
186
}
187
187
188
188
foreach ($ this ->customElements as $ customElement ) {
189
- $ element = $ parent ->addChild ($ customElement ['name ' ], $ customElement ['value ' ], $ customElement ['ns ' ]);
189
+ $ element = $ parent ->addChild ($ customElement ['name ' ], $ customElement ['value ' ], $ customElement ['uri ' ]);
190
190
foreach ($ customElement ['attributes ' ] as $ name => $ value ) {
191
191
$ element ->addAttribute ($ name , $ value );
192
192
}
@@ -207,7 +207,7 @@ public function getSimpleXML(): SimpleXMLElement
207
207
$ attributes ['xml:lang ' ] = $ this ->language ;
208
208
}
209
209
foreach ($ this ->customElements as $ customElement ) {
210
- $ attributes ['xmlns: ' .$ customElement ['ns ' ]] = $ customElement ['url ' ];
210
+ $ attributes ['xmlns: ' .$ customElement ['ns ' ]] = $ customElement ['uri ' ];
211
211
}
212
212
213
213
$ attributesString = '' ;
0 commit comments