@@ -38,7 +38,7 @@ |
||
38 | 38 | if (is_a($twitterMessage, TwitterStatusUpdate::class) && $twitterMessage->getImages()) { |
39 | 39 | $this->twitter->setTimeouts(10, 15); |
40 | 40 | |
41 | - $twitterMessage->imageIds = collect($twitterMessage->getImages())->map(function ($image) { |
|
41 | + $twitterMessage->imageIds = collect($twitterMessage->getImages())->map(function($image) { |
|
42 | 42 | $media = $this->twitter->upload('media/upload', ['media' => $image->getPath()]); |
43 | 43 | |
44 | 44 | return $media->media_id_string; |
@@ -101,8 +101,8 @@ |
||
101 | 101 | |
102 | 102 | /** |
103 | 103 | * Check if the message length is too long |
104 | - * @param $content |
|
105 | - * @param $brevity |
|
104 | + * @param string $content |
|
105 | + * @param Brevity $brevity |
|
106 | 106 | * @return int |
107 | 107 | */ |
108 | 108 | private function messageIsTooLong($content, $brevity) |
@@ -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 |
@@ -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 | } |
@@ -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'), |