We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -269,7 +269,7 @@ |
||
269 | 269 | * @return void |
270 | 270 | */ |
271 | 271 | private function sortMenuForNewspapers(&$menu) { |
272 | - usort($menu[0]['_SUB_MENU'], function ($firstYear, $secondYear) { |
|
272 | + usort($menu[0]['_SUB_MENU'], function($firstYear, $secondYear) { |
|
273 | 273 | return $firstYear['orderlabel'] <=> $secondYear['orderlabel']; |
274 | 274 | }); |
275 | 275 | } |
@@ -245,7 +245,8 @@ discard block |
||
245 | 245 | * @param array $type |
246 | 246 | * @return string |
247 | 247 | */ |
248 | - private function getTranslatedType($type) { |
|
248 | + private function getTranslatedType($type) |
|
249 | + { |
|
249 | 250 | return Helper::translate($type, 'tx_dlf_structures', $this->settings['storagePid']); |
250 | 251 | } |
251 | 252 | |
@@ -256,7 +257,8 @@ discard block |
||
256 | 257 | * @param array &$menu |
257 | 258 | * @return void |
258 | 259 | */ |
259 | - private function sortMenu(&$menu) { |
|
260 | + private function sortMenu(&$menu) |
|
261 | + { |
|
260 | 262 | if ($menu[0]['type'] == $this->getTranslatedType("newspaper")) { |
261 | 263 | $this->sortMenuForNewspapers($menu); |
262 | 264 | } |
@@ -268,8 +270,10 @@ discard block |
||
268 | 270 | * @param array &$menu |
269 | 271 | * @return void |
270 | 272 | */ |
271 | - private function sortMenuForNewspapers(&$menu) { |
|
272 | - usort($menu[0]['_SUB_MENU'], function ($firstYear, $secondYear) { |
|
273 | + private function sortMenuForNewspapers(&$menu) |
|
274 | + { |
|
275 | + usort($menu[0]['_SUB_MENU'], function ($firstYear, $secondYear) |
|
276 | + { |
|
273 | 277 | return $firstYear['orderlabel'] <=> $secondYear['orderlabel']; |
274 | 278 | }); |
275 | 279 | } |