| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | public function read(int $length) : string |
||
| 48 | { |
||
| 49 | try { |
||
| 50 | return $this->decoratorRead($length); |
||
| 51 | } catch (MessagePartStreamReadException $me) { |
||
| 52 | throw $me; |
||
| 53 | } catch (RuntimeException $e) { |
||
| 54 | throw new MessagePartStreamReadException( |
||
| 55 | $this->part, |
||
| 56 | 'Exception occurred reading a part stream: cid=' . $this->part->getContentId() |
||
| 57 | . ' type=' . $this->part->getContentType() . ', message: ' . $e->getMessage(), |
||
| 58 | $e->getCode(), |
||
| 59 | $e |
||
| 60 | ); |
||
| 64 |