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 = ''; |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | // return next chunk of documents |
487 | 487 | $resultSet = $this->resume(); |
488 | 488 | if ($resultSet instanceof DocumentList) { |
489 | - $listIdentifiers = $this->generateOutputForDocumentList($resultSet); |
|
489 | + $listIdentifiers = $this->generateOutputForDocumentList($resultSet); |
|
490 | 490 | $this->view->assign('listIdentifiers', $listIdentifiers); |
491 | 491 | } |
492 | 492 | return; |
@@ -516,7 +516,7 @@ discard block |
||
516 | 516 | 'metadataPrefix' => $this->parameters['metadataPrefix'], |
517 | 517 | ]; |
518 | 518 | |
519 | - $listIdentifiers = $this->generateOutputForDocumentList($resultSet); |
|
519 | + $listIdentifiers = $this->generateOutputForDocumentList($resultSet); |
|
520 | 520 | $this->view->assign('listIdentifiers', $listIdentifiers); |
521 | 521 | } |
522 | 522 | |
@@ -587,7 +587,7 @@ discard block |
||
587 | 587 | } else { |
588 | 588 | // return next chunk of documents |
589 | 589 | $resultSet = $this->resume(); |
590 | - $listRecords = $this->generateOutputForDocumentList($resultSet); |
|
590 | + $listRecords = $this->generateOutputForDocumentList($resultSet); |
|
591 | 591 | $this->parameters['metadataPrefix'] = $resultSet->metadata['metadataPrefix']; |
592 | 592 | $this->view->assign('listRecords', $listRecords); |
593 | 593 | return; |
@@ -617,7 +617,7 @@ discard block |
||
617 | 617 | 'metadataPrefix' => $this->parameters['metadataPrefix'], |
618 | 618 | ]; |
619 | 619 | |
620 | - $resultSet = $this->generateOutputForDocumentList($resultSet); |
|
620 | + $resultSet = $this->generateOutputForDocumentList($resultSet); |
|
621 | 621 | $this->view->assign('listRecords', $resultSet); |
622 | 622 | } |
623 | 623 | |
@@ -810,7 +810,7 @@ discard block |
||
810 | 810 | */ |
811 | 811 | protected function generateOutputForDocumentList(DocumentList $documentListSet) |
812 | 812 | { |
813 | - $documentsToProcess = $documentListSet->removeRange(0, (int)$this->settings['limit']); |
|
813 | + $documentsToProcess = $documentListSet->removeRange(0, (int) $this->settings['limit']); |
|
814 | 814 | $verb = $this->parameters['verb']; |
815 | 815 | |
816 | 816 | $connection = GeneralUtility::makeInstance(ConnectionPool::class) |
@@ -917,7 +917,7 @@ discard block |
||
917 | 917 | $resumptionTokenInfo['cursor'] = $documentListSet->metadata['completeListSize'] - count($documentListSet); |
918 | 918 | $resumptionTokenInfo['completeListSize'] = $documentListSet->metadata['completeListSize']; |
919 | 919 | $expireDateTime = new \DateTime(); |
920 | - $expireDateTime->add(new \DateInterval('PT' .$this->settings['expired'] . 'S')); |
|
920 | + $expireDateTime->add(new \DateInterval('PT' . $this->settings['expired'] . 'S')); |
|
921 | 921 | $resumptionTokenInfo['expired'] = $expireDateTime; |
922 | 922 | |
923 | 923 | $this->view->assign('resumptionToken', $resumptionTokenInfo); |