Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
25 | 15 | protected function response($data, int $status = 200, array $headers = [], array $context = []): JsonResponse |
|
26 | { |
||
27 | 15 | $contextWithRoles = $this->appendRolesToContextGroups($context); |
|
28 | 15 | $translatedContent = $this->translateResponse($data, $contextWithRoles); |
|
29 | |||
30 | 15 | return $this->json($translatedContent, $status, $headers, $context); |
|
31 | } |
||
32 | |||
51 | } |