We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 389664f commit d1f577cCopy full SHA for d1f577c
classes/util/Loop.php
@@ -84,16 +84,16 @@ public function execute(callable $code)
84
/*
85
* Calculate max time remaining, don't sleep any longer than that.
86
*/
87
- $usec_remaining = intval(($timeout - microtime(true)) * 1e6);
+ $usecRemaining = intval(($timeout - microtime(true)) * 1e6);
88
89
- if ($usec_remaining <= 0) {
+ if ($usecRemaining <= 0) {
90
91
* We've ran out of time.
92
93
throw new TimeoutException("Timeout of $this->timeout seconds exceeded.");
94
}
95
96
- $usleep = min($usec_remaining, \random_int($min, $max));
+ $usleep = min($usecRemaining, \random_int($min, $max));
97
98
usleep($usleep);
99
0 commit comments