Conditions | 2 |
Paths | 2 |
Total Lines | 22 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
23 | public function collectAddresses(): array |
||
24 | { |
||
25 | if ($this->mode === self::RETURN_NONE) { |
||
26 | return []; |
||
27 | } |
||
28 | |||
29 | return [ |
||
30 | (new ProxyServerAddress()) |
||
31 | ->setSchema('https') |
||
32 | ->setPort(443) |
||
33 | ->setAddress('localhost'), |
||
34 | (new ProxyServerAddress()) |
||
35 | ->setSchema('http') |
||
36 | ->setPort(80) |
||
37 | ->setAddress('wolnosciowiec.local'), |
||
38 | |||
39 | (new ProxyServerAddress()) |
||
40 | ->setSchema('http') |
||
41 | ->setPort(8080) |
||
42 | ->setAddress('zsp.net.pl'), |
||
43 | ]; |
||
44 | } |
||
45 | |||
55 | } |