original_string: protected function shouldSendMessage($message, $data = [])
      {
          if (! $this->events) {
              return true;
          }
  
          return $this->events->until(
              new Events\MessageSending($message, $data)
          ) !== false;
      }
code: protected function shouldSendMessage($message, $data = [])
      {
          if (! $this->events) {
              return true;
          }
  
          return $this->events->until(
              new Events\MessageSending($message, $data)
          ) !== false;
      }
code_tokens: protected function shouldSendMessage ( $ message , $ data = [ ] ) { if ( ! $ this -> events ) { return true ; } return $ this -> events -> until ( new Events \ MessageSending ( $ message , $ data ) ) !== false ; }
docstring: Determines if the message can be sent.
  
  @param  \Swift_Message  $message
  @param  array  $data
  @return bool
docstring_tokens: Determines if the message can be sent .