| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.3149 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 34 | 1 | public function parse(array $routes): array |
|
| 35 | { |
||
| 36 | /** @var \Venta\Contracts\Routing\Route $route */ |
||
| 37 | 1 | foreach ($routes as $route) { |
|
| 38 | 1 | $this->collector->addRoute($route->getMethods(), $route->getPath(), $route); |
|
| 39 | } |
||
| 40 | |||
| 41 | 1 | return $this->collector->getData(); |
|
| 42 | } |
||
| 43 | |||
| 45 |