Conditions | 5 |
Paths | 16 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
54 | public function getCurlOpt() |
||
55 | { |
||
56 | $result = array(); |
||
57 | if ($this->connection_timeout != null) { |
||
|
|||
58 | $result[CURLOPT_CONNECTTIMEOUT] = $this->connection_timeout; |
||
59 | } |
||
60 | if ($this->connection_timeout_ms != null) { |
||
61 | $result[CURLOPT_CONNECTTIMEOUT_MS] = $this->connection_timeout_ms; |
||
62 | } |
||
63 | if ($this->timeout != null) { |
||
64 | $result[CURLOPT_TIMEOUT] = $this->timeout; |
||
65 | } |
||
66 | if ($this->timeout_ms != null) { |
||
67 | $result[CURLOPT_TIMEOUT_MS] = $this->timeout_ms; |
||
68 | } |
||
69 | return $result; |
||
70 | } |
||
72 |