@@ -28,8 +28,6 @@ public function __construct(Sns $sns, Dispatcher $events)
2828 /**
2929 * Send the given notification.
3030 *
31- * @param mixed $notifiable
32- * @param \Illuminate\Notifications\Notification $notification
3331 * @return \Aws\Result
3432 */
3533 public function send ($ notifiable , Notification $ notification )
@@ -53,9 +51,6 @@ public function send($notifiable, Notification $notification)
5351 /**
5452 * Get the phone number to send a notification to.
5553 *
56- * @param mixed $notifiable
57- * @param \Illuminate\Notifications\Notification $notification
58- * @return mixed
5954 * @throws CouldNotSendNotification
6055 */
6156 protected function getDestination ($ notifiable , Notification $ notification )
@@ -70,16 +65,14 @@ protected function getDestination($notifiable, Notification $notification)
7065 /**
7166 * Try to get the phone number from some commonly used attributes for that.
7267 *
73- * @param mixed $notifiable
74- * @return mixed
7568 * @throws CouldNotSendNotification
7669 */
7770 protected function guessDestination ($ notifiable )
7871 {
7972 $ commonAttributes = ['phone ' , 'phone_number ' , 'full_phone ' ];
8073 foreach ($ commonAttributes as $ attribute ) {
81- if (isset ($ notifiable ->$ attribute )) {
82- return $ notifiable ->$ attribute ;
74+ if (isset ($ notifiable ->{ $ attribute} )) {
75+ return $ notifiable ->{ $ attribute} ;
8376 }
8477 }
8578
@@ -89,9 +82,6 @@ protected function guessDestination($notifiable)
8982 /**
9083 * Get the SNS Message object.
9184 *
92- * @param $notifiable
93- * @param Notification $notification
94- * @return SnsMessage
9585 * @throws CouldNotSendNotification
9686 */
9787 protected function getMessage ($ notifiable , Notification $ notification ): SnsMessage
0 commit comments