Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
35 | 1 | public function format($data) : ResponseInterface |
|
36 | { |
||
37 | /** @var ResponseInterface $response */ |
||
38 | 1 | $response = $this->getContainer()->get('fuel.application.response'); |
|
39 | |||
40 | 1 | return $response->withBody(new CallbackStream( |
|
41 | 1 | function() use ($data) { |
|
42 | 1 | return $data; |
|
43 | 1 | } |
|
44 | )); |
||
45 | } |
||
46 | } |
||
47 |