| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 90% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class Helper |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @throws RequestException |
||
| 17 | * @return resource |
||
| 18 | */ |
||
| 19 | 17 | public static function getTempStorage() |
|
| 20 | { |
||
| 21 | 17 | return static::getStorageResource('php://temp'); |
|
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @throws RequestException |
||
| 26 | * @return resource |
||
| 27 | */ |
||
| 28 | 26 | public static function getMemStorage() |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $path |
||
| 35 | * @throws RequestException |
||
| 36 | * @return resource |
||
| 37 | */ |
||
| 38 | 36 | protected static function getStorageResource(string $path) |
|
| 50 |