From d34871f818f9df686cd752fee8a99b48b261315a Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Thu, 5 Oct 2017 22:20:57 +0200 Subject: [PATCH] Apply fixes from StyleCI (#26) --- src/FacebookDriver.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/FacebookDriver.php b/src/FacebookDriver.php index f8d7e29..9c34b21 100644 --- a/src/FacebookDriver.php +++ b/src/FacebookDriver.php @@ -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; @@ -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; } /** @@ -449,6 +447,5 @@ protected function getMessageRecipient($msg) if (isset($msg['recipient'])) { return $msg['recipient']['id']; } - return null; } }