We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -77,7 +77,8 @@ |
||
| 77 | 77 | * |
| 78 | 78 | * @return void |
| 79 | 79 | */ |
| 80 | - public function setEndpoint($endpoint) { |
|
| 80 | + public function setEndpoint($endpoint) |
|
| 81 | + { |
|
| 81 | 82 | $this->endpoint = $endpoint; |
| 82 | 83 | } |
| 83 | 84 | |
@@ -77,7 +77,8 @@ |
||
| 77 | 77 | * |
| 78 | 78 | * @return void |
| 79 | 79 | */ |
| 80 | - public function setEndpoint($endpoint) { |
|
| 80 | + public function setEndpoint($endpoint) |
|
| 81 | + { |
|
| 81 | 82 | $this->endpoint = $endpoint; |
| 82 | 83 | } |
| 83 | 84 | |
@@ -205,7 +205,8 @@ |
||
| 205 | 205 | * |
| 206 | 206 | * @return void |
| 207 | 207 | */ |
| 208 | - private function addDcData(&$metadata, $key, $value) { |
|
| 208 | + private function addDcData(&$metadata, $key, $value) |
|
| 209 | + { |
|
| 209 | 210 | if (!empty($value)) { |
| 210 | 211 | $metadata[] = [$key => $value]; |
| 211 | 212 | } |
@@ -345,7 +345,8 @@ |
||
| 345 | 345 | * |
| 346 | 346 | * @return void |
| 347 | 347 | */ |
| 348 | - private function setDefault($setting, $value) { |
|
| 348 | + private function setDefault($setting, $value) |
|
| 349 | + { |
|
| 349 | 350 | if (!isset($this->settings[$setting])) { |
| 350 | 351 | $this->settings[$setting] = $value; |
| 351 | 352 | } |
@@ -271,8 +271,7 @@ discard block |
||
| 271 | 271 | // check for virtual collections query string |
| 272 | 272 | if($collectionEntry->getIndexSearch()) { |
| 273 | 273 | $virtualCollectionsQueryString .= empty($virtualCollectionsQueryString) ? '(' . $collectionEntry->getIndexSearch() . ')' : ' OR ('. $collectionEntry->getIndexSearch() . ')' ; |
| 274 | - } |
|
| 275 | - else { |
|
| 274 | + } else { |
|
| 276 | 275 | $collectionsQueryString .= empty($collectionsQueryString) ? '"' . $collectionEntry->getIndexName() . '"' : ' OR "' . $collectionEntry->getIndexName() . '"'; |
| 277 | 276 | } |
| 278 | 277 | } |
@@ -459,7 +458,8 @@ discard block |
||
| 459 | 458 | * |
| 460 | 459 | * @return string |
| 461 | 460 | */ |
| 462 | - private function translateValue($field, $value) { |
|
| 461 | + private function translateValue($field, $value) |
|
| 462 | + { |
|
| 463 | 463 | switch ($field) { |
| 464 | 464 | case 'owner_faceting': |
| 465 | 465 | // Translate name of holding library. |
@@ -60,7 +60,8 @@ discard block |
||
| 60 | 60 | * |
| 61 | 61 | * @return void |
| 62 | 62 | */ |
| 63 | - private function renderTool() { |
|
| 63 | + private function renderTool() |
|
| 64 | + { |
|
| 64 | 65 | if (!empty($this->settings['tool'])) { |
| 65 | 66 | switch ($this->settings['tool']) { |
| 66 | 67 | case 'tx_dlf_annotationtool': |
@@ -97,7 +98,8 @@ discard block |
||
| 97 | 98 | * |
| 98 | 99 | * @return void |
| 99 | 100 | */ |
| 100 | - private function renderToolByName(string $tool) { |
|
| 101 | + private function renderToolByName(string $tool) |
|
| 102 | + { |
|
| 101 | 103 | $this->$tool(); |
| 102 | 104 | $this->view->assign($tool, true); |
| 103 | 105 | } |
@@ -185,7 +185,8 @@ discard block |
||
| 185 | 185 | * |
| 186 | 186 | * @return void |
| 187 | 187 | */ |
| 188 | - protected function configureProxyUrl(&$url) { |
|
| 188 | + protected function configureProxyUrl(&$url) |
|
| 189 | + { |
|
| 189 | 190 | $this->uriBuilder->reset() |
| 190 | 191 | ->setTargetPageUid($GLOBALS['TSFE']->id) |
| 191 | 192 | ->setCreateAbsoluteUri(!empty($this->settings['forceAbsoluteUrl'])) |
@@ -282,7 +283,8 @@ discard block |
||
| 282 | 283 | * |
| 283 | 284 | * @return void |
| 284 | 285 | */ |
| 285 | - protected function setPage() { |
|
| 286 | + protected function setPage() |
|
| 287 | + { |
|
| 286 | 288 | if (!empty($this->requestData['logicalPage'])) { |
| 287 | 289 | $this->requestData['page'] = $this->document->getDoc()->getPhysicalPage($this->requestData['logicalPage']); |
| 288 | 290 | // The logical page parameter should not appear again |
@@ -299,7 +301,8 @@ discard block |
||
| 299 | 301 | * |
| 300 | 302 | * @return void |
| 301 | 303 | */ |
| 302 | - protected function setDefaultPage() { |
|
| 304 | + protected function setDefaultPage() |
|
| 305 | + { |
|
| 303 | 306 | // Set default values if not set. |
| 304 | 307 | // $this->requestData['page'] may be integer or string (physical structure @ID) |
| 305 | 308 | if ( |
@@ -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 | } |