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 | } |
@@ -70,7 +70,7 @@ |
||
70 | 70 | $this->configurationToUseInTestInstance['EXTENSIONS']['dlf'] = $this->getDlfConfiguration(); |
71 | 71 | |
72 | 72 | if ($this->disableJsonWrappedResponse) { |
73 | - $this->frameworkExtensionsToLoad = array_filter($this->frameworkExtensionsToLoad, function ($ext) { |
|
73 | + $this->frameworkExtensionsToLoad = array_filter($this->frameworkExtensionsToLoad, function($ext) { |
|
74 | 74 | return $ext !== 'Resources/Core/Functional/Extensions/json_response'; |
75 | 75 | }); |
76 | 76 | } |
@@ -70,7 +70,8 @@ |
||
70 | 70 | $this->configurationToUseInTestInstance['EXTENSIONS']['dlf'] = $this->getDlfConfiguration(); |
71 | 71 | |
72 | 72 | if ($this->disableJsonWrappedResponse) { |
73 | - $this->frameworkExtensionsToLoad = array_filter($this->frameworkExtensionsToLoad, function ($ext) { |
|
73 | + $this->frameworkExtensionsToLoad = array_filter($this->frameworkExtensionsToLoad, function ($ext) |
|
74 | + { |
|
74 | 75 | return $ext !== 'Resources/Core/Functional/Extensions/json_response'; |
75 | 76 | }); |
76 | 77 | } |
@@ -76,7 +76,7 @@ |
||
76 | 76 | $jsonDocuments = json_decode(file_get_contents($path), true); |
77 | 77 | |
78 | 78 | $updateQuery = $solr->service->createUpdate(); |
79 | - $documents = array_map(function ($jsonDoc) use ($updateQuery) { |
|
79 | + $documents = array_map(function($jsonDoc) use ($updateQuery) { |
|
80 | 80 | $document = $updateQuery->createDocument(); |
81 | 81 | foreach ($jsonDoc as $key => $value) { |
82 | 82 | $document->setField($key, $value); |
@@ -76,7 +76,8 @@ |
||
76 | 76 | $jsonDocuments = json_decode(file_get_contents($path), true); |
77 | 77 | |
78 | 78 | $updateQuery = $solr->service->createUpdate(); |
79 | - $documents = array_map(function ($jsonDoc) use ($updateQuery) { |
|
79 | + $documents = array_map(function ($jsonDoc) use ($updateQuery) |
|
80 | + { |
|
80 | 81 | $document = $updateQuery->createDocument(); |
81 | 82 | foreach ($jsonDoc as $key => $value) { |
82 | 83 | $document->setField($key, $value); |
@@ -40,7 +40,7 @@ |
||
40 | 40 | <root> |
41 | 41 | <single /> |
42 | 42 | </root> |
43 | -XML; |
|
43 | +xml; |
|
44 | 44 | $node = Helper::getXmlFileAsString($xml); |
45 | 45 | $this->assertIsObject($node); |
46 | 46 | $this->assertEquals('root', $node->getName()); |