Skip to content

Commit f1b9d8d

Browse files
authored
Merge pull request php-webdriver#354 from borgogelli/fix-unusedcode
Fix unused code in the URLChecker class
2 parents f694c8e + 87a7eae commit f1b9d8d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Net/URLChecker.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function waitUntilAvailable($timeout_in_ms, $url)
2828
$end = microtime(true) + $timeout_in_ms / 1000;
2929

3030
while ($end > microtime(true)) {
31-
if ($this->getHTTPResponseCode($timeout_in_ms, $url) === 200) {
31+
if ($this->getHTTPResponseCode($url) === 200) {
3232
return $this;
3333
}
3434
usleep(self::POLL_INTERVAL_MS);
@@ -46,7 +46,7 @@ public function waitUntilUnavailable($timeout_in_ms, $url)
4646
$end = microtime(true) + $timeout_in_ms / 1000;
4747

4848
while ($end > microtime(true)) {
49-
if ($this->getHTTPResponseCode($timeout_in_ms, $url) !== 200) {
49+
if ($this->getHTTPResponseCode($url) !== 200) {
5050
return $this;
5151
}
5252
usleep(self::POLL_INTERVAL_MS);
@@ -59,7 +59,7 @@ public function waitUntilUnavailable($timeout_in_ms, $url)
5959
));
6060
}
6161

62-
private function getHTTPResponseCode($timeout_in_ms, $url)
62+
private function getHTTPResponseCode($url)
6363
{
6464
$ch = curl_init();
6565
curl_setopt($ch, CURLOPT_URL, $url);

0 commit comments

Comments
 (0)