Skip to content

Commit 34df2ac

Browse files
committed
Ran php-cs-fixer
1 parent 7425ba9 commit 34df2ac

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/PhiremockExtension/ReadinessChecker/CurlChecker.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function isReady(): bool
3333
{
3434
$ch = \curl_init();
3535

36-
\curl_setopt($ch, CURLOPT_URL,$this->url . '/__phiremock/reset');
36+
\curl_setopt($ch, CURLOPT_URL, $this->url . '/__phiremock/reset');
3737
\curl_setopt($ch, CURLOPT_POST, 1);
3838
\curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
3939

@@ -46,4 +46,4 @@ public function isReady(): bool
4646

4747
return true;
4848
}
49-
}
49+
}

src/PhiremockExtension/ReadinessChecker/PhiremockClientChecker.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919
namespace Mcustiel\Phiremock\Codeception\Extension\ReadinessChecker;
2020

2121
use GuzzleHttp\Exception\ConnectException;
22-
use Mcustiel\Phiremock\Codeception\Extension\ReadinessCheckerInterface;
2322
use Mcustiel\Phiremock\Client\Phiremock;
24-
use Psr\Http\Client\ClientExceptionInterface;
23+
use Mcustiel\Phiremock\Codeception\Extension\ReadinessCheckerInterface;
2524

2625
class PhiremockClientChecker implements ReadinessCheckerInterface
2726
{
@@ -37,8 +36,9 @@ public function isReady(): bool
3736
try {
3837
$this->client->reset();
3938
return true;
40-
} catch (ConnectException $e) {}
39+
} catch (ConnectException $e) {
40+
}
4141

4242
return false;
4343
}
44-
}
44+
}

src/PhiremockExtension/ReadinessCheckerFactory.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818

1919
namespace Mcustiel\Phiremock\Codeception\Extension;
2020

21-
use Mcustiel\Phiremock\Client\Factory;
2221
use Mcustiel\Phiremock\Client\Connection\Host;
2322
use Mcustiel\Phiremock\Client\Connection\Port;
2423
use Mcustiel\Phiremock\Client\Connection\Scheme;
24+
use Mcustiel\Phiremock\Client\Factory;
2525
use Mcustiel\Phiremock\Codeception\Extension\ReadinessChecker\CurlChecker;
2626
use Mcustiel\Phiremock\Codeception\Extension\ReadinessChecker\PhiremockClientChecker;
2727

@@ -52,4 +52,4 @@ public static function create(string $host, string $port, bool $isSecure): Readi
5252
'Config wait_until_ready is enabled but no readiness checker can be run. Check if you have Phiremock Client installed or curl extension enabled.'
5353
);
5454
}
55-
}
55+
}

0 commit comments

Comments
 (0)