Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jul 29, 2019
1 parent 638d1cc commit 59436e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Channels/NexmoSmsChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function send($notifiable, Notification $notification)
'from' => $message->from ?: $this->from,
'to' => $to,
'text' => trim($message->content),
'client_ref' => $message->clientRef,
'client_ref' => $message->clientReference,
]);
}
}
8 changes: 4 additions & 4 deletions src/Messages/NexmoMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class NexmoMessage
*
* @var string
*/
public $clientRef = '';
public $clientReference = '';

/**
* Create a new message instance.
Expand Down Expand Up @@ -84,12 +84,12 @@ public function unicode()
/**
* Set the client reference (up to 40 characters).
*
* @param string $clientRef
* @param string $clientReference
* @return $this
*/
public function clientRef($clientRef)
public function clientReference($clientReference)
{
$this->clientRef = $clientRef;
$this->clientReference = $clientReference;

return $this;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/NotificationNexmoChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,6 @@ class NotificationNexmoChannelTestCustomFromAndClientRefNotification extends Not
{
public function toNexmo($notifiable)
{
return (new NexmoMessage('this is my message'))->from('5554443333')->unicode()->clientRef('11');
return (new NexmoMessage('this is my message'))->from('5554443333')->unicode()->clientReference('11');
}
}

0 comments on commit 59436e9

Please sign in to comment.