protected function checkNonce($consumer, $token, $nonce, $timestamp)
    {
        if (!$nonce) {
            throw new OAuthException(
                'Missing nonce parameter. The parameter is required'
            );
        }
        
        // verify that the nonce is uniqueish
        $found = $this->data_store->lookupNonce(
            $consumer,
            $token,
            $nonce,
            $timestamp
        );
        if ($found) {
            throw new OAuthException("Nonce already used: $nonce");
        }
    }
protected function checkNonce($consumer, $token, $nonce, $timestamp)
    {
        if (!$nonce) {
            throw new OAuthException(
                'Missing nonce parameter. The parameter is required'
            );
        }
        
        // verify that the nonce is uniqueish
        $found = $this->data_store->lookupNonce(
            $consumer,
            $token,
            $nonce,
            $timestamp
        );
        if ($found) {
            throw new OAuthException("Nonce already used: $nonce");
        }
    }
protected function checkNonce ( $ consumer , $ token , $ nonce , $ timestamp ) { if ( ! $ nonce ) { throw new OAuthException ( 'Missing nonce parameter. The parameter is required' ) ; } // verify that the nonce is uniqueish $ found = $ this -> data_store -> lookupNonce ( $ consumer , $ token , $ nonce , $ timestamp ) ; if ( $ found ) { throw new OAuthException ( "Nonce already used: $nonce" ) ; } }
check that the nonce is not repeated
check that the nonce is not repeated