Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
musonza authored Feb 2, 2018
1 parent 8ecb182 commit a65b029
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ private function getConversationsInCommon($conversation1, $conversation2)

public function unreadCount()
{
return $this->message->unreadCount($this->user);
return $this->message->unreadCount($this->user);
}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/Conversations/Conversation.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ private function notifications($user, $readAll)

if ($readAll) {
return $notifications->markAsRead();
}
}

return $notifications;
}

Expand All @@ -309,8 +309,8 @@ private function notifications($user, $readAll)

if ($readAll) {
return $notifications->update(['is_seen' => 1]);
}
}

return $notifications->get();
}

Expand Down
8 changes: 4 additions & 4 deletions src/config/musonza_chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
return [
'user_model' => 'App\User',

/**
/*
* This will allow you to broadcast an event when a message is sent
* Example:
* Channel: private-mc-chat-conversation.2,
* Event: Musonza\Chat\Messages\MessageWasSent
* Channel: private-mc-chat-conversation.2,
* Event: Musonza\Chat\Messages\MessageWasSent
*/
'broadcasts' => false,

/**
/*
* If set to true, this will use Laravel notifications table to store each
* user message notification.
* Otherwise it will use mc_message_notification table.
Expand Down

0 comments on commit a65b029

Please sign in to comment.