Conditions | 3 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
47 | public function __construct($options = array(), TransportInterface $transport = null) |
||
48 | { |
||
49 | // Call the JHttp constructor to setup the object. |
||
50 | parent::__construct($options, $transport); |
||
51 | |||
52 | // Make sure the user agent string is defined. |
||
53 | if (!isset($this->options['userAgent'])) |
||
54 | { |
||
55 | $this->options['userAgent'] = 'JGitHub/2.0'; |
||
56 | } |
||
57 | |||
58 | // Set the default timeout to 120 seconds. |
||
59 | if (!isset($this->options['timeout'])) |
||
60 | { |
||
61 | $this->options['timeout'] = 120; |
||
62 | } |
||
63 | } |
||
64 | } |
||
65 |