diff --git a/composer.json b/composer.json index 3fb989a..3eac36c 100644 --- a/composer.json +++ b/composer.json @@ -66,5 +66,10 @@ "@test", "@pmd" ] + }, + "config": { + "allow-plugins": { + "infection/extension-installer": true + } } } diff --git a/src/Vies/HeartBeat.php b/src/Vies/HeartBeat.php index 2902f4b..e3dc707 100644 --- a/src/Vies/HeartBeat.php +++ b/src/Vies/HeartBeat.php @@ -63,8 +63,12 @@ class HeartBeat * @param int $port * @param int $timeout */ - public function __construct(?string $host = null, int $port = Vies::VIES_PORT, int $timeout = self::DEFAULT_TIMEOUT, ?string $path = null) - { + public function __construct( + ?string $host = null, + int $port = Vies::VIES_PORT, + int $timeout = self::DEFAULT_TIMEOUT, + ?string $path = null + ) { if (null !== $host) { $this->setHost($host); } diff --git a/src/Vies/Vies.php b/src/Vies/Vies.php index 85ba5f7..b428e10 100644 --- a/src/Vies/Vies.php +++ b/src/Vies/Vies.php @@ -243,7 +243,9 @@ public function setOptions(array $options): self */ public function getHeartBeat(): HeartBeat { - $this->heartBeat = $this->heartBeat ?? new HeartBeat(self::VIES_DOMAIN, self::VIES_PORT, HeartBeat::DEFAULT_TIMEOUT, self::VIES_PATH); + $this->heartBeat = + $this->heartBeat ?? + new HeartBeat(self::VIES_DOMAIN, self::VIES_PORT, HeartBeat::DEFAULT_TIMEOUT, self::VIES_PATH); return $this->heartBeat; } diff --git a/tests/Vies/HeartBeatTest.php b/tests/Vies/HeartBeatTest.php index 48174bb..a6a724f 100644 --- a/tests/Vies/HeartBeatTest.php +++ b/tests/Vies/HeartBeatTest.php @@ -114,7 +114,13 @@ public function socketProvider(): array return [ 'Non-existing socket on localhost' => ['127.0.0.1', -1, 10, null, false], 'Socket 443 on ec.europe.eu' => [Vies::VIES_DOMAIN, Vies::VIES_PORT, 10, null, false], - 'Socket 443 on ec.europe.eu'.Vies::VIES_PATH => [Vies::VIES_DOMAIN, Vies::VIES_PORT, 10, Vies::VIES_PATH, true], + 'Socket 443 on ec.europe.eu'.Vies::VIES_PATH => [ + Vies::VIES_DOMAIN, + Vies::VIES_PORT, + 10, + Vies::VIES_PATH, + true + ], ]; }