@@ -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 |
@@ -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'), |
@@ -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; |