Skip to content

Commit 97fd60a

Browse files
committed
Fix CI
1 parent b1176a7 commit 97fd60a

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/Controller/SearchResultController.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,20 @@ public function proxy(): void
4242

4343
switch ($httpMethod) {
4444
case 'GET':
45-
$query = (string) $this->removeOxidParams(parse_url($currentUrl, PHP_URL_QUERY));
45+
$query = (string) $this->removeOxidParams(parse_url($currentUrl, PHP_URL_QUERY));
4646
$response = $client->request('GET', $endpoint . '?' . $query);
47+
4748
break;
4849
case 'POST':
4950
$rawBody = file_get_contents('php://input');
50-
$body = json_decode($rawBody, true) ?: [];
51+
$body = json_decode($rawBody, true) ?: [];
5152

5253
if (json_last_error() !== JSON_ERROR_NONE) {
5354
throw new \Exception('Invalid JSON in request body');
5455
}
5556

5657
$response = $client->request('POST', $endpoint, [
57-
'body' => json_encode($body),
58+
'body' => json_encode($body),
5859
'headers' => ['Content-Type' => 'application/json'],
5960
]);
6061

@@ -99,6 +100,7 @@ protected function getConfigParam(string $key): string
99100
private function getEndpoint(string $currentUrl): string
100101
{
101102
preg_match('#/([A-Za-z]+\.ff|rest/v[^?]*)#', $currentUrl, $match);
103+
102104
return $match[1] ?? '';
103105
}
104106

src/Event/EnrichProxyDataEvent.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
namespace Omikron\FactFinder\Oxid\Event;

src/Subscriber/EnrichProxyDataEventSubscriber.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?php
2+
23
declare(strict_types=1);
34

45
namespace Omikron\FactFinder\Oxid\Subscriber;
6+
57
use Omikron\FactFinder\Oxid\Event\EnrichProxyDataEvent;
68
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
79

0 commit comments

Comments
 (0)