We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -23,10 +23,10 @@ |
||
| 23 | 23 | class Mods implements \Kitodo\Dlf\Common\MetadataInterface |
| 24 | 24 | { |
| 25 | 25 | /** |
| 26 | - * The metadata XML |
|
| 27 | - * |
|
| 28 | - * @var \SimpleXMLElement |
|
| 29 | - **/ |
|
| 26 | + * The metadata XML |
|
| 27 | + * |
|
| 28 | + * @var \SimpleXMLElement |
|
| 29 | + **/ |
|
| 30 | 30 | private $xml; |
| 31 | 31 | |
| 32 | 32 | /** |
@@ -68,7 +68,8 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @return void |
| 70 | 70 | */ |
| 71 | - private function getAuthors() { |
|
| 71 | + private function getAuthors() |
|
| 72 | + { |
|
| 72 | 73 | $authors = $this->xml->xpath('./mods:name[./mods:role/mods:roleTerm[@type="code" and @authority="marcrelator"]="aut"]'); |
| 73 | 74 | |
| 74 | 75 | // Get "author" and "author_sorting" again if that was too sophisticated. |
@@ -130,7 +131,8 @@ discard block |
||
| 130 | 131 | * |
| 131 | 132 | * @return void |
| 132 | 133 | */ |
| 133 | - private function getHolders() { |
|
| 134 | + private function getHolders() |
|
| 135 | + { |
|
| 134 | 136 | $holders = $this->xml->xpath('./mods:name[./mods:role/mods:roleTerm[@type="code" and @authority="marcrelator"]="prv"]'); |
| 135 | 137 | |
| 136 | 138 | if (!empty($holders)) { |
@@ -183,7 +185,8 @@ discard block |
||
| 183 | 185 | * |
| 184 | 186 | * @return void |
| 185 | 187 | */ |
| 186 | - private function getPlaces() { |
|
| 188 | + private function getPlaces() |
|
| 189 | + { |
|
| 187 | 190 | $places = $this->xml->xpath('./mods:originInfo[not(./mods:edition="[Electronic ed.]")]/mods:place/mods:placeTerm'); |
| 188 | 191 | // Get "place" and "place_sorting" again if that was to sophisticated. |
| 189 | 192 | if (empty($places)) { |
@@ -207,7 +210,8 @@ discard block |
||
| 207 | 210 | * |
| 208 | 211 | * @return void |
| 209 | 212 | */ |
| 210 | - private function getYears() { |
|
| 213 | + private function getYears() |
|
| 214 | + { |
|
| 211 | 215 | // Get "year_sorting". |
| 212 | 216 | if (($years_sorting = $this->xml->xpath('./mods:originInfo[not(./mods:edition="[Electronic ed.]")]/mods:dateOther[@type="order" and @encoding="w3cdtf"]'))) { |
| 213 | 217 | foreach ($years_sorting as $year_sorting) { |