Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
28 | 5 | public static function configInsecure(): StreamConfig |
|
29 | { |
||
30 | 5 | $streamContext = stream_context_create( |
|
31 | [ |
||
32 | 'ssl' => [ |
||
33 | 'allow_self_signed' => true, |
||
34 | 'verify_peer' => false, |
||
35 | 'verify_peer_name' => false, |
||
36 | 'capture_peer_cert' => true, |
||
37 | 'capture_peer_cert_chain' => true, |
||
38 | 5 | ], |
|
39 | ] |
||
40 | ); |
||
41 | |||
42 | 5 | return new static($streamContext); |
|
43 | } |
||
44 | |||
70 |