@@ -39,39 +39,39 @@ |
||
39 | 39 | * @package OC\Http |
40 | 40 | */ |
41 | 41 | class ClientService implements IClientService { |
42 | - /** @var IConfig */ |
|
43 | - private $config; |
|
44 | - /** @var ICertificateManager */ |
|
45 | - private $certificateManager; |
|
46 | - /** @var DnsPinMiddleware */ |
|
47 | - private $dnsPinMiddleware; |
|
48 | - /** @var LocalAddressChecker */ |
|
49 | - private $localAddressChecker; |
|
42 | + /** @var IConfig */ |
|
43 | + private $config; |
|
44 | + /** @var ICertificateManager */ |
|
45 | + private $certificateManager; |
|
46 | + /** @var DnsPinMiddleware */ |
|
47 | + private $dnsPinMiddleware; |
|
48 | + /** @var LocalAddressChecker */ |
|
49 | + private $localAddressChecker; |
|
50 | 50 | |
51 | - public function __construct(IConfig $config, |
|
52 | - ICertificateManager $certificateManager, |
|
53 | - DnsPinMiddleware $dnsPinMiddleware, |
|
54 | - LocalAddressChecker $localAddressChecker) { |
|
55 | - $this->config = $config; |
|
56 | - $this->certificateManager = $certificateManager; |
|
57 | - $this->dnsPinMiddleware = $dnsPinMiddleware; |
|
58 | - $this->localAddressChecker = $localAddressChecker; |
|
59 | - } |
|
51 | + public function __construct(IConfig $config, |
|
52 | + ICertificateManager $certificateManager, |
|
53 | + DnsPinMiddleware $dnsPinMiddleware, |
|
54 | + LocalAddressChecker $localAddressChecker) { |
|
55 | + $this->config = $config; |
|
56 | + $this->certificateManager = $certificateManager; |
|
57 | + $this->dnsPinMiddleware = $dnsPinMiddleware; |
|
58 | + $this->localAddressChecker = $localAddressChecker; |
|
59 | + } |
|
60 | 60 | |
61 | - /** |
|
62 | - * @return Client |
|
63 | - */ |
|
64 | - public function newClient(): IClient { |
|
65 | - $stack = HandlerStack::create(); |
|
66 | - $stack->push($this->dnsPinMiddleware->addDnsPinning()); |
|
61 | + /** |
|
62 | + * @return Client |
|
63 | + */ |
|
64 | + public function newClient(): IClient { |
|
65 | + $stack = HandlerStack::create(); |
|
66 | + $stack->push($this->dnsPinMiddleware->addDnsPinning()); |
|
67 | 67 | |
68 | - $client = new GuzzleClient(['handler' => $stack]); |
|
68 | + $client = new GuzzleClient(['handler' => $stack]); |
|
69 | 69 | |
70 | - return new Client( |
|
71 | - $this->config, |
|
72 | - $this->certificateManager, |
|
73 | - $client, |
|
74 | - $this->localAddressChecker |
|
75 | - ); |
|
76 | - } |
|
70 | + return new Client( |
|
71 | + $this->config, |
|
72 | + $this->certificateManager, |
|
73 | + $client, |
|
74 | + $this->localAddressChecker |
|
75 | + ); |
|
76 | + } |
|
77 | 77 | } |