We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -78,7 +78,7 @@ |
||
78 | 78 | ResponseInterface $response, |
79 | 79 | ServerRequestInterface $request |
80 | 80 | ): ResponseInterface { |
81 | - $origin = (string) ($request->getHeaderLine('Origin') ?: '*'); |
|
81 | + $origin = (string) ($request->getHeaderLine('Origin') ? : '*'); |
|
82 | 82 | |
83 | 83 | return $response |
84 | 84 | ->withHeader('Access-Control-Allow-Methods', 'GET, OPTIONS') |
@@ -45,7 +45,7 @@ |
||
45 | 45 | $parameters = $request->getParsedBody(); |
46 | 46 | $solrCore = (string) $parameters['solrcore']; |
47 | 47 | $uHash = (string) $parameters['uHash']; |
48 | - if (hash_equals(GeneralUtility::hmac((string)(new Typo3Version()) . Environment::getExtensionsPath(), 'SearchSuggest'), $uHash) === false) { |
|
48 | + if (hash_equals(GeneralUtility::hmac((string) (new Typo3Version()) . Environment::getExtensionsPath(), 'SearchSuggest'), $uHash) === false) { |
|
49 | 49 | throw new \InvalidArgumentException('No valid parameter passed!', 1580585079); |
50 | 50 | } |
51 | 51 | // Perform Solr query. |
@@ -150,7 +150,7 @@ |
||
150 | 150 | |
151 | 151 | // Add uHash parameter to suggest parameter to make a basic protection of this form. |
152 | 152 | if ($this->settings['suggest']) { |
153 | - $this->view->assign('uHash', GeneralUtility::hmac((string)(new Typo3Version()) . Environment::getExtensionsPath(), 'SearchSuggest')); |
|
153 | + $this->view->assign('uHash', GeneralUtility::hmac((string) (new Typo3Version()) . Environment::getExtensionsPath(), 'SearchSuggest')); |
|
154 | 154 | } |
155 | 155 | } |
156 | 156 |
@@ -279,7 +279,7 @@ |
||
279 | 279 | } |
280 | 280 | |
281 | 281 | if (is_array($metadataArray[$i][$metadataName])) { |
282 | - $metadataArray[$i][$metadataName] = array_values(array_filter($metadataArray[$i][$metadataName], function ($value) { |
|
282 | + $metadataArray[$i][$metadataName] = array_values(array_filter($metadataArray[$i][$metadataName], function($value) { |
|
283 | 283 | return !empty($value); |
284 | 284 | })); |
285 | 285 | } |
@@ -279,7 +279,8 @@ |
||
279 | 279 | } |
280 | 280 | |
281 | 281 | if (is_array($metadataArray[$i][$metadataName])) { |
282 | - $metadataArray[$i][$metadataName] = array_values(array_filter($metadataArray[$i][$metadataName], function ($value) { |
|
282 | + $metadataArray[$i][$metadataName] = array_values(array_filter($metadataArray[$i][$metadataName], function ($value) |
|
283 | + { |
|
283 | 284 | return !empty($value); |
284 | 285 | })); |
285 | 286 | } |
@@ -186,13 +186,13 @@ |
||
186 | 186 | $newRecord->setDefaultValue($values['default_value']); |
187 | 187 | $newRecord->setWrap($values['wrap']); |
188 | 188 | $newRecord->setIndexTokenized($values['index_tokenized']); |
189 | - $newRecord->setIndexStored((int)$values['index_stored']); |
|
190 | - $newRecord->setIndexIndexed((int)$values['index_indexed']); |
|
191 | - $newRecord->setIndexBoost((float)$values['index_boost']); |
|
192 | - $newRecord->setIsSortable((int)$values['is_sortable']); |
|
193 | - $newRecord->setIsFacet((int)$values['is_facet']); |
|
194 | - $newRecord->setIsListed((int)$values['is_listed']); |
|
195 | - $newRecord->setIndexAutocomplete((int)$values['index_autocomplete']); |
|
189 | + $newRecord->setIndexStored((int) $values['index_stored']); |
|
190 | + $newRecord->setIndexIndexed((int) $values['index_indexed']); |
|
191 | + $newRecord->setIndexBoost((float) $values['index_boost']); |
|
192 | + $newRecord->setIsSortable((int) $values['is_sortable']); |
|
193 | + $newRecord->setIsFacet((int) $values['is_facet']); |
|
194 | + $newRecord->setIsListed((int) $values['is_listed']); |
|
195 | + $newRecord->setIndexAutocomplete((int) $values['index_autocomplete']); |
|
196 | 196 | |
197 | 197 | if (is_array($values['format'])) { |
198 | 198 | foreach ($values['format'] as $format) { |