original_string: protected function validateRequest()
      {
          $data = $_POST;
          $url = $this->url;
          $signature = $_SERVER['X-Plivo-Signature'];
          $authToken = $this->authToken;
  
          if (!$this->plivo->validate_signature($url, $data, $signature, $authToken)) {
              throw new \InvalidArgumentException('This request was not able to verify it came from Plivo.');
          }
  
          return true;
      }
code: protected function validateRequest()
      {
          $data = $_POST;
          $url = $this->url;
          $signature = $_SERVER['X-Plivo-Signature'];
          $authToken = $this->authToken;
  
          if (!$this->plivo->validate_signature($url, $data, $signature, $authToken)) {
              throw new \InvalidArgumentException('This request was not able to verify it came from Plivo.');
          }
  
          return true;
      }
code_tokens: protected function validateRequest ( ) { $ data = $ _POST ; $ url = $ this -> url ; $ signature = $ _SERVER [ 'X-Plivo-Signature' ] ; $ authToken = $ this -> authToken ; if ( ! $ this -> plivo -> validate_signature ( $ url , $ data , $ signature , $ authToken ) ) { throw new \ InvalidArgumentException ( 'This request was not able to verify it came from Plivo.' ) ; } return true ; }
docstring: Checks if a message is authentic from Plivo.
  
  @throws \InvalidArgumentException
docstring_tokens: Checks if a message is authentic from Plivo .