diff --git a/src/Models/Conversation.php b/src/Models/Conversation.php index 16c39bc..56ab219 100644 --- a/src/Models/Conversation.php +++ b/src/Models/Conversation.php @@ -123,7 +123,7 @@ public function addParticipants(array $participants): self /** * Remove participant from conversation. * - * @param $participants + * @param $participants * * @return Conversation */ @@ -269,7 +269,7 @@ public function unReadNotifications(Model $participant): Collection /** * Gets the notifications for the participant. * - * @param $participant + * @param $participant * @param bool $readAll * * @return MessageNotification diff --git a/src/Models/Message.php b/src/Models/Message.php index f7967a9..4498b7a 100644 --- a/src/Models/Message.php +++ b/src/Models/Message.php @@ -18,7 +18,7 @@ class Message extends BaseModel 'body', 'participation_id', 'type', - 'data' + 'data', ]; protected $table = ConfigurationManager::MESSAGES_TABLE; @@ -36,7 +36,7 @@ class Message extends BaseModel */ protected $casts = [ 'flagged' => 'boolean', - 'data' => 'array' + 'data' => 'array', ]; protected $appends = ['sender']; @@ -92,7 +92,7 @@ public function send(Conversation $conversation, string $body, Participation $pa 'body' => $body, 'participation_id' => $participant->getKey(), 'type' => $type, - 'data' => $data + 'data' => $data, ]); if (Chat::broadcasts()) {