@@ -218,7 +218,7 @@ |
||
218 | 218 | * @return int |
219 | 219 | * @link https://www.php.net/manual/en/function.stat.php |
220 | 220 | */ |
221 | - protected function parseMode(/** @scrutinizer ignore-unused */ ?Protocol\Answer\Protection $info, ?int $mode): int |
|
221 | + protected function parseMode(/** @scrutinizer ignore-unused */ ? Protocol\Answer\Protection $info, ?int $mode): int |
|
222 | 222 | { |
223 | 223 | switch ($mode) { |
224 | 224 | case Protocol::RDTYPE_DIR: |
@@ -51,7 +51,7 @@ |
||
51 | 51 | // ]; |
52 | 52 | |
53 | 53 | $context = stream_context_create($this->contextOptions); |
54 | - $link = $params->getSchema() . $params->getHost() . (!empty($params->getPort()) ? ':' . $params->getPort() : '' ); |
|
54 | + $link = $params->getSchema() . $params->getHost() . (!empty($params->getPort()) ? ':' . $params->getPort() : ''); |
|
55 | 55 | $timeout = is_null($params->getTimeout()) ? 10.0 : floatval($params->getTimeout()); // do NOT ask - php7 + phpstan |
56 | 56 | |
57 | 57 | if (!$filePointer = stream_socket_client($link, $errno, $errStr, $timeout, STREAM_CLIENT_CONNECT, $context)) { |