@@ -14,7 +14,7 @@ |
||
| 14 | 14 | // Bootstrap code here. |
| 15 | 15 | $this->app->when(TwitterChannel::class) |
| 16 | 16 | ->needs(Twitter::class) |
| 17 | - ->give(function () { |
|
| 17 | + ->give(function() { |
|
| 18 | 18 | return new Twitter(config('services.twitter')); |
| 19 | 19 | }); |
| 20 | 20 | } |
@@ -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 | } |