Skip to content

Commit 36fcc5f

Browse files
Bump the php-dependencies group with 4 updates (#1110)
* Bump the php-dependencies group with 4 updates Bumps the php-dependencies group with 4 updates: [guzzlehttp/guzzle](https://github.com/guzzle/guzzle), [laravel/horizon](https://github.com/laravel/horizon), [league/commonmark](https://github.com/thephpleague/commonmark) and [sentry/sentry-laravel](https://github.com/getsentry/sentry-laravel). Updates `guzzlehttp/guzzle` from 7.8.1 to 7.9.1 - [Release notes](https://github.com/guzzle/guzzle/releases) - [Changelog](https://github.com/guzzle/guzzle/blob/7.9/CHANGELOG.md) - [Commits](guzzle/guzzle@7.8.1...7.9.1) Updates `laravel/horizon` from 5.25.0 to 5.26.0 - [Release notes](https://github.com/laravel/horizon/releases) - [Changelog](https://github.com/laravel/horizon/blob/5.x/CHANGELOG.md) - [Commits](laravel/horizon@v5.25.0...v5.26.0) Updates `league/commonmark` from 2.4.2 to 2.5.0 - [Release notes](https://github.com/thephpleague/commonmark/releases) - [Changelog](https://github.com/thephpleague/commonmark/blob/2.5/CHANGELOG.md) - [Commits](thephpleague/commonmark@2.4.2...2.5.0) Updates `sentry/sentry-laravel` from 4.7.0 to 4.7.1 - [Release notes](https://github.com/getsentry/sentry-laravel/releases) - [Changelog](https://github.com/getsentry/sentry-laravel/blob/master/CHANGELOG.md) - [Commits](getsentry/sentry-laravel@4.7.0...4.7.1) --- updated-dependencies: - dependency-name: guzzlehttp/guzzle dependency-type: direct:production update-type: version-update:semver-minor dependency-group: php-dependencies - dependency-name: laravel/horizon dependency-type: direct:production update-type: version-update:semver-minor dependency-group: php-dependencies - dependency-name: league/commonmark dependency-type: direct:production update-type: version-update:semver-minor dependency-group: php-dependencies - dependency-name: sentry/sentry-laravel dependency-type: direct:production update-type: version-update:semver-patch dependency-group: php-dependencies ... Signed-off-by: dependabot[bot] <[email protected]> * Fix code styling --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
1 parent 3333f87 commit 36fcc5f

16 files changed

+104
-104
lines changed

app/Concerns/ProvidesSubscriptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function hasSubscriber(User $user): bool
4040

4141
public function subscribe(User $user): Subscription
4242
{
43-
$subscription = new Subscription();
43+
$subscription = new Subscription;
4444
$subscription->uuid = Uuid::uuid4()->toString();
4545
$subscription->userRelation()->associate($user);
4646
$subscription->subscriptionAbleRelation()->associate($this);

app/Http/Requests/ArticleRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function rules(): array
1414
{
1515
return [
1616
'title' => ['required', 'max:100'],
17-
'body' => ['required', new HttpImageRule()],
17+
'body' => ['required', new HttpImageRule],
1818
'tags' => 'array|nullable',
1919
'tags.*' => 'exists:tags,id',
2020
'original_url' => 'url|nullable',

app/Http/Requests/CreateReplyRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class CreateReplyRequest extends Request
1313
public function rules(): array
1414
{
1515
return [
16-
'body' => ['required', new HttpImageRule(), new InvalidMentionRule()],
16+
'body' => ['required', new HttpImageRule, new InvalidMentionRule],
1717
'replyable_id' => 'required',
1818
'replyable_type' => 'required|in:'.Thread::TABLE,
1919
];

app/Http/Requests/ThreadRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class ThreadRequest extends Request
1111
public function rules(): array
1212
{
1313
return [
14-
'subject' => ['required', 'max:60', new DoesNotContainUrlRule()],
15-
'body' => ['required', new HttpImageRule(), new InvalidMentionRule()],
14+
'subject' => ['required', 'max:60', new DoesNotContainUrlRule],
15+
'body' => ['required', new HttpImageRule, new InvalidMentionRule],
1616
'tags' => 'array',
1717
'tags.*' => 'exists:tags,id',
1818
];

app/Http/Requests/UpdatePasswordRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function rules(): array
1414
];
1515

1616
if ($this->user()->hasPassword()) {
17-
$rules['current_password'] = ['required', new PasscheckRule()];
17+
$rules['current_password'] = ['required', new PasscheckRule];
1818
}
1919

2020
return $rules;

app/Http/Requests/UpdateReplyRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class UpdateReplyRequest extends Request
1010
public function rules(): array
1111
{
1212
return [
13-
'body' => ['required', new HttpImageRule(), new InvalidMentionRule()],
13+
'body' => ['required', new HttpImageRule, new InvalidMentionRule],
1414
];
1515
}
1616

app/Jobs/CreateReply.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function handle(): void
4444
event(new ReplyWasCreated($reply));
4545

4646
if ($this->replyAble instanceof SubscriptionAble && ! $this->replyAble->hasSubscriber($this->author)) {
47-
$subscription = new Subscription();
47+
$subscription = new Subscription;
4848
$subscription->uuid = Uuid::uuid4()->toString();
4949
$subscription->userRelation()->associate($this->author);
5050
$subscription->subscriptionAbleRelation()->associate($this->replyAble);

app/Jobs/CreateThread.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function handle(): void
4545
$thread->save();
4646

4747
// Subscribe author to the thread.
48-
$subscription = new Subscription();
48+
$subscription = new Subscription;
4949
$subscription->uuid = Uuid::uuid4()->toString();
5050
$subscription->userRelation()->associate($this->author);
5151
$subscription->subscriptionAbleRelation()->associate($thread);

app/Jobs/SubscribeToSubscriptionAble.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function __construct(private User $user, private SubscriptionAble $subscr
1313

1414
public function handle(): void
1515
{
16-
$subscription = new Subscription();
16+
$subscription = new Subscription;
1717
$subscription->uuid = Uuid::uuid4()->toString();
1818
$subscription->userRelation()->associate($this->user);
1919
$this->subscriptionAble->subscriptionsRelation()->save($subscription);

app/Livewire/EditReply.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function updateReply($body)
2727
$this->body = $body;
2828
$this->authorize(ReplyPolicy::UPDATE, $this->reply);
2929

30-
$this->validate((new UpdateReplyRequest())->rules());
30+
$this->validate((new UpdateReplyRequest)->rules());
3131

3232
dispatch_sync(new UpdateReply($this->reply, Auth::user(), $this->body));
3333

0 commit comments

Comments
 (0)