| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public function __construct(string $routeItem) |
||
| 18 | { |
||
| 19 | $this->method = 'GET'; |
||
| 20 | $this->expr = '/^(*.)$/'; |
||
| 21 | $this->callable = function () { |
||
| 22 | }; |
||
| 23 | if (strpos($routeItem, ';') !== false) { |
||
| 24 | list( |
||
| 25 | $this->method, |
||
| 26 | $this->expr, |
||
| 27 | $this->callable |
||
| 28 | ) = explode(';', $routeItem); |
||
| 29 | } else { |
||
| 30 | $this->expr = $routeItem; |
||
| 31 | } |
||
| 65 |