Lint
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Philipp Lang 2023-03-07 10:13:30 +01:00
parent c0c7071ca5
commit 7ee1102a5d
2 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ class ActivityUpdateAction
$removingSubactivities = $activity->subactivities()->whereNotIn('id', $request->validated('subactivities'))->pluck('id');
if ($removingSubactivities->first(fn ($subactivity) => Membership::firstWhere(['activity_id' => $activity->id, 'subactivity_id' => $subactivity]))) {
if ($removingSubactivities->first(fn ($subactivity) => Membership::where(['activity_id' => $activity->id, 'subactivity_id' => $subactivity])->exists())) {
throw ValidationException::withMessages(['subactivities' => 'Untergliederung hat noch Mitglieder.']);
}

View File

@ -11,9 +11,9 @@ class SubactivityShowAction
{
use AsAction;
public function handle()
public function handle(): void
{
// ...
return;
}
public function asController(Subactivity $subactivity): JsonResponse