| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | protected function handleSource(): ?Traversable |
||
| 31 | { |
||
| 32 | if (!in_array(StreamWrapper::NAME, stream_get_wrappers())) { |
||
| 33 | stream_wrapper_register(StreamWrapper::NAME, StreamWrapper::class); |
||
| 34 | } |
||
| 35 | |||
| 36 | $this->source = fopen(StreamWrapper::NAME . '://stream', 'rb', false, stream_context_create([ |
||
| 37 | StreamWrapper::NAME => ['stream' => $this->source], |
||
| 38 | ])); |
||
| 39 | |||
| 40 | return null; |
||
| 41 | } |
||
| 43 |