Skip to content

Commit

Permalink
Apply fixes from StyleCI (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
musonza authored Dec 22, 2021
1 parent 14fcfa6 commit ed3e002
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Models/Conversation.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function addParticipants(array $participants): self
/**
* Remove participant from conversation.
*
* @param $participants
* @param $participants
*
* @return Conversation
*/
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/Models/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Message extends BaseModel
'body',
'participation_id',
'type',
'data'
'data',
];

protected $table = ConfigurationManager::MESSAGES_TABLE;
Expand All @@ -36,7 +36,7 @@ class Message extends BaseModel
*/
protected $casts = [
'flagged' => 'boolean',
'data' => 'array'
'data' => 'array',
];

protected $appends = ['sender'];
Expand Down Expand Up @@ -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()) {
Expand Down

0 comments on commit ed3e002

Please sign in to comment.