From 34df2ac6ca84e84a3115dadc79ce3dc73f5f168a Mon Sep 17 00:00:00 2001 From: Mariano Custiel Date: Sat, 1 May 2021 15:06:30 +0200 Subject: [PATCH] Ran php-cs-fixer --- src/PhiremockExtension/ReadinessChecker/CurlChecker.php | 4 ++-- .../ReadinessChecker/PhiremockClientChecker.php | 8 ++++---- src/PhiremockExtension/ReadinessCheckerFactory.php | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/PhiremockExtension/ReadinessChecker/CurlChecker.php b/src/PhiremockExtension/ReadinessChecker/CurlChecker.php index 3eb1709..63e2fd2 100644 --- a/src/PhiremockExtension/ReadinessChecker/CurlChecker.php +++ b/src/PhiremockExtension/ReadinessChecker/CurlChecker.php @@ -33,7 +33,7 @@ public function isReady(): bool { $ch = \curl_init(); - \curl_setopt($ch, CURLOPT_URL,$this->url . '/__phiremock/reset'); + \curl_setopt($ch, CURLOPT_URL, $this->url . '/__phiremock/reset'); \curl_setopt($ch, CURLOPT_POST, 1); \curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); @@ -46,4 +46,4 @@ public function isReady(): bool return true; } -} \ No newline at end of file +} diff --git a/src/PhiremockExtension/ReadinessChecker/PhiremockClientChecker.php b/src/PhiremockExtension/ReadinessChecker/PhiremockClientChecker.php index 7766916..4de19b9 100644 --- a/src/PhiremockExtension/ReadinessChecker/PhiremockClientChecker.php +++ b/src/PhiremockExtension/ReadinessChecker/PhiremockClientChecker.php @@ -19,9 +19,8 @@ namespace Mcustiel\Phiremock\Codeception\Extension\ReadinessChecker; use GuzzleHttp\Exception\ConnectException; -use Mcustiel\Phiremock\Codeception\Extension\ReadinessCheckerInterface; use Mcustiel\Phiremock\Client\Phiremock; -use Psr\Http\Client\ClientExceptionInterface; +use Mcustiel\Phiremock\Codeception\Extension\ReadinessCheckerInterface; class PhiremockClientChecker implements ReadinessCheckerInterface { @@ -37,8 +36,9 @@ public function isReady(): bool try { $this->client->reset(); return true; - } catch (ConnectException $e) {} + } catch (ConnectException $e) { + } return false; } -} \ No newline at end of file +} diff --git a/src/PhiremockExtension/ReadinessCheckerFactory.php b/src/PhiremockExtension/ReadinessCheckerFactory.php index fcbe8f9..afb0798 100644 --- a/src/PhiremockExtension/ReadinessCheckerFactory.php +++ b/src/PhiremockExtension/ReadinessCheckerFactory.php @@ -18,10 +18,10 @@ namespace Mcustiel\Phiremock\Codeception\Extension; -use Mcustiel\Phiremock\Client\Factory; use Mcustiel\Phiremock\Client\Connection\Host; use Mcustiel\Phiremock\Client\Connection\Port; use Mcustiel\Phiremock\Client\Connection\Scheme; +use Mcustiel\Phiremock\Client\Factory; use Mcustiel\Phiremock\Codeception\Extension\ReadinessChecker\CurlChecker; use Mcustiel\Phiremock\Codeception\Extension\ReadinessChecker\PhiremockClientChecker; @@ -52,4 +52,4 @@ public static function create(string $host, string $port, bool $isSecure): Readi 'Config wait_until_ready is enabled but no readiness checker can be run. Check if you have Phiremock Client installed or curl extension enabled.' ); } -} \ No newline at end of file +}