11<?php
2+
23namespace NotificationChannels \Twitter ;
34
45use GuzzleHttp \Client ;
5- use NotificationChannels \Twitter \Exceptions \CouldNotSendNotification ;
66use Illuminate \Notifications \Notification ;
7- use NotificationChannels \Twitter \Exceptions \InvalidConfiguration ;
7+ use NotificationChannels \Twitter \Exceptions \CouldNotSendNotification ;
88
99class TwitterChannel
1010{
@@ -15,7 +15,7 @@ class TwitterChannel
1515 protected $ twitter ;
1616
1717 /**
18- * @param Client $client
18+ * @param Client $client
1919 * @param Twitter $twitter
2020 */
2121 public function __construct (Client $ client , Twitter $ twitter )
@@ -27,7 +27,7 @@ public function __construct(Client $client, Twitter $twitter)
2727 /**
2828 * Send the given notification.
2929 *
30- * @param mixed $notifiable
30+ * @param mixed $notifiable
3131 * @param \Illuminate\Notifications\Notification $notification
3232 *
3333 * @throws CouldNotSendNotification
@@ -37,13 +37,10 @@ public function send($notifiable, Notification $notification)
3737 $ twitterMessage = $ notification ->toTwitter ($ notifiable );
3838
3939 $ response = $ this ->twitter ->connection ->post (
40- " statuses/update " , [" status " => $ twitterMessage ->getContent ()]);
40+ ' statuses/update ' , [' status ' => $ twitterMessage ->getContent ()]);
4141
4242 if (isset ($ response ->errors )) {
4343 throw CouldNotSendNotification::serviceRespondedWithAnError ($ response );
4444 }
45-
4645 }
47-
4846}
49-
0 commit comments