lib/AcmeClient.php
private function getNonce(string $uri): Promise {
        if (empty($this->nonces)) {
            return $this->requestNonce($uri);
        }

        return new Success(array_shift($this->nonces));
    }
private function getNonce(string $uri): Promise {
        if (empty($this->nonces)) {
            return $this->requestNonce($uri);
        }

        return new Success(array_shift($this->nonces));
    }
private function getNonce ( string $ uri ) : Promise { if ( empty ( $ this -> nonces ) ) { return $ this -> requestNonce ( $ uri ) ; } return new Success ( array_shift ( $ this -> nonces ) ) ; }
Pops a locally stored nonce or requests a new one for usage.

@param string $uri URI to issue the HEAD request against if no nonce is stored locally.

@return Promise Resolves to a valid nonce.
Pops a locally stored nonce or requests a new one for usage .