Skip to content

Commit

Permalink
Apply fixes from StyleCI (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot authored Oct 5, 2017
1 parent 2dae07c commit d34871f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/FacebookDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ protected function loadMessages()
if (isset($msg['message']['nlp'])) {
$message->addExtras('nlp', $msg['message']['nlp']);
}

} elseif (isset($msg['postback']['payload'])) {
$this->isPostback = true;

Expand Down Expand Up @@ -434,10 +433,9 @@ protected function getMessageSender($msg)
{
if (isset($msg['sender'])) {
return $msg['sender']['id'];
} elseif(isset($msg['optin'])) {
} elseif (isset($msg['optin'])) {
return $msg['optin']['user_ref'];
}
return null;
}

/**
Expand All @@ -449,6 +447,5 @@ protected function getMessageRecipient($msg)
if (isset($msg['recipient'])) {
return $msg['recipient']['id'];
}
return null;
}
}

0 comments on commit d34871f

Please sign in to comment.