Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Dec 6, 2024
1 parent b0a3473 commit 99cb01e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions framework/core/src/Foundation/AbstractValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 99cb01e

Please sign in to comment.