| Conditions | 2 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public static function readInputStream($inputStream, string $inputStreamName): string |
||
| 12 | { |
||
| 13 | try { |
||
| 14 | $meta = stream_get_meta_data($inputStream); |
||
| 15 | return fread($inputStream, filesize($meta['uri'])); |
||
| 16 | } catch (\Exception $e) { |
||
| 17 | //throw LOG.exceptionWhileReadingStream(inputStreamName, e); |
||
| 18 | throw new \Exception(sprintf("exceptionWhileReadingStream %s", $inputStreamName)); |
||
| 19 | } |
||
| 40 |