| Total Complexity | 6 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class IoUtil |
||
| 9 | { |
||
| 10 | //private static final EngineUtilLogger LOG = ProcessEngineLogger.UTIL_LOGGER; |
||
| 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 | } |
||
| 20 | } |
||
| 21 | |||
| 22 | public static function getFile(string $filePath) |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 31 | public static function closeSilently($file): void |
||
| 36 | // ignored |
||
| 37 | } |
||
| 40 |