Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public static function buildPush($apiKey) |
||
29 | { |
||
30 | $client = new Client; |
||
31 | $client->setApiKey($apiKey); |
||
32 | |||
33 | $httpClient = new HttpClient( |
||
34 | null, |
||
35 | [ |
||
36 | 'service' => Socket::class, |
||
37 | 'strictredirects' => true, |
||
38 | 'sslverifypeer' => false, |
||
39 | ] |
||
40 | ); |
||
41 | |||
42 | $client->setHttpClient($httpClient); |
||
43 | |||
44 | return $client; |
||
45 | } |
||
46 | } |
||
47 |