| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 2 | public function init($path, $data) |
|
| 33 | { |
||
| 34 | 2 | $this->base = calcBase($path); |
|
| 35 | 2 | $this->uri = calcURI($path, $this->base); |
|
| 36 | |||
| 37 | 2 | $this->stream = [ |
|
| 38 | 2 | 'type' => 'data', |
|
| 39 | 2 | 'pos' => 0, |
|
| 40 | 2 | 'headers' => [], |
|
| 41 | 2 | 'size' => \strlen($data), |
|
| 42 | 2 | 'data' => $data, |
|
| 43 | 2 | 'buffer' => '', |
|
| 44 | 2 | ]; |
|
| 72 |