We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -249,7 +249,8 @@ discard block |
||
| 249 | 249 | * |
| 250 | 250 | * @return string |
| 251 | 251 | */ |
| 252 | - private function getTranslatedType($type) { |
|
| 252 | + private function getTranslatedType($type) |
|
| 253 | + { |
|
| 253 | 254 | return Helper::translate($type, 'tx_dlf_structures', $this->settings['storagePid']); |
| 254 | 255 | } |
| 255 | 256 | |
@@ -269,7 +270,8 @@ discard block |
||
| 269 | 270 | * |
| 270 | 271 | * @return bool |
| 271 | 272 | */ |
| 272 | - private function isMultiElement($type) { |
|
| 273 | + private function isMultiElement($type) |
|
| 274 | + { |
|
| 273 | 275 | return $type === 'multivolume_work' || $type === 'multipart_manuscript'; |
| 274 | 276 | } |
| 275 | 277 | |
@@ -280,7 +282,8 @@ discard block |
||
| 280 | 282 | * |
| 281 | 283 | * @return void |
| 282 | 284 | */ |
| 283 | - private function sortMenu(&$menu) { |
|
| 285 | + private function sortMenu(&$menu) |
|
| 286 | + { |
|
| 284 | 287 | if ($menu[0]['type'] == $this->getTranslatedType("newspaper")) { |
| 285 | 288 | $this->sortMenuForNewspapers($menu); |
| 286 | 289 | } |
@@ -293,8 +296,10 @@ discard block |
||
| 293 | 296 | * |
| 294 | 297 | * @return void |
| 295 | 298 | */ |
| 296 | - private function sortMenuForNewspapers(&$menu) { |
|
| 297 | - usort($menu[0]['_SUB_MENU'], function ($firstYear, $secondYear) { |
|
| 299 | + private function sortMenuForNewspapers(&$menu) |
|
| 300 | + { |
|
| 301 | + usort($menu[0]['_SUB_MENU'], function ($firstYear, $secondYear) |
|
| 302 | + { |
|
| 298 | 303 | return $firstYear['orderlabel'] <=> $secondYear['orderlabel']; |
| 299 | 304 | }); |
| 300 | 305 | } |