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