@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | $this->app->when([TwitterChannel::class, TwitterDirectMessage::class]) |
16 | 16 | ->needs(TwitterOAuth::class) |
17 | - ->give(function () { |
|
17 | + ->give(function() { |
|
18 | 18 | return new TwitterOAuth( |
19 | 19 | config('services.twitter.consumer_key'), |
20 | 20 | config('services.twitter.consumer_secret'), |
@@ -33,11 +33,11 @@ |
||
33 | 33 | * |
34 | 34 | * @return $this |
35 | 35 | */ |
36 | - public function withImage(array|string $images): static |
|
36 | + public function withImage(array | string $images): static |
|
37 | 37 | { |
38 | 38 | $images = is_array($images) ? $images : [$images]; |
39 | 39 | |
40 | - collect($images)->each(function ($image) { |
|
40 | + collect($images)->each(function($image) { |
|
41 | 41 | $this->images[] = new TwitterImage($image); |
42 | 42 | }); |
43 | 43 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * |
20 | 20 | * @throws CouldNotSendNotification |
21 | 21 | */ |
22 | - public function send($notifiable, Notification $notification): array|object |
|
22 | + public function send($notifiable, Notification $notification): array | object |
|
23 | 23 | { |
24 | 24 | $this->changeTwitterSettingsIfNeeded($notifiable); |
25 | 25 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | if (is_a($twitterMessage, TwitterStatusUpdate::class) && $twitterMessage->getImages()) { |
68 | 68 | $this->twitter->setTimeouts(10, 15); |
69 | 69 | |
70 | - $twitterMessage->imageIds = collect($twitterMessage->getImages())->map(function (TwitterImage $image) { |
|
70 | + $twitterMessage->imageIds = collect($twitterMessage->getImages())->map(function(TwitterImage $image) { |
|
71 | 71 | $media = $this->twitter->upload('media/upload', ['media' => $image->getPath()]); |
72 | 72 | |
73 | 73 | return $media->media_id_string; |
@@ -9,7 +9,7 @@ |
||
9 | 9 | { |
10 | 10 | public bool $isJsonRequest = true; |
11 | 11 | |
12 | - public function __construct(private string|int $to, string $content) |
|
12 | + public function __construct(private string | int $to, string $content) |
|
13 | 13 | { |
14 | 14 | parent::__construct($content); |
15 | 15 | } |