| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 24 | private function call(string $method, string $uri): array |
||
| 25 | { |
||
| 26 | if ($this->handler) { |
||
| 27 | return call_user_func($this->handler); |
||
| 28 | } |
||
| 29 | |||
| 30 | return [ |
||
| 31 | 'status' => 200, |
||
| 32 | 'headers' => [ |
||
| 33 | 'Server' => 'Apache/2.4.38 (Debian)', |
||
| 34 | 'X-Info' => $method . ' ' . $uri |
||
| 35 | ], |
||
| 36 | 'body' => '{"key":"value"}', |
||
| 37 | ]; |
||
| 40 |