| @@ -29,9 +29,9 @@ | ||
| 29 | 29 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 30 | 30 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 31 | 31 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 32 | 32 | */ |
| 33 | -namespace Dudlewebs\WPMCS\Google\ApiCore; | |
| 33 | +namespace Dudlewebs\WPMCS\GCP\Google\ApiCore; | |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @internal |
| 37 | 37 | */ |
| @@ -65,9 +65,9 @@ | ||
| 65 | 65 | $this->sleepMillis($currentPollDelayMillis); |
| 66 | 66 | if ($pollCallable()) { |
| 67 | 67 | return \true; |
| 68 | 68 | } |
| 69 | - $currentPollDelayMillis = (int) min([$currentPollDelayMillis * $pollDelayMultiplier, $maxPollDelayMillis]); | |
| 69 | + $currentPollDelayMillis = (int) \min([$currentPollDelayMillis * $pollDelayMultiplier, $maxPollDelayMillis]); | |
| 70 | 70 | } |
| 71 | 71 | } |
| 72 | 72 | /** |
| 73 | 73 | * Protected to allow overriding for tests |
| @@ -75,9 +75,9 @@ | ||
| 75 | 75 | * @return float Current time in milliseconds |
| 76 | 76 | */ |
| 77 | 77 | protected function getCurrentTimeMillis() |
| 78 | 78 | { |
| 79 | - return microtime(\true) * 1000.0; | |
| 79 | + return \microtime(\true) * 1000.0; | |
| 80 | 80 | } |
| 81 | 81 | /** |
| 82 | 82 | * Protected to allow overriding for tests |
| 83 | 83 | * |
| @@ -84,7 +84,7 @@ | ||
| 84 | 84 | * @param int $millis |
| 85 | 85 | */ |
| 86 | 86 | protected function sleepMillis(int $millis) |
| 87 | 87 | { |
| 88 | - usleep($millis * 1000); | |
| 88 | + \usleep($millis * 1000); | |
| 89 | 89 | } |
| 90 | 90 | } |