We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 1730-1736 (lines=7) @@ | ||
| 1727 | ||
| 1728 | if ($type = $this->mets->xpath('./mets:dmdSec[@ID="'.(string) $dmdId.'"]/mets:mdWrap[not(@MDTYPE="OTHER")]/@MDTYPE')) { |
|
| 1729 | ||
| 1730 | if (!empty($this->formats[(string) $type[0]])) { |
|
| 1731 | ||
| 1732 | $type = (string) $type[0]; |
|
| 1733 | ||
| 1734 | $xml = $this->mets->xpath('./mets:dmdSec[@ID="'.(string) $dmdId.'"]/mets:mdWrap[@MDTYPE="'.$type.'"]/mets:xmlData/'.strtolower($type).':'.$this->formats[$type]['rootElement']); |
|
| 1735 | ||
| 1736 | } |
|
| 1737 | ||
| 1738 | } elseif ($type = $this->mets->xpath('./mets:dmdSec[@ID="'.(string) $dmdId.'"]/mets:mdWrap[@MDTYPE="OTHER"]/@OTHERMDTYPE')) { |
|
| 1739 | ||
| @@ 1740-1746 (lines=7) @@ | ||
| 1737 | ||
| 1738 | } elseif ($type = $this->mets->xpath('./mets:dmdSec[@ID="'.(string) $dmdId.'"]/mets:mdWrap[@MDTYPE="OTHER"]/@OTHERMDTYPE')) { |
|
| 1739 | ||
| 1740 | if (!empty($this->formats[(string) $type[0]])) { |
|
| 1741 | ||
| 1742 | $type = (string) $type[0]; |
|
| 1743 | ||
| 1744 | $xml = $this->mets->xpath('./mets:dmdSec[@ID="'.(string) $dmdId.'"]/mets:mdWrap[@MDTYPE="OTHER"][@OTHERMDTYPE="'.$type.'"]/mets:xmlData/'.strtolower($type).':'.$this->formats[$type]['rootElement']); |
|
| 1745 | ||
| 1746 | } |
|
| 1747 | ||
| 1748 | } |
|
| 1749 | ||