Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 10, 2019
1 parent 27b28f4 commit 174323b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions src/Messages/NexmoMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ class NexmoMessage
public $type = 'text';

/**
* The client reference.
* The custom Nexmo client instance.
*
* @var string
* @var \Nexmo\Client|null
*/
public $clientReference = '';
public $client;

/**
* The custom Nexmo client.
* The client reference.
*
* @var \Nexmo\Client|null
* @var string
*/
public $client;
public $clientReference = '';

/**
* Create a new message instance.
Expand Down Expand Up @@ -107,7 +107,7 @@ public function clientReference($clientReference)
* @param \Nexmo\Client $clientReference
* @return $this
*/
public function via($client)
public function usingClient($client)
{
$this->client = $client;

Expand Down
6 changes: 3 additions & 3 deletions tests/Channels/NexmoSmsChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function __construct(Client $client)

public function toNexmo($notifiable)
{
return (new NexmoMessage('this is my message'))->via($this->client);
return (new NexmoMessage('this is my message'))->usingClient($this->client);
}
}

Expand All @@ -208,7 +208,7 @@ public function __construct(Client $client)

public function toNexmo($notifiable)
{
return (new NexmoMessage('this is my message'))->from('5554443333')->unicode()->via($this->client);
return (new NexmoMessage('this is my message'))->from('5554443333')->unicode()->usingClient($this->client);
}
}

Expand All @@ -235,6 +235,6 @@ public function toNexmo($notifiable)
->from('5554443333')
->unicode()
->clientReference('11')
->via($this->client);
->usingClient($this->client);
}
}

0 comments on commit 174323b

Please sign in to comment.