| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function get(string $method, string $uri): array |
||
| 37 | { |
||
| 38 | if ($method === 'cli') { |
||
| 39 | 2 | return []; |
|
| 40 | } |
||
| 41 | |||
| 42 | 2 | $request = Services::request(false)->withMethod($method); |
|
| 43 | |||
| 44 | 2 | $router = $this->createRouter($request); |
|
| 45 | |||
| 46 | 2 | $finder = new MiddlewareFinder($router); |
|
| 47 | |||
| 48 | 2 | return $finder->find($uri); |
|
| 49 | } |
||
| 62 |