Skip to content

Commit

Permalink
Apply fixes from StyleCI (musonza#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
musonza authored Nov 7, 2019
1 parent a8040c1 commit f32cd7f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/Models/Conversation.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,10 @@ public function removeParticipant($participants)
*
* @param array $payload
*
* @return Conversation
* @throws DirectMessagingExistsException
*
* @throws InvalidDirectMessageNumberOfParticipants
*
* @return Conversation
*/
public function start(array $payload): self
{
Expand Down Expand Up @@ -218,6 +218,7 @@ public function makeDirect($isDirect = true)

/**
* @param $participants
*
* @throws DirectMessagingExistsException
*/
private function ensureNoDirectMessagingExist($participants)
Expand Down
1 change: 0 additions & 1 deletion src/Services/ConversationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Illuminate\Database\Eloquent\Model;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;
use Musonza\Chat\ConfigurationManager;
use Musonza\Chat\Eventing\ConversationStarted;
use Musonza\Chat\Models\Conversation;
use Musonza\Chat\Traits\Paginates;
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/ConversationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public function it_prevents_additional_participants_to_direct_conversation()
/** @test */
public function it_can_return_a_conversation_between_users()
{
/** @var Conversation $conversation */
/** @var Conversation $conversation */
// $conversation = Chat::makeDirect()->createConversation([$this->alpha, $this->bravo]);
$conversation = Chat::createConversation([$this->alpha, $this->bravo])->makeDirect();

Expand Down

0 comments on commit f32cd7f

Please sign in to comment.