@@ -14,7 +14,7 @@ |
||
| 14 | 14 | $urlHost = parse_url($url, PHP_URL_HOST); |
| 15 | 15 | |
| 16 | 16 | $streamContext = stream_context_create(array("ssl" => array("capture_peer_cert" => TRUE))); |
| 17 | - $stream = stream_socket_client("ssl://".$urlHost.":443", $errno, $errstr, 30, STREAM_CLIENT_CONNECT, $streamContext); |
|
| 17 | + $stream = stream_socket_client("ssl://" . $urlHost . ":443", $errno, $errstr, 30, STREAM_CLIENT_CONNECT, $streamContext); |
|
| 18 | 18 | $streamParams = stream_context_get_params($stream); |
| 19 | 19 | |
| 20 | 20 | $certResource = $streamParams['options']['ssl']['peer_certificate']; |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | { |
| 13 | 13 | $results = explode(',', $sanString); |
| 14 | 14 | |
| 15 | - array_walk($results, function (&$item) { |
|
| 15 | + array_walk($results, function(&$item) { |
|
| 16 | 16 | $item = trim($item); |
| 17 | 17 | $item = str_replace("DNS:", "", $item); |
| 18 | 18 | }); |