Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | 2 | public function __construct(\ArrayAccess $inputs, string $key = 'REQUEST_URI', ?string $virtualDir = null) |
|
20 | { |
||
21 | 2 | $requestUrl = ''; |
|
22 | 2 | if ($inputs->offsetExists($key)) { |
|
23 | 1 | $requestUrl = strval($inputs->offsetGet($key)); |
|
24 | } |
||
25 | 2 | parent::__construct($requestUrl, $virtualDir); |
|
26 | 2 | } |
|
28 |