| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 47 | public static function addRequestTimeoutConfiguration(array $requestParams, int $timeout): array |
||
| 48 | { |
||
| 49 | $config = []; |
||
| 50 | $config[self::CONFIG_NAME_CONNECTION_TIMEOUT] = $timeout; |
||
| 51 | $config[self::CONFIG_NAME_SOCKET_TIMEOUT] = $timeout; |
||
| 52 | |||
| 53 | $requestParams[self::PARAM_NAME_REQUEST_CONFIG] = $config; |
||
| 54 | |||
| 55 | return $requestParams; |
||
| 56 | } |
||
| 58 |