Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function getClient(string $scheme, string $host, string $user, string $pass, int $port = 80): Client |
||
22 | { |
||
23 | return new Client( |
||
24 | new PluginClient(HttpClientDiscovery::find(), [ |
||
25 | new ErrorPlugin() |
||
26 | ]), |
||
27 | sprintf( |
||
28 | '%s://%s:%d', |
||
29 | $scheme, |
||
30 | $host, |
||
31 | $port |
||
32 | ), |
||
33 | $user, |
||
34 | $pass |
||
35 | ); |
||
36 | } |
||
37 | } |
||
38 |