@@ -13,7 +13,7 @@ |
||
13 | 13 | |
14 | 14 | public static function statusUpdateTooLong($exceededLength) |
15 | 15 | { |
16 | - return new static("Couldn't post Notification, because the status message was too long by " . |
|
17 | - $exceededLength . " character(s)."); |
|
16 | + return new static("Couldn't post Notification, because the status message was too long by ". |
|
17 | + $exceededLength." character(s)."); |
|
18 | 18 | } |
19 | 19 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | public function withImage($images) |
48 | 48 | { |
49 | - collect($images)->each(function ($image) { |
|
49 | + collect($images)->each(function($image) { |
|
50 | 50 | $this->images[] = new TwitterImage($image); |
51 | 51 | }); |
52 | 52 |
@@ -101,7 +101,7 @@ |
||
101 | 101 | |
102 | 102 | /** |
103 | 103 | * Check if the message length is too long |
104 | - * @param $content |
|
104 | + * @param string $content |
|
105 | 105 | * @param $brevity |
106 | 106 | * @return int |
107 | 107 | */ |
@@ -15,7 +15,7 @@ |
||
15 | 15 | // Bootstrap code here. |
16 | 16 | $this->app->when(TwitterChannel::class) |
17 | 17 | ->needs(TwitterOAuth::class) |
18 | - ->give(function () { |
|
18 | + ->give(function() { |
|
19 | 19 | return new TwitterOAuth( |
20 | 20 | config('services.twitter.consumer_key'), |
21 | 21 | config('services.twitter.consumer_secret'), |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace NotificationChannels\Twitter; |
4 | 4 | |
5 | 5 | use Abraham\TwitterOAuth\TwitterOAuth; |
6 | -use Illuminate\Notifications\Notifiable; |
|
7 | 6 | use Illuminate\Notifications\Notification; |
8 | 7 | use NotificationChannels\Twitter\Exceptions\CouldNotSendNotification; |
9 | 8 |
@@ -39,7 +39,7 @@ |
||
39 | 39 | if (is_a($twitterMessage, TwitterStatusUpdate::class) && $twitterMessage->getImages()) { |
40 | 40 | $this->twitter->setTimeouts(10, 15); |
41 | 41 | |
42 | - $twitterMessage->imageIds = collect($twitterMessage->getImages())->map(function (TwitterImage $image) { |
|
42 | + $twitterMessage->imageIds = collect($twitterMessage->getImages())->map(function(TwitterImage $image) { |
|
43 | 43 | $media = $this->twitter->upload('media/upload', ['media' => $image->getPath()]); |
44 | 44 | |
45 | 45 | return $media->media_id_string; |