We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -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 | } |
@@ -278,7 +278,7 @@ |
||
278 | 278 | |
279 | 279 | if ($this->solrCoreRepository->findOneByPid($this->pid) === null) { |
280 | 280 | $newRecord = GeneralUtility::makeInstance(SolrCore::class); |
281 | - $newRecord->setLabel($this->getLLL('flexform.solrcore', $this->siteLanguages[0]->getTypo3Language(), $beLabels). ' (PID ' . $this->pid . ')'); |
|
281 | + $newRecord->setLabel($this->getLLL('flexform.solrcore', $this->siteLanguages[0]->getTypo3Language(), $beLabels) . ' (PID ' . $this->pid . ')'); |
|
282 | 282 | $indexName = Solr::createCore(''); |
283 | 283 | if (!empty($indexName)) { |
284 | 284 | $newRecord->setIndexName($indexName); |
@@ -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 | } |
@@ -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 ( |
@@ -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 | } |