@@ -15,14 +15,14 @@ public function __construct(protected TwitterOAuth $twitter)
1515 /**
1616 * Send the given notification.
1717 *
18- * @param mixed $notifiable Should be an object that uses the Illuminate\Notifications\Notifiable trait.
18+ * @param mixed $notifiable Should be an object that uses the Illuminate\Notifications\Notifiable trait.
1919 *
2020 * @throws CouldNotSendNotification
2121 */
2222 public function send ($ notifiable , Notification $ notification ): array |object
2323 {
24- $ this ->twitter ->setApiVersion ('1.1 ' );
2524 $ this ->changeTwitterSettingsIfNeeded ($ notifiable );
25+ $ this ->twitter ->setApiVersion ('1.1 ' );
2626
2727 $ twitterMessage = $ notification ->toTwitter ($ notifiable );
2828 $ twitterMessage = $ this ->addImagesIfGiven ($ twitterMessage );
@@ -52,7 +52,7 @@ public function send($notifiable, Notification $notification): array|object
5252 /**
5353 * Use per user settings instead of default ones.
5454 *
55- * @param object $notifiable Provide an object that uses the Illuminate\Notifications\Notifiable trait.
55+ * @param object $notifiable Provide an object that uses the Illuminate\Notifications\Notifiable trait.
5656 */
5757 private function changeTwitterSettingsIfNeeded (object $ notifiable )
5858 {
@@ -97,9 +97,9 @@ private function addVideosIfGiven(TwitterMessage $twitterMessage): object
9797
9898 $ twitterMessage ->videoIds = collect ($ twitterMessage ->getVideos ())->map (function (TwitterVideo $ video ) {
9999 $ media = $ this ->twitter ->upload ('media/upload ' , [
100- 'media ' => $ video ->getPath (),
100+ 'media ' => $ video ->getPath (),
101101 'media_category ' => 'tweet_video ' ,
102- 'media_type ' => $ video ->getMimeType (),
102+ 'media_type ' => $ video ->getMimeType (),
103103 ], true );
104104
105105 $ status = $ this ->twitter ->mediaStatus ($ media ->media_id_string );
0 commit comments