Skip to content

Commit

Permalink
Renamed methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer Alfheim committed Aug 20, 2016
1 parent 1f9a587 commit 32412ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Notifications/Messages/SlackMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function error()
* @param string|null $icon
* @return $this
*/
public function as($username, $icon = null)
public function from($username, $icon = null)
{
$this->username = $username;

Expand All @@ -96,7 +96,7 @@ public function as($username, $icon = null)
* @param string $channel
* @return $this
*/
public function in($channel)
public function to($channel)
{
$this->channel = $channel;

Expand Down
4 changes: 2 additions & 2 deletions tests/Notifications/NotificationSlackChannelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ class NotificationSlackChannelTestNotification extends Notification
public function toSlack($notifiable)
{
return (new SlackMessage)
->as('Ghostbot', ':ghost:')
->in('#ghost-talk')
->from('Ghostbot', ':ghost:')
->to('#ghost-talk')
->content('Content')
->attachment(function ($attachment) {
$attachment->title('Laravel', 'https://laravel.com')
Expand Down

0 comments on commit 32412ec

Please sign in to comment.