Skip to content

Commit b94ad92

Browse files
authored
[ci] php-cs-fixer it up (#33)
1 parent 219a07c commit b94ad92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DependentFieldConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct(
3131
public function isReady(array $availableDependencyData, string $eventName): bool
3232
{
3333
if (!\array_key_exists($eventName, $this->callbackExecuted)) {
34-
throw new \InvalidArgumentException(sprintf('Invalid event name "%s"', $eventName));
34+
throw new \InvalidArgumentException(\sprintf('Invalid event name "%s"', $eventName));
3535
}
3636

3737
if ($this->callbackExecuted[$eventName]) {

tests/fixtures/TestDynamicForm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
3939
$builder->addDependent('mainFood', ['meal'], function (DependentField $field, ?DynamicTestMeal $meal) {
4040
$field->add(EnumType::class, [
4141
'class' => DynamicTestFood::class,
42-
'placeholder' => null === $meal ? 'Select a meal first' : sprintf('What is for %s?', $meal->getReadable()),
42+
'placeholder' => null === $meal ? 'Select a meal first' : \sprintf('What is for %s?', $meal->getReadable()),
4343
'choices' => $meal?->getFoodChoices(),
4444
'choice_label' => fn (DynamicTestFood $food): string => $food->getReadable(),
4545
'disabled' => null === $meal,

0 commit comments

Comments
 (0)