We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | $solr = Solr::getInstance($this->settings['solrcore']); |
| 159 | 159 | if (!$solr->ready) { |
| 160 | 160 | $this->logger->error('Apache Solr not available'); |
| 161 | - $this->redirect('main', 'Search', NULL); |
|
| 161 | + $this->redirect('main', 'Search', null); |
|
| 162 | 162 | //return $this->responseFactory->createHtmlResponse($this->view->render()); |
| 163 | 163 | } |
| 164 | 164 | // Set search parameters. |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | $linkConf['forceAbsoluteUrl.']['scheme'] = !empty($this->settings['forceAbsoluteUrl']) && !empty($this->settings['forceAbsoluteUrlHttps']) ? 'https' : 'http'; |
| 199 | 199 | $linkConf['additionalParams'] = GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', true, false); |
| 200 | 200 | |
| 201 | - $this->redirect('main', 'Search', NULL, NULL); |
|
| 201 | + $this->redirect('main', 'Search', null, null); |
|
| 202 | 202 | } |
| 203 | 203 | |
| 204 | 204 | /** |
@@ -564,7 +564,7 @@ |
||
| 564 | 564 | // Get operator options. |
| 565 | 565 | $operatorOptions = []; |
| 566 | 566 | foreach (['AND', 'OR', 'NOT'] as $operator) { |
| 567 | - $operatorOptions[$operator] = htmlspecialchars(LocalizationUtility::translate('search.'.$operator, 'dlf')); |
|
| 567 | + $operatorOptions[$operator] = htmlspecialchars(LocalizationUtility::translate('search.' . $operator, 'dlf')); |
|
| 568 | 568 | } |
| 569 | 569 | // Get field selector options. |
| 570 | 570 | $fieldSelectorOptions = []; |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | ->where( |
| 99 | 99 | $queryBuilder->expr()->eq('tx_dlf_tokens.ident', $queryBuilder->createNamedParameter('oai')), |
| 100 | 100 | $queryBuilder->expr()->lt('tx_dlf_tokens.tstamp', |
| 101 | - $queryBuilder->createNamedParameter((int)($GLOBALS['EXEC_TIME'] - $this->settings['expired']))) |
|
| 101 | + $queryBuilder->createNamedParameter((int) ($GLOBALS['EXEC_TIME'] - $this->settings['expired']))) |
|
| 102 | 102 | ) |
| 103 | 103 | ->execute(); |
| 104 | 104 | |
@@ -331,11 +331,11 @@ discard block |
||
| 331 | 331 | protected function verbGetRecord() |
| 332 | 332 | { |
| 333 | 333 | if (count($this->parameters) !== 3 || empty($this->parameters['metadataPrefix']) || empty($this->parameters['identifier'])) { |
| 334 | - $this->error = 'badArgument' ; |
|
| 334 | + $this->error = 'badArgument'; |
|
| 335 | 335 | return; |
| 336 | 336 | } |
| 337 | 337 | if (!array_key_exists($this->parameters['metadataPrefix'], $this->formats)) { |
| 338 | - $this->error = 'cannotDisseminateFormat' ; |
|
| 338 | + $this->error = 'cannotDisseminateFormat'; |
|
| 339 | 339 | return; |
| 340 | 340 | } |
| 341 | 341 | $where = ''; |
@@ -485,7 +485,7 @@ discard block |
||
| 485 | 485 | // return next chunk of documents |
| 486 | 486 | $resultSet = $this->resume(); |
| 487 | 487 | if ($resultSet instanceof DocumentList) { |
| 488 | - $listIdentifiers = $this->generateOutputForDocumentList($resultSet); |
|
| 488 | + $listIdentifiers = $this->generateOutputForDocumentList($resultSet); |
|
| 489 | 489 | $this->view->assign('listIdentifiers', $listIdentifiers); |
| 490 | 490 | } |
| 491 | 491 | return; |
@@ -517,7 +517,7 @@ discard block |
||
| 517 | 517 | ]; |
| 518 | 518 | } |
| 519 | 519 | |
| 520 | - $listIdentifiers = $this->generateOutputForDocumentList($resultSet); |
|
| 520 | + $listIdentifiers = $this->generateOutputForDocumentList($resultSet); |
|
| 521 | 521 | $this->view->assign('listIdentifiers', $listIdentifiers); |
| 522 | 522 | } |
| 523 | 523 | |
@@ -588,7 +588,7 @@ discard block |
||
| 588 | 588 | // return next chunk of documents |
| 589 | 589 | $resultSet = $this->resume(); |
| 590 | 590 | if ($resultSet instanceof DocumentList) { |
| 591 | - $listRecords = $this->generateOutputForDocumentList($resultSet); |
|
| 591 | + $listRecords = $this->generateOutputForDocumentList($resultSet); |
|
| 592 | 592 | $this->parameters['metadataPrefix'] = $resultSet->metadata['metadataPrefix']; |
| 593 | 593 | $this->view->assign('listRecords', $listRecords); |
| 594 | 594 | } |
@@ -621,7 +621,7 @@ discard block |
||
| 621 | 621 | ]; |
| 622 | 622 | } |
| 623 | 623 | |
| 624 | - $resultSet = $this->generateOutputForDocumentList($resultSet); |
|
| 624 | + $resultSet = $this->generateOutputForDocumentList($resultSet); |
|
| 625 | 625 | $this->view->assign('listRecords', $resultSet); |
| 626 | 626 | } |
| 627 | 627 | |
@@ -814,7 +814,7 @@ discard block |
||
| 814 | 814 | */ |
| 815 | 815 | protected function generateOutputForDocumentList(DocumentList $documentListSet) |
| 816 | 816 | { |
| 817 | - $documentsToProcess = $documentListSet->removeRange(0, (int)$this->settings['limit']); |
|
| 817 | + $documentsToProcess = $documentListSet->removeRange(0, (int) $this->settings['limit']); |
|
| 818 | 818 | if ($documentsToProcess === null) { |
| 819 | 819 | $this->error = 'noRecordsMatch'; |
| 820 | 820 | return []; |
@@ -926,7 +926,7 @@ discard block |
||
| 926 | 926 | $resumptionTokenInfo['cursor'] = $documentListSet->metadata['completeListSize'] - count($documentListSet); |
| 927 | 927 | $resumptionTokenInfo['completeListSize'] = $documentListSet->metadata['completeListSize']; |
| 928 | 928 | $expireDateTime = new \DateTime(); |
| 929 | - $expireDateTime->add(new \DateInterval('PT' .$this->settings['expired'] . 'S')); |
|
| 929 | + $expireDateTime->add(new \DateInterval('PT' . $this->settings['expired'] . 'S')); |
|
| 930 | 930 | $resumptionTokenInfo['expired'] = $expireDateTime; |
| 931 | 931 | |
| 932 | 932 | $this->view->assign('resumptionToken', $resumptionTokenInfo); |