Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | 2 | public function handle(array $user_config, /** @scrutinizer ignore-unused */ \Throwable $ex): ?array |
|
28 | 2 | { |
|
29 | $defaults = [ |
||
30 | RB::KEY_API_CODE => BaseApiCodes::EX_UNCAUGHT_EXCEPTION(), |
||
31 | 2 | RB::KEY_HTTP_CODE => HttpResponse::HTTP_INTERNAL_SERVER_ERROR, |
|
32 | ]; |
||
33 | |||
34 | return \array_replace($defaults, $user_config); |
||
35 | } |
||
37 |