original_string: public function validateAndParseWebhookNotificationFromRequest(\Symfony\Component\HttpFoundation\Request $request) {
          $json_data = json_decode($request->getContent(), true);
          if (!is_array($json_data)) { throw new AuthorizationException("Invalid webhook data received"); }
  
          // make sure the message is signed properly
          //   throws an exception if invalid
          $this->validateWebhookNotification($json_data);
  
          return $this->parseWebhookNotificationData($json_data);
      }
code: public function validateAndParseWebhookNotificationFromRequest(\Symfony\Component\HttpFoundation\Request $request) {
          $json_data = json_decode($request->getContent(), true);
          if (!is_array($json_data)) { throw new AuthorizationException("Invalid webhook data received"); }
  
          // make sure the message is signed properly
          //   throws an exception if invalid
          $this->validateWebhookNotification($json_data);
  
          return $this->parseWebhookNotificationData($json_data);
      }
code_tokens: public function validateAndParseWebhookNotificationFromRequest ( \ Symfony \ Component \ HttpFoundation \ Request $ request ) { $ json_data = json_decode ( $ request -> getContent ( ) , true ) ; if ( ! is_array ( $ json_data ) ) { throw new AuthorizationException ( "Invalid webhook data received" ) ; } // make sure the message is signed properly //   throws an exception if invalid $ this -> validateWebhookNotification ( $ json_data ) ; return $ this -> parseWebhookNotificationData ( $ json_data ) ; }
docstring: Reads the input from a Symfony request and returns the notification
  Throws an AuthorizationException if validation fails
  @return array notification
docstring_tokens: Reads the input from a Symfony request and returns the notification Throws an AuthorizationException if validation fails