| Conditions | 5 |
| Paths | 16 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 45 | public function getCurlOpt() |
||
| 46 | { |
||
| 47 | $result = array(); |
||
| 48 | if ($this->connection_timeout != null) { |
||
|
|
|||
| 49 | $result[CURLOPT_CONNECTTIMEOUT] = $this->connection_timeout; |
||
| 50 | } |
||
| 51 | if ($this->connection_timeout_ms != null) { |
||
| 52 | $result[CURLOPT_CONNECTTIMEOUT_MS] = $this->connection_timeout_ms; |
||
| 53 | } |
||
| 54 | if ($this->timeout != null) { |
||
| 55 | $result[CURLOPT_TIMEOUT] = $this->timeout; |
||
| 56 | } |
||
| 57 | if ($this->timeout_ms != null) { |
||
| 58 | $result[CURLOPT_TIMEOUT_MS] = $this->timeout_ms; |
||
| 59 | } |
||
| 60 | return $result; |
||
| 61 | } |
||
| 63 |