| Total Complexity | 5 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 3 | Features | 0 |
| 1 | <?php |
||
| 18 | class BaseHeidelpayController extends AbstractController |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @param \Symfony\Component\HttpFoundation\Request $request |
||
| 22 | * |
||
| 23 | * @return array |
||
| 24 | */ |
||
| 25 | protected function getUrldecodedRequestBody(Request $request): array |
||
| 26 | { |
||
| 27 | $allRequestParameters = $request->request->all(); |
||
| 28 | |||
| 29 | foreach ($allRequestParameters as $key => $value) { |
||
| 30 | if (is_string($value)) { |
||
| 31 | $allRequestParameters[$key] = urldecode($value); |
||
| 32 | } |
||
| 33 | } |
||
| 34 | |||
| 35 | return $allRequestParameters; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return \SprykerEco\Yves\Heidelpay\HeidelpayConfigInterface |
||
| 40 | */ |
||
| 41 | protected function getConfig(): HeidelpayConfigInterface |
||
| 42 | { |
||
| 43 | return $this->getFactory()->getConfig(); |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @param callable|null $callback |
||
| 48 | * @param int $status |
||
| 49 | * @param array $headers |
||
| 50 | * |
||
| 51 | * @return \Symfony\Component\HttpFoundation\StreamedResponse |
||
| 52 | */ |
||
| 53 | protected function streamedResponse($callback = null, $status = 200, $headers = []): StreamedResponse |
||
| 59 | } |
||
| 60 | } |
||
| 61 |