Skip to content

Bump the php-dependencies group with 4 updates #1110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Concerns/ProvidesSubscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function hasSubscriber(User $user): bool

public function subscribe(User $user): Subscription
{
$subscription = new Subscription();
$subscription = new Subscription;
$subscription->uuid = Uuid::uuid4()->toString();
$subscription->userRelation()->associate($user);
$subscription->subscriptionAbleRelation()->associate($this);
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Requests/ArticleRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function rules(): array
{
return [
'title' => ['required', 'max:100'],
'body' => ['required', new HttpImageRule()],
'body' => ['required', new HttpImageRule],
'tags' => 'array|nullable',
'tags.*' => 'exists:tags,id',
'original_url' => 'url|nullable',
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Requests/CreateReplyRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CreateReplyRequest extends Request
public function rules(): array
{
return [
'body' => ['required', new HttpImageRule(), new InvalidMentionRule()],
'body' => ['required', new HttpImageRule, new InvalidMentionRule],
'replyable_id' => 'required',
'replyable_type' => 'required|in:'.Thread::TABLE,
];
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Requests/ThreadRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class ThreadRequest extends Request
public function rules(): array
{
return [
'subject' => ['required', 'max:60', new DoesNotContainUrlRule()],
'body' => ['required', new HttpImageRule(), new InvalidMentionRule()],
'subject' => ['required', 'max:60', new DoesNotContainUrlRule],
'body' => ['required', new HttpImageRule, new InvalidMentionRule],
'tags' => 'array',
'tags.*' => 'exists:tags,id',
];
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Requests/UpdatePasswordRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function rules(): array
];

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

return $rules;
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Requests/UpdateReplyRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class UpdateReplyRequest extends Request
public function rules(): array
{
return [
'body' => ['required', new HttpImageRule(), new InvalidMentionRule()],
'body' => ['required', new HttpImageRule, new InvalidMentionRule],
];
}

Expand Down
2 changes: 1 addition & 1 deletion app/Jobs/CreateReply.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function handle(): void
event(new ReplyWasCreated($reply));

if ($this->replyAble instanceof SubscriptionAble && ! $this->replyAble->hasSubscriber($this->author)) {
$subscription = new Subscription();
$subscription = new Subscription;
$subscription->uuid = Uuid::uuid4()->toString();
$subscription->userRelation()->associate($this->author);
$subscription->subscriptionAbleRelation()->associate($this->replyAble);
Expand Down
2 changes: 1 addition & 1 deletion app/Jobs/CreateThread.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function handle(): void
$thread->save();

// Subscribe author to the thread.
$subscription = new Subscription();
$subscription = new Subscription;
$subscription->uuid = Uuid::uuid4()->toString();
$subscription->userRelation()->associate($this->author);
$subscription->subscriptionAbleRelation()->associate($thread);
Expand Down
2 changes: 1 addition & 1 deletion app/Jobs/SubscribeToSubscriptionAble.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct(private User $user, private SubscriptionAble $subscr

public function handle(): void
{
$subscription = new Subscription();
$subscription = new Subscription;
$subscription->uuid = Uuid::uuid4()->toString();
$subscription->userRelation()->associate($this->user);
$this->subscriptionAble->subscriptionsRelation()->save($subscription);
Expand Down
2 changes: 1 addition & 1 deletion app/Livewire/EditReply.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function updateReply($body)
$this->body = $body;
$this->authorize(ReplyPolicy::UPDATE, $this->reply);

$this->validate((new UpdateReplyRequest())->rules());
$this->validate((new UpdateReplyRequest)->rules());

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

Expand Down
Loading