We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | ->where( |
| 125 | 125 | $queryBuilder->expr()->eq('tx_dlf_tokens.ident', $queryBuilder->createNamedParameter('oai')), |
| 126 | 126 | $queryBuilder->expr()->lt('tx_dlf_tokens.tstamp', |
| 127 | - $queryBuilder->createNamedParameter((int)($GLOBALS['EXEC_TIME'] - $this->settings['expired']))) |
|
| 127 | + $queryBuilder->createNamedParameter((int) ($GLOBALS['EXEC_TIME'] - $this->settings['expired']))) |
|
| 128 | 128 | ) |
| 129 | 129 | ->execute(); |
| 130 | 130 | |
@@ -146,9 +146,9 @@ discard block |
||
| 146 | 146 | protected function error($type) |
| 147 | 147 | { |
| 148 | 148 | $this->error = true; |
| 149 | - $message = LocalizationUtility::translate('LLL:EXT:dlf/Resources/Private/Language/OaiPmh.xml:'.$type); |
|
| 149 | + $message = LocalizationUtility::translate('LLL:EXT:dlf/Resources/Private/Language/OaiPmh.xml:' . $type); |
|
| 150 | 150 | $error = $this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'error', |
| 151 | - htmlspecialchars((!empty($message)? $message: $type), ENT_NOQUOTES, 'UTF-8')); |
|
| 151 | + htmlspecialchars((!empty($message) ? $message : $type), ENT_NOQUOTES, 'UTF-8')); |
|
| 152 | 152 | $error->setAttribute('code', $type); |
| 153 | 153 | return $error; |
| 154 | 154 | } |
@@ -378,7 +378,7 @@ discard block |
||
| 378 | 378 | $errorMessage = LocalizationUtility::translate('LLL:EXT:dlf/Resources/Private/Language/OaiPmh.xml:error'); |
| 379 | 379 | $mets = $this->oai->createElementNS('http://kitodo.org/', 'kitodo:error', |
| 380 | 380 | htmlspecialchars( |
| 381 | - (!empty($errorMessage)? $errorMessage: 'Error!'), ENT_NOQUOTES, 'UTF-8' |
|
| 381 | + (!empty($errorMessage) ? $errorMessage : 'Error!'), ENT_NOQUOTES, 'UTF-8' |
|
| 382 | 382 | ) |
| 383 | 383 | ); |
| 384 | 384 | } |
@@ -1056,7 +1056,7 @@ discard block |
||
| 1056 | 1056 | */ |
| 1057 | 1057 | protected function generateOutputForDocumentList(DocumentList $documentListSet) |
| 1058 | 1058 | { |
| 1059 | - $documentsToProcess = $documentListSet->removeRange(0, (int)$this->settings['limit']); |
|
| 1059 | + $documentsToProcess = $documentListSet->removeRange(0, (int) $this->settings['limit']); |
|
| 1060 | 1060 | $verb = $this->parameters['verb']; |
| 1061 | 1061 | |
| 1062 | 1062 | $connection = GeneralUtility::makeInstance(ConnectionPool::class) |