| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 6 | public function __construct(string $routeItem) |
|
| 39 | { |
||
| 40 | 6 | $this->method = 'GET'; |
|
| 41 | 6 | $this->expr = '/^(*.)$/'; |
|
| 42 | 6 | $this->slugs = []; |
|
| 43 | 6 | if (strpos($routeItem, ';') !== false) { |
|
| 44 | list( |
||
| 45 | 1 | $this->method, |
|
| 46 | 1 | $this->expr, |
|
| 47 | $slugs |
||
| 48 | 1 | ) = explode(';', $routeItem); |
|
| 49 | 1 | $this->slugs = $this->parsedSlugs($slugs); |
|
| 50 | } else { |
||
| 51 | 6 | $this->expr = $routeItem; |
|
| 52 | } |
||
| 53 | } |
||
| 54 | |||
| 99 |