From 99cb01e93fac811102eb681fe23a55dc68f2933b Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Fri, 6 Dec 2024 09:04:09 +0000 Subject: [PATCH] Apply fixes from StyleCI --- framework/core/src/Foundation/AbstractValidator.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/core/src/Foundation/AbstractValidator.php b/framework/core/src/Foundation/AbstractValidator.php index a43be822c8..0e4048827a 100644 --- a/framework/core/src/Foundation/AbstractValidator.php +++ b/framework/core/src/Foundation/AbstractValidator.php @@ -10,7 +10,6 @@ namespace Flarum\Foundation; use Flarum\Locale\TranslatorInterface; -use Illuminate\Support\Arr; use Illuminate\Support\Collection; use Illuminate\Support\Str; use Illuminate\Validation\Factory; @@ -93,7 +92,7 @@ protected function getActiveRules(array $attributes): array return Collection::make($rules) ->filter(function (mixed $rule, string $key) use ($attributes) { foreach ($attributes as $attributeKey => $attributeValue) { - if ($attributeKey === $key || Str::startsWith($key, $attributeKey . '.')) { + if ($attributeKey === $key || Str::startsWith($key, $attributeKey.'.')) { return true; } }