src/Vies/HeartBeat.php
Method getSecuredResponse
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getSecuredResponse(): array
{
$streamOptions = [
'ssl' => [
'verify_peer' => true,
Missing class import via use statement (line '232', column '23'). Open
Open
throw new \RuntimeException('Can not create socket stream: ' . $error);
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Missing class import via use statement (line '177', column '23'). Open
Open
throw new \InvalidArgumentException('Expecting a resource to be provided');
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Reference to constant VIES_PROTO
from undeclared class \DragonBe\Vies\Vies
Open
Open
$uri = sprintf('%s://%s/', Vies::VIES_PROTO, $this->host);
- Exclude checks
Reference to constant VIES_PORT
from undeclared class \DragonBe\Vies\Vies
Open
Open
public function __construct(?string $host = null, int $port = Vies::VIES_PORT, int $timeout = self::DEFAULT_TIMEOUT)
- Exclude checks