Skip to content

Commit

Permalink
Ran php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
mcustiel committed May 1, 2021
1 parent 7425ba9 commit 34df2ac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/PhiremockExtension/ReadinessChecker/CurlChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

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

return true;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -37,8 +36,9 @@ public function isReady(): bool
try {
$this->client->reset();
return true;
} catch (ConnectException $e) {}
} catch (ConnectException $e) {
}

return false;
}
}
}
4 changes: 2 additions & 2 deletions src/PhiremockExtension/ReadinessCheckerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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.'
);
}
}
}

0 comments on commit 34df2ac

Please sign in to comment.