Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function handle(array $user_config, \Exception $ex): ?array |
||
25 | { |
||
26 | $defaults = [ |
||
27 | ResponseBuilder::KEY_API_CODE => BaseApiCodes::EX_UNCAUGHT_EXCEPTION(), |
||
28 | ResponseBuilder::KEY_HTTP_CODE => HttpResponse::HTTP_INTERNAL_SERVER_ERROR, |
||
29 | ]; |
||
30 | |||
31 | return \array_replace($defaults, $user_config); |
||
32 | } |
||
34 |