Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function call() |
||
18 | { |
||
19 | $builder = $this->getBuilder(); |
||
20 | |||
21 | $address = $this->getParam('address', ''); |
||
22 | |||
23 | $this->create(AF_INET6, SOCK_STREAM, SOL_TCP); |
||
24 | |||
25 | if (! $this->connect($address)) { |
||
26 | $builder->down()->withData('error', $this->getError()); |
||
27 | } |
||
28 | |||
29 | $this->close(); |
||
30 | |||
31 | return $builder->build(); |
||
32 | } |
||
34 |