/**
* @param string $name element or attribute name, maybe with a full or short prefix
- * @param string $namespaceURI the namespaceURI
+ * @param string $namespaceURI
* @return string the name prefixed with namespaceURI
*/
private function expandNS( $name, $namespaceURI ) {
if ( !$externalCallback && !$generalCallback && !$checkIfSafe ) {
return;
}
- $dtd = $reader->readOuterXML();
+ $dtd = $reader->readOuterXml();
$callbackReturn = false;
if ( $generalCallback ) {
$callbackReturn = call_user_func(
$externalCallback,
$parsedDTD['type'],
- isset( $parsedDTD['publicid'] ) ? $parsedDTD['publicid'] : null,
- isset( $parsedDTD['systemid'] ) ? $parsedDTD['systemid'] : null
+ $parsedDTD['publicid'] ?? null,
+ $parsedDTD['systemid'] ?? null
);
}
if ( $callbackReturn ) {