Skip to content

Commit 29e0a80

Browse files
author
Christoph Rumpel
committed
Sesnilabs fixes
1 parent 14312b8 commit 29e0a80

File tree

5 files changed

+3
-3
lines changed

5 files changed

+3
-3
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@
22
build
33
composer.phar
44
composer.lock
5-
.idea

CHANGELOG.md

100755100644
File mode changed.

CONTRIBUTING.md

100755100644
File mode changed.

src/TwitterChannel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace NotificationChannels\Twitter;
44

55
use Abraham\TwitterOAuth\TwitterOAuth;
6+
use Illuminate\Notifications\Notifiable;
67
use Illuminate\Notifications\Notification;
78
use NotificationChannels\Twitter\Exceptions\CouldNotSendNotification;
89

@@ -38,7 +39,7 @@ public function send($notifiable, Notification $notification)
3839
if (is_a($twitterMessage, TwitterStatusUpdate::class) && $twitterMessage->getImages()) {
3940
$this->twitter->setTimeouts(10, 15);
4041

41-
$twitterMessage->imageIds = collect($twitterMessage->getImages())->map(function ($image) {
42+
$twitterMessage->imageIds = collect($twitterMessage->getImages())->map(function (TwitterImage $image) {
4243
$media = $this->twitter->upload('media/upload', ['media' => $image->getPath()]);
4344

4445
return $media->media_id_string;

src/TwitterStatusUpdate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function getRequestBody()
105105
* @param $brevity
106106
* @return int
107107
*/
108-
private function messageIsTooLong($content, $brevity)
108+
private function messageIsTooLong($content, Brevity $brevity)
109109
{
110110
$tweetLength = $brevity->tweetLength($content);
111111
$exceededLength = $tweetLength - 140;

0 commit comments

Comments
 (0)