Lint
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
c0c7071ca5
commit
7ee1102a5d
|
@ -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.']);
|
||||
}
|
||||
|
||||
|
|
|
@ -11,9 +11,9 @@ class SubactivityShowAction
|
|||
{
|
||||
use AsAction;
|
||||
|
||||
public function handle()
|
||||
public function handle(): void
|
||||
{
|
||||
// ...
|
||||
return;
|
||||
}
|
||||
|
||||
public function asController(Subactivity $subactivity): JsonResponse
|
||||
|
|
Loading…
Reference in New Issue