File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments