| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 15 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 50 | public function connect(): void  | 
            ||
| 51 |     { | 
            ||
| 52 | $this->resource = @stream_socket_client(  | 
            ||
| 53 | 'ssl://' . $this->host . ':' . $this->port,  | 
            ||
| 54 | $errorCode,  | 
            ||
| 55 | $errorMessage,  | 
            ||
| 56 | $this->options->getTimeout()  | 
            ||
| 57 | );  | 
            ||
| 58 | |||
| 59 |         if ($this->resource === false) { | 
            ||
| 60 | throw new \RuntimeException(sprintf(  | 
            ||
| 61 | 'Could not create resource: %s', $errorMessage), $errorCode  | 
            ||
| 62 | );  | 
            ||
| 63 | }  | 
            ||
| 64 | }  | 
            ||
| 65 | }  |