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 |
@@ -1039,7 +1039,7 @@ |
||
1039 | 1039 | */ |
1040 | 1040 | public static function withoutEmpty(array $array): array |
1041 | 1041 | { |
1042 | - return array_values(array_filter($array, function ($entry) { |
|
1042 | + return array_values(array_filter($array, function($entry) { |
|
1043 | 1043 | return !empty($entry); |
1044 | 1044 | })); |
1045 | 1045 | } |
@@ -1039,7 +1039,8 @@ |
||
1039 | 1039 | */ |
1040 | 1040 | public static function withoutEmpty(array $array): array |
1041 | 1041 | { |
1042 | - return array_values(array_filter($array, function ($entry) { |
|
1042 | + return array_values(array_filter($array, function ($entry) |
|
1043 | + { |
|
1043 | 1044 | return !empty($entry); |
1044 | 1045 | })); |
1045 | 1046 | } |
@@ -64,7 +64,7 @@ |
||
64 | 64 | :header-rows: $numHeaderRows |
65 | 65 | |
66 | 66 | |
67 | -RST; |
|
67 | +rst; |
|
68 | 68 | |
69 | 69 | // Pattern for a row: |
70 | 70 | // |
@@ -287,6 +287,4 @@ |
||
287 | 287 | $section->addTable($rows, $header); |
288 | 288 | } |
289 | 289 | |
290 | - return $page; |
|
291 | - } |
|
292 | -} |
|
290 | + return $page |
|
293 | 291 | \ No newline at end of file |
@@ -287,6 +287,4 @@ |
||
287 | 287 | $section->addTable($rows, $header); |
288 | 288 | } |
289 | 289 | |
290 | - return $page; |
|
291 | - } |
|
292 | -} |
|
290 | + return $page |
|
293 | 291 | \ No newline at end of file |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | |
191 | 191 | $text = $fieldDocParser->getDescription(); |
192 | 192 | $lines = explode("\n", $text); |
193 | - $lines = array_map(function ($line) { |
|
193 | + $lines = array_map(function($line) { |
|
194 | 194 | // There may be a single non-signifying space after the doc-comment asterisk |
195 | 195 | return $line[0] === ' ' |
196 | 196 | ? substr($line, 1) |
@@ -287,6 +287,4 @@ discard block |
||
287 | 287 | $section->addTable($rows, $header); |
288 | 288 | } |
289 | 289 | |
290 | - return $page; |
|
291 | - } |
|
292 | -} |
|
290 | + return $page |
|
293 | 291 | \ No newline at end of file |
@@ -190,7 +190,8 @@ discard block |
||
190 | 190 | |
191 | 191 | $text = $fieldDocParser->getDescription(); |
192 | 192 | $lines = explode("\n", $text); |
193 | - $lines = array_map(function ($line) { |
|
193 | + $lines = array_map(function ($line) |
|
194 | + { |
|
194 | 195 | // There may be a single non-signifying space after the doc-comment asterisk |
195 | 196 | return $line[0] === ' ' |
196 | 197 | ? substr($line, 1) |
@@ -287,6 +288,4 @@ discard block |
||
287 | 288 | $section->addTable($rows, $header); |
288 | 289 | } |
289 | 290 | |
290 | - return $page; |
|
291 | - } |
|
292 | -} |
|
291 | + return $page |
|
293 | 292 | \ No newline at end of file |
@@ -287,6 +287,4 @@ |
||
287 | 287 | $section->addTable($rows, $header); |
288 | 288 | } |
289 | 289 | |
290 | - return $page; |
|
291 | - } |
|
292 | -} |
|
290 | + return $page |
|
293 | 291 | \ No newline at end of file |