Api/Api.php
public function checkResponseIntegrity(array $data)
    {
        if (!isset($data['signature'])) {
            return false;
        }

        return $data['vads_site_id'] === (string)$this->config['site_id']
            && $data['vads_ctx_mode'] === (string)$this->config['ctx_mode']
            && $data['signature'] === $this->generateSignature($data);
    }
public function checkResponseIntegrity(array $data)
    {
        if (!isset($data['signature'])) {
            return false;
        }

        return $data['vads_site_id'] === (string)$this->config['site_id']
            && $data['vads_ctx_mode'] === (string)$this->config['ctx_mode']
            && $data['signature'] === $this->generateSignature($data);
    }
public function checkResponseIntegrity ( array $ data ) { if ( ! isset ( $ data [ 'signature' ] ) ) { return false ; } return $ data [ 'vads_site_id' ] === ( string ) $ this -> config [ 'site_id' ] && $ data [ 'vads_ctx_mode' ] === ( string ) $ this -> config [ 'ctx_mode' ] && $ data [ 'signature' ] === $ this -> generateSignature ( $ data ) ; }
Checks the response signature.

@param array $data

@return bool
Checks the response signature .