original_string: public function isMessageReceiver($userId)
      {
          if ($this->messageReceivers) {
              foreach ($this->messageReceivers as $receiver) {
                  if ($receiver->receiver_id == $userId) {
                      return true;
                  }
              }
          }
          return false;
      }
code: public function isMessageReceiver($userId)
      {
          if ($this->messageReceivers) {
              foreach ($this->messageReceivers as $receiver) {
                  if ($receiver->receiver_id == $userId) {
                      return true;
                  }
              }
          }
          return false;
      }
code_tokens: public function isMessageReceiver ( $ userId ) { if ( $ this -> messageReceivers ) { foreach ( $ this -> messageReceivers as $ receiver ) { if ( $ receiver -> receiver_id == $ userId ) { return true ; } } } return false ; }
docstring: Checks if user is a message receiver.
  @param int $userId
  @return bool
docstring_tokens: Checks if user is a message receiver .