From 391ff937af6649b1bb350e063d1eb5a5eb9f9438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Wed, 25 Oct 2023 14:16:23 +0000 Subject: [PATCH] Fix CS --- src/Fields/File.php | 1 - src/Fields/Meta.php | 1 - 2 files changed, 2 deletions(-) diff --git a/src/Fields/File.php b/src/Fields/File.php index 8ea014ae..e27184e8 100644 --- a/src/Fields/File.php +++ b/src/Fields/File.php @@ -227,7 +227,6 @@ protected function prune(Request $request, Model $model, array $keys): int public function toOption(Request $request, Model $model, Model $related): array { /** @var \Cone\Root\Models\Medium $related */ - $option = parent::toOption($request, $model, $related); $name = sprintf( diff --git a/src/Fields/Meta.php b/src/Fields/Meta.php index 01a2ea47..40cacc08 100644 --- a/src/Fields/Meta.php +++ b/src/Fields/Meta.php @@ -25,7 +25,6 @@ public function __construct(string $label, string $modelAttribute = null, Closur { $relation ??= function (Model $model): EloquentRelation { /** @phpstan-var \Tests\MetaDataModel $model */ - $related = $model->metaData()->getRelated(); return $model->metaData()