| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 1 | public function __invoke(Str $arguments): StreamInterface |
|
| 26 | { |
||
| 27 | 1 | $arguments = $arguments->toEncoding('ASCII'); |
|
| 28 | 1 | $stream = new Stream(Value::class); |
|
| 29 | |||
| 30 | 1 | foreach ($this->types as $type) { |
|
| 31 | 1 | $argument = [$type, 'cut']($arguments); |
|
| 32 | 1 | $stream = $stream->add([$type, 'fromString']($argument)); |
|
| 33 | 1 | $arguments = $arguments->substring($argument->length()); |
|
| 34 | } |
||
| 35 | |||
| 36 | 1 | return $stream; |
|
| 37 | } |
||
| 38 | } |
||
| 39 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.