diff --git a/AbstractExtension.php b/AbstractExtension.php index 79d61e8bc..6ba5624bd 100644 --- a/AbstractExtension.php +++ b/AbstractExtension.php @@ -43,9 +43,6 @@ abstract class AbstractExtension implements FormExtensionInterface */ private bool $typeGuesserLoaded = false; - /** - * {@inheritdoc} - */ public function getType(string $name): FormTypeInterface { if (!isset($this->types)) { @@ -59,9 +56,6 @@ public function getType(string $name): FormTypeInterface return $this->types[$name]; } - /** - * {@inheritdoc} - */ public function hasType(string $name): bool { if (!isset($this->types)) { @@ -71,9 +65,6 @@ public function hasType(string $name): bool return isset($this->types[$name]); } - /** - * {@inheritdoc} - */ public function getTypeExtensions(string $name): array { if (!isset($this->typeExtensions)) { @@ -84,9 +75,6 @@ public function getTypeExtensions(string $name): array ?? []; } - /** - * {@inheritdoc} - */ public function hasTypeExtensions(string $name): bool { if (!isset($this->typeExtensions)) { @@ -96,9 +84,6 @@ public function hasTypeExtensions(string $name): bool return isset($this->typeExtensions[$name]) && \count($this->typeExtensions[$name]) > 0; } - /** - * {@inheritdoc} - */ public function getTypeGuesser(): ?FormTypeGuesserInterface { if (!$this->typeGuesserLoaded) { diff --git a/AbstractRendererEngine.php b/AbstractRendererEngine.php index ada182f57..f79f1c133 100644 --- a/AbstractRendererEngine.php +++ b/AbstractRendererEngine.php @@ -61,9 +61,6 @@ public function __construct(array $defaultThemes = []) $this->defaultThemes = $defaultThemes; } - /** - * {@inheritdoc} - */ public function setTheme(FormView $view, mixed $themes, bool $useDefaultThemes = true) { $cacheKey = $view->vars[self::CACHE_KEY_VAR]; @@ -78,9 +75,6 @@ public function setTheme(FormView $view, mixed $themes, bool $useDefaultThemes = unset($this->resources[$cacheKey], $this->resourceHierarchyLevels[$cacheKey]); } - /** - * {@inheritdoc} - */ public function getResourceForBlockName(FormView $view, string $blockName): mixed { $cacheKey = $view->vars[self::CACHE_KEY_VAR]; @@ -92,9 +86,6 @@ public function getResourceForBlockName(FormView $view, string $blockName): mixe return $this->resources[$cacheKey][$blockName]; } - /** - * {@inheritdoc} - */ public function getResourceForBlockNameHierarchy(FormView $view, array $blockNameHierarchy, int $hierarchyLevel): mixed { $cacheKey = $view->vars[self::CACHE_KEY_VAR]; @@ -107,9 +98,6 @@ public function getResourceForBlockNameHierarchy(FormView $view, array $blockNam return $this->resources[$cacheKey][$blockName]; } - /** - * {@inheritdoc} - */ public function getResourceHierarchyLevel(FormView $view, array $blockNameHierarchy, int $hierarchyLevel): int|false { $cacheKey = $view->vars[self::CACHE_KEY_VAR]; diff --git a/AbstractType.php b/AbstractType.php index 3325b8bc2..da401930d 100644 --- a/AbstractType.php +++ b/AbstractType.php @@ -20,45 +20,27 @@ */ abstract class AbstractType implements FormTypeInterface { - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { } - /** - * {@inheritdoc} - */ public function finishView(FormView $view, FormInterface $form, array $options) { } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { } - /** - * {@inheritdoc} - */ public function getBlockPrefix() { return StringUtil::fqcnToBlockPrefix(static::class) ?: ''; } - /** - * {@inheritdoc} - */ public function getParent() { return FormType::class; diff --git a/AbstractTypeExtension.php b/AbstractTypeExtension.php index 9d369bf29..bcd408c17 100644 --- a/AbstractTypeExtension.php +++ b/AbstractTypeExtension.php @@ -18,30 +18,18 @@ */ abstract class AbstractTypeExtension implements FormTypeExtensionInterface { - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { } - /** - * {@inheritdoc} - */ public function finishView(FormView $view, FormInterface $form, array $options) { } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { } diff --git a/Button.php b/Button.php index 7c80d03e3..58a77a776 100644 --- a/Button.php +++ b/Button.php @@ -81,9 +81,6 @@ public function offsetUnset(mixed $offset): void throw new BadMethodCallException('Buttons cannot have children.'); } - /** - * {@inheritdoc} - */ public function setParent(FormInterface $parent = null): static { if ($this->submitted) { @@ -95,9 +92,6 @@ public function setParent(FormInterface $parent = null): static return $this; } - /** - * {@inheritdoc} - */ public function getParent(): ?FormInterface { return $this->parent; @@ -147,17 +141,11 @@ public function remove(string $name): static throw new BadMethodCallException('Buttons cannot have children.'); } - /** - * {@inheritdoc} - */ public function all(): array { return []; } - /** - * {@inheritdoc} - */ public function getErrors(bool $deep = false, bool $flatten = true): FormErrorIterator { return new FormErrorIterator($this, []); @@ -266,9 +254,6 @@ public function isRequired(): bool return false; } - /** - * {@inheritdoc} - */ public function isDisabled(): bool { if ($this->parent?->isDisabled()) { @@ -340,25 +325,16 @@ public function submit(array|string|null $submittedData, bool $clearMissing = tr return $this; } - /** - * {@inheritdoc} - */ public function getRoot(): FormInterface { return $this->parent ? $this->parent->getRoot() : $this; } - /** - * {@inheritdoc} - */ public function isRoot(): bool { return null === $this->parent; } - /** - * {@inheritdoc} - */ public function createView(FormView $parent = null): FormView { if (null === $parent && $this->parent) { diff --git a/ButtonBuilder.php b/ButtonBuilder.php index 7c8f186e1..387c3571f 100644 --- a/ButtonBuilder.php +++ b/ButtonBuilder.php @@ -173,9 +173,6 @@ public function resetModelTransformers(): static throw new BadMethodCallException('Buttons do not support data transformers.'); } - /** - * {@inheritdoc} - */ public function setAttribute(string $name, mixed $value): static { $this->attributes[$name] = $value; @@ -183,9 +180,6 @@ public function setAttribute(string $name, mixed $value): static return $this; } - /** - * {@inheritdoc} - */ public function setAttributes(array $attributes): static { $this->attributes = $attributes; @@ -415,9 +409,6 @@ public function getEventDispatcher(): EventDispatcherInterface throw new BadMethodCallException('Buttons do not support event dispatching.'); } - /** - * {@inheritdoc} - */ public function getName(): string { return $this->name; diff --git a/CallbackTransformer.php b/CallbackTransformer.php index 8870526b8..2a79b5b36 100644 --- a/CallbackTransformer.php +++ b/CallbackTransformer.php @@ -22,17 +22,11 @@ public function __construct(callable $transform, callable $reverseTransform) $this->reverseTransform = $reverseTransform(...); } - /** - * {@inheritdoc} - */ public function transform(mixed $data): mixed { return ($this->transform)($data); } - /** - * {@inheritdoc} - */ public function reverseTransform(mixed $data): mixed { return ($this->reverseTransform)($data); diff --git a/ChoiceList/ArrayChoiceList.php b/ChoiceList/ArrayChoiceList.php index 890ed4a97..a438ce2e1 100644 --- a/ChoiceList/ArrayChoiceList.php +++ b/ChoiceList/ArrayChoiceList.php @@ -90,41 +90,26 @@ public function __construct(iterable $choices, callable $value = null) $this->structuredValues = $structuredValues; } - /** - * {@inheritdoc} - */ public function getChoices(): array { return $this->choices; } - /** - * {@inheritdoc} - */ public function getValues(): array { return array_map('strval', array_keys($this->choices)); } - /** - * {@inheritdoc} - */ public function getStructuredValues(): array { return $this->structuredValues; } - /** - * {@inheritdoc} - */ public function getOriginalKeys(): array { return $this->originalKeys; } - /** - * {@inheritdoc} - */ public function getChoicesForValues(array $values): array { $choices = []; @@ -138,9 +123,6 @@ public function getChoicesForValues(array $values): array return $choices; } - /** - * {@inheritdoc} - */ public function getValuesForChoices(array $choices): array { $values = []; diff --git a/ChoiceList/Factory/Cache/ChoiceLoader.php b/ChoiceList/Factory/Cache/ChoiceLoader.php index 83b2ca0aa..70c3f77e8 100644 --- a/ChoiceList/Factory/Cache/ChoiceLoader.php +++ b/ChoiceList/Factory/Cache/ChoiceLoader.php @@ -26,25 +26,16 @@ */ final class ChoiceLoader extends AbstractStaticOption implements ChoiceLoaderInterface { - /** - * {@inheritdoc} - */ public function loadChoiceList(callable $value = null): ChoiceListInterface { return $this->getOption()->loadChoiceList($value); } - /** - * {@inheritdoc} - */ public function loadChoicesForValues(array $values, callable $value = null): array { return $this->getOption()->loadChoicesForValues($values, $value); } - /** - * {@inheritdoc} - */ public function loadValuesForChoices(array $choices, callable $value = null): array { return $this->getOption()->loadValuesForChoices($choices, $value); diff --git a/ChoiceList/Factory/CachingFactoryDecorator.php b/ChoiceList/Factory/CachingFactoryDecorator.php index f5174bcfd..62d1b71d9 100644 --- a/ChoiceList/Factory/CachingFactoryDecorator.php +++ b/ChoiceList/Factory/CachingFactoryDecorator.php @@ -77,9 +77,6 @@ public function getDecoratedFactory(): ChoiceListFactoryInterface return $this->decoratedFactory; } - /** - * {@inheritdoc} - */ public function createListFromChoices(iterable $choices, mixed $value = null, mixed $filter = null): ChoiceListInterface { if ($choices instanceof \Traversable) { @@ -113,9 +110,6 @@ public function createListFromChoices(iterable $choices, mixed $value = null, mi return $this->lists[$hash]; } - /** - * {@inheritdoc} - */ public function createListFromLoader(ChoiceLoaderInterface $loader, mixed $value = null, mixed $filter = null): ChoiceListInterface { $cache = true; @@ -151,9 +145,6 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, mixed $value return $this->lists[$hash]; } - /** - * {@inheritdoc} - */ public function createView(ChoiceListInterface $list, mixed $preferredChoices = null, mixed $label = null, mixed $index = null, mixed $groupBy = null, mixed $attr = null, mixed $labelTranslationParameters = []): ChoiceListView { $cache = true; diff --git a/ChoiceList/Factory/DefaultChoiceListFactory.php b/ChoiceList/Factory/DefaultChoiceListFactory.php index 9ab806cbc..0d39b590c 100644 --- a/ChoiceList/Factory/DefaultChoiceListFactory.php +++ b/ChoiceList/Factory/DefaultChoiceListFactory.php @@ -30,9 +30,6 @@ */ class DefaultChoiceListFactory implements ChoiceListFactoryInterface { - /** - * {@inheritdoc} - */ public function createListFromChoices(iterable $choices, callable $value = null, callable $filter = null): ChoiceListInterface { if ($filter) { @@ -47,9 +44,6 @@ public function createListFromChoices(iterable $choices, callable $value = null, return new ArrayChoiceList($choices, $value); } - /** - * {@inheritdoc} - */ public function createListFromLoader(ChoiceLoaderInterface $loader, callable $value = null, callable $filter = null): ChoiceListInterface { if ($filter) { @@ -59,9 +53,6 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, callable $va return new LazyChoiceList($loader, $value); } - /** - * {@inheritdoc} - */ public function createView(ChoiceListInterface $list, array|callable $preferredChoices = null, callable|false $label = null, callable $index = null, callable $groupBy = null, array|callable $attr = null, array|callable $labelTranslationParameters = []): ChoiceListView { $preferredViews = []; diff --git a/ChoiceList/Factory/PropertyAccessDecorator.php b/ChoiceList/Factory/PropertyAccessDecorator.php index 3da57ecfb..2f29bda72 100644 --- a/ChoiceList/Factory/PropertyAccessDecorator.php +++ b/ChoiceList/Factory/PropertyAccessDecorator.php @@ -55,9 +55,6 @@ public function getDecoratedFactory(): ChoiceListFactoryInterface return $this->decoratedFactory; } - /** - * {@inheritdoc} - */ public function createListFromChoices(iterable $choices, mixed $value = null, mixed $filter = null): ChoiceListInterface { if (\is_string($value)) { @@ -89,9 +86,6 @@ public function createListFromChoices(iterable $choices, mixed $value = null, mi return $this->decoratedFactory->createListFromChoices($choices, $value, $filter); } - /** - * {@inheritdoc} - */ public function createListFromLoader(ChoiceLoaderInterface $loader, mixed $value = null, mixed $filter = null): ChoiceListInterface { if (\is_string($value)) { @@ -123,9 +117,6 @@ public function createListFromLoader(ChoiceLoaderInterface $loader, mixed $value return $this->decoratedFactory->createListFromLoader($loader, $value, $filter); } - /** - * {@inheritdoc} - */ public function createView(ChoiceListInterface $list, mixed $preferredChoices = null, mixed $label = null, mixed $index = null, mixed $groupBy = null, mixed $attr = null, mixed $labelTranslationParameters = []): ChoiceListView { $accessor = $this->propertyAccessor; diff --git a/ChoiceList/LazyChoiceList.php b/ChoiceList/LazyChoiceList.php index dd545430c..b34d3708a 100644 --- a/ChoiceList/LazyChoiceList.php +++ b/ChoiceList/LazyChoiceList.php @@ -51,49 +51,31 @@ public function __construct(ChoiceLoaderInterface $loader, callable $value = nul $this->value = null === $value ? null : $value(...); } - /** - * {@inheritdoc} - */ public function getChoices(): array { return $this->loader->loadChoiceList($this->value)->getChoices(); } - /** - * {@inheritdoc} - */ public function getValues(): array { return $this->loader->loadChoiceList($this->value)->getValues(); } - /** - * {@inheritdoc} - */ public function getStructuredValues(): array { return $this->loader->loadChoiceList($this->value)->getStructuredValues(); } - /** - * {@inheritdoc} - */ public function getOriginalKeys(): array { return $this->loader->loadChoiceList($this->value)->getOriginalKeys(); } - /** - * {@inheritdoc} - */ public function getChoicesForValues(array $values): array { return $this->loader->loadChoicesForValues($values, $this->value); } - /** - * {@inheritdoc} - */ public function getValuesForChoices(array $choices): array { return $this->loader->loadValuesForChoices($choices, $this->value); diff --git a/ChoiceList/Loader/AbstractChoiceLoader.php b/ChoiceList/Loader/AbstractChoiceLoader.php index 6aa2267a0..4554352d7 100644 --- a/ChoiceList/Loader/AbstractChoiceLoader.php +++ b/ChoiceList/Loader/AbstractChoiceLoader.php @@ -23,17 +23,12 @@ abstract class AbstractChoiceLoader implements ChoiceLoaderInterface /** * @final - * - * {@inheritdoc} */ public function loadChoiceList(callable $value = null): ChoiceListInterface { return new ArrayChoiceList($this->choices ??= $this->loadChoices(), $value); } - /** - * {@inheritdoc} - */ public function loadChoicesForValues(array $values, callable $value = null): array { if (!$values) { @@ -43,9 +38,6 @@ public function loadChoicesForValues(array $values, callable $value = null): arr return $this->doLoadChoicesForValues($values, $value); } - /** - * {@inheritdoc} - */ public function loadValuesForChoices(array $choices, callable $value = null): array { if (!$choices) { diff --git a/ChoiceList/Loader/FilterChoiceLoaderDecorator.php b/ChoiceList/Loader/FilterChoiceLoaderDecorator.php index 02911b3d4..069941c1e 100644 --- a/ChoiceList/Loader/FilterChoiceLoaderDecorator.php +++ b/ChoiceList/Loader/FilterChoiceLoaderDecorator.php @@ -52,17 +52,11 @@ protected function loadChoices(): iterable return $choices ?? []; } - /** - * {@inheritdoc} - */ public function loadChoicesForValues(array $values, callable $value = null): array { return array_filter($this->decoratedLoader->loadChoicesForValues($values, $value), $this->filter); } - /** - * {@inheritdoc} - */ public function loadValuesForChoices(array $choices, callable $value = null): array { return $this->decoratedLoader->loadValuesForChoices(array_filter($choices, $this->filter), $value); diff --git a/ChoiceList/Loader/IntlCallbackChoiceLoader.php b/ChoiceList/Loader/IntlCallbackChoiceLoader.php index a96b03ad3..448320f9d 100644 --- a/ChoiceList/Loader/IntlCallbackChoiceLoader.php +++ b/ChoiceList/Loader/IntlCallbackChoiceLoader.php @@ -19,17 +19,11 @@ */ class IntlCallbackChoiceLoader extends CallbackChoiceLoader { - /** - * {@inheritdoc} - */ public function loadChoicesForValues(array $values, callable $value = null): array { return parent::loadChoicesForValues(array_filter($values), $value); } - /** - * {@inheritdoc} - */ public function loadValuesForChoices(array $choices, callable $value = null): array { $choices = array_filter($choices); diff --git a/ChoiceList/View/ChoiceGroupView.php b/ChoiceList/View/ChoiceGroupView.php index 1c692bb79..453601a6f 100644 --- a/ChoiceList/View/ChoiceGroupView.php +++ b/ChoiceList/View/ChoiceGroupView.php @@ -35,8 +35,6 @@ public function __construct(string $label, array $choices = []) } /** - * {@inheritdoc} - * * @return \Traversable */ public function getIterator(): \Traversable diff --git a/Command/DebugCommand.php b/Command/DebugCommand.php index d30a547ce..159051046 100644 --- a/Command/DebugCommand.php +++ b/Command/DebugCommand.php @@ -54,9 +54,6 @@ public function __construct(FormRegistryInterface $formRegistry, array $namespac $this->fileLinkFormatter = $fileLinkFormatter; } - /** - * {@inheritdoc} - */ protected function configure() { $this @@ -98,9 +95,6 @@ protected function configure() ; } - /** - * {@inheritdoc} - */ protected function execute(InputInterface $input, OutputInterface $output): int { $io = new SymfonyStyle($input, $output); diff --git a/Console/Descriptor/Descriptor.php b/Console/Descriptor/Descriptor.php index 975ae405f..f6b09c269 100644 --- a/Console/Descriptor/Descriptor.php +++ b/Console/Descriptor/Descriptor.php @@ -40,9 +40,6 @@ abstract class Descriptor implements DescriptorInterface protected $parents = []; protected $extensions = []; - /** - * {@inheritdoc} - */ public function describe(OutputInterface $output, ?object $object, array $options = []) { $this->output = $output instanceof OutputStyle ? $output : new SymfonyStyle(new ArrayInput([]), $output); diff --git a/Extension/Core/DataAccessor/CallbackAccessor.php b/Extension/Core/DataAccessor/CallbackAccessor.php index 617f7d692..a7d5bb13f 100644 --- a/Extension/Core/DataAccessor/CallbackAccessor.php +++ b/Extension/Core/DataAccessor/CallbackAccessor.php @@ -22,9 +22,6 @@ */ class CallbackAccessor implements DataAccessorInterface { - /** - * {@inheritdoc} - */ public function getValue(object|array $data, FormInterface $form): mixed { if (null === $getter = $form->getConfig()->getOption('getter')) { @@ -34,9 +31,6 @@ public function getValue(object|array $data, FormInterface $form): mixed return ($getter)($data, $form); } - /** - * {@inheritdoc} - */ public function setValue(object|array &$data, mixed $value, FormInterface $form): void { if (null === $setter = $form->getConfig()->getOption('setter')) { @@ -46,17 +40,11 @@ public function setValue(object|array &$data, mixed $value, FormInterface $form) ($setter)($data, $form->getData(), $form); } - /** - * {@inheritdoc} - */ public function isReadable(object|array $data, FormInterface $form): bool { return null !== $form->getConfig()->getOption('getter'); } - /** - * {@inheritdoc} - */ public function isWritable(object|array $data, FormInterface $form): bool { return null !== $form->getConfig()->getOption('setter'); diff --git a/Extension/Core/DataAccessor/ChainAccessor.php b/Extension/Core/DataAccessor/ChainAccessor.php index 46709b29a..ac600f16f 100644 --- a/Extension/Core/DataAccessor/ChainAccessor.php +++ b/Extension/Core/DataAccessor/ChainAccessor.php @@ -30,9 +30,6 @@ public function __construct(iterable $accessors) $this->accessors = $accessors; } - /** - * {@inheritdoc} - */ public function getValue(object|array $data, FormInterface $form): mixed { foreach ($this->accessors as $accessor) { @@ -44,9 +41,6 @@ public function getValue(object|array $data, FormInterface $form): mixed throw new AccessException('Unable to read from the given form data as no accessor in the chain is able to read the data.'); } - /** - * {@inheritdoc} - */ public function setValue(object|array &$data, mixed $value, FormInterface $form): void { foreach ($this->accessors as $accessor) { @@ -60,9 +54,6 @@ public function setValue(object|array &$data, mixed $value, FormInterface $form) throw new AccessException('Unable to write the given value as no accessor in the chain is able to set the data.'); } - /** - * {@inheritdoc} - */ public function isReadable(object|array $data, FormInterface $form): bool { foreach ($this->accessors as $accessor) { @@ -74,9 +65,6 @@ public function isReadable(object|array $data, FormInterface $form): bool return false; } - /** - * {@inheritdoc} - */ public function isWritable(object|array $data, FormInterface $form): bool { foreach ($this->accessors as $accessor) { diff --git a/Extension/Core/DataAccessor/PropertyPathAccessor.php b/Extension/Core/DataAccessor/PropertyPathAccessor.php index 57785a896..85efa150f 100644 --- a/Extension/Core/DataAccessor/PropertyPathAccessor.php +++ b/Extension/Core/DataAccessor/PropertyPathAccessor.php @@ -36,9 +36,6 @@ public function __construct(PropertyAccessorInterface $propertyAccessor = null) $this->propertyAccessor = $propertyAccessor ?? PropertyAccess::createPropertyAccessor(); } - /** - * {@inheritdoc} - */ public function getValue(object|array $data, FormInterface $form): mixed { if (null === $propertyPath = $form->getPropertyPath()) { @@ -48,9 +45,6 @@ public function getValue(object|array $data, FormInterface $form): mixed return $this->getPropertyValue($data, $propertyPath); } - /** - * {@inheritdoc} - */ public function setValue(object|array &$data, mixed $value, FormInterface $form): void { if (null === $propertyPath = $form->getPropertyPath()) { @@ -70,17 +64,11 @@ public function setValue(object|array &$data, mixed $value, FormInterface $form) } } - /** - * {@inheritdoc} - */ public function isReadable(object|array $data, FormInterface $form): bool { return null !== $form->getPropertyPath(); } - /** - * {@inheritdoc} - */ public function isWritable(object|array $data, FormInterface $form): bool { return null !== $form->getPropertyPath(); diff --git a/Extension/Core/DataMapper/CheckboxListMapper.php b/Extension/Core/DataMapper/CheckboxListMapper.php index 9ded60e83..f461e0e12 100644 --- a/Extension/Core/DataMapper/CheckboxListMapper.php +++ b/Extension/Core/DataMapper/CheckboxListMapper.php @@ -25,9 +25,6 @@ */ class CheckboxListMapper implements DataMapperInterface { - /** - * {@inheritdoc} - */ public function mapDataToForms(mixed $choices, \Traversable $checkboxes) { if (null === $choices) { @@ -44,9 +41,6 @@ public function mapDataToForms(mixed $choices, \Traversable $checkboxes) } } - /** - * {@inheritdoc} - */ public function mapFormsToData(\Traversable $checkboxes, mixed &$choices) { if (!\is_array($choices)) { diff --git a/Extension/Core/DataMapper/DataMapper.php b/Extension/Core/DataMapper/DataMapper.php index 58f6ff5e5..0404af084 100644 --- a/Extension/Core/DataMapper/DataMapper.php +++ b/Extension/Core/DataMapper/DataMapper.php @@ -35,9 +35,6 @@ public function __construct(DataAccessorInterface $dataAccessor = null) ]); } - /** - * {@inheritdoc} - */ public function mapDataToForms(mixed $data, \Traversable $forms): void { $empty = null === $data || [] === $data; @@ -57,9 +54,6 @@ public function mapDataToForms(mixed $data, \Traversable $forms): void } } - /** - * {@inheritdoc} - */ public function mapFormsToData(\Traversable $forms, mixed &$data): void { if (null === $data) { diff --git a/Extension/Core/DataMapper/RadioListMapper.php b/Extension/Core/DataMapper/RadioListMapper.php index ebf761c4d..4ae0fc3c8 100644 --- a/Extension/Core/DataMapper/RadioListMapper.php +++ b/Extension/Core/DataMapper/RadioListMapper.php @@ -25,9 +25,6 @@ */ class RadioListMapper implements DataMapperInterface { - /** - * {@inheritdoc} - */ public function mapDataToForms(mixed $choice, \Traversable $radios) { if (!\is_string($choice)) { @@ -40,9 +37,6 @@ public function mapDataToForms(mixed $choice, \Traversable $radios) } } - /** - * {@inheritdoc} - */ public function mapFormsToData(\Traversable $radios, mixed &$choice) { if (null !== $choice && !\is_string($choice)) { diff --git a/Extension/Core/DataTransformer/DateTimeZoneToStringTransformer.php b/Extension/Core/DataTransformer/DateTimeZoneToStringTransformer.php index 645237363..e6e575d76 100644 --- a/Extension/Core/DataTransformer/DateTimeZoneToStringTransformer.php +++ b/Extension/Core/DataTransformer/DateTimeZoneToStringTransformer.php @@ -28,9 +28,6 @@ public function __construct(bool $multiple = false) $this->multiple = $multiple; } - /** - * {@inheritdoc} - */ public function transform(mixed $dateTimeZone): mixed { if (null === $dateTimeZone) { @@ -52,9 +49,6 @@ public function transform(mixed $dateTimeZone): mixed return $dateTimeZone->getName(); } - /** - * {@inheritdoc} - */ public function reverseTransform(mixed $value): mixed { if (null === $value) { diff --git a/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformer.php b/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformer.php index ccf4701b9..db774a075 100644 --- a/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformer.php +++ b/Extension/Core/DataTransformer/IntegerToLocalizedStringTransformer.php @@ -33,9 +33,6 @@ public function __construct(?bool $grouping = false, ?int $roundingMode = \Numbe parent::__construct(0, $grouping, $roundingMode, $locale); } - /** - * {@inheritdoc} - */ public function reverseTransform(mixed $value): int|float|null { $decimalSeparator = $this->getNumberFormatter()->getSymbol(\NumberFormatter::DECIMAL_SEPARATOR_SYMBOL); diff --git a/Extension/Core/DataTransformer/IntlTimeZoneToStringTransformer.php b/Extension/Core/DataTransformer/IntlTimeZoneToStringTransformer.php index f158ecba2..86849c4ea 100644 --- a/Extension/Core/DataTransformer/IntlTimeZoneToStringTransformer.php +++ b/Extension/Core/DataTransformer/IntlTimeZoneToStringTransformer.php @@ -28,9 +28,6 @@ public function __construct(bool $multiple = false) $this->multiple = $multiple; } - /** - * {@inheritdoc} - */ public function transform(mixed $intlTimeZone): mixed { if (null === $intlTimeZone) { @@ -52,9 +49,6 @@ public function transform(mixed $intlTimeZone): mixed return $intlTimeZone->getID(); } - /** - * {@inheritdoc} - */ public function reverseTransform(mixed $value): mixed { if (null === $value) { diff --git a/Extension/Core/Type/BaseType.php b/Extension/Core/Type/BaseType.php index 4ac58bd2a..8606802e1 100644 --- a/Extension/Core/Type/BaseType.php +++ b/Extension/Core/Type/BaseType.php @@ -28,18 +28,12 @@ */ abstract class BaseType extends AbstractType { - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->setDisabled($options['disabled']); $builder->setAutoInitialize($options['auto_initialize']); } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { $name = $form->getName(); @@ -118,9 +112,6 @@ public function buildView(FormView $view, FormInterface $form, array $options) ]); } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/Extension/Core/Type/BirthdayType.php b/Extension/Core/Type/BirthdayType.php index 2a78e1d77..1be317ebd 100644 --- a/Extension/Core/Type/BirthdayType.php +++ b/Extension/Core/Type/BirthdayType.php @@ -16,9 +16,6 @@ class BirthdayType extends AbstractType { - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -29,17 +26,11 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setAllowedTypes('years', 'array'); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return DateType::class; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'birthday'; diff --git a/Extension/Core/Type/ButtonType.php b/Extension/Core/Type/ButtonType.php index 2fb77f9ed..ee39cee56 100644 --- a/Extension/Core/Type/ButtonType.php +++ b/Extension/Core/Type/ButtonType.php @@ -21,25 +21,16 @@ */ class ButtonType extends BaseType implements ButtonTypeInterface { - /** - * {@inheritdoc} - */ public function getParent(): ?string { return null; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'button'; } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { parent::configureOptions($resolver); diff --git a/Extension/Core/Type/CheckboxType.php b/Extension/Core/Type/CheckboxType.php index 96c557d0a..d513694a4 100644 --- a/Extension/Core/Type/CheckboxType.php +++ b/Extension/Core/Type/CheckboxType.php @@ -20,9 +20,6 @@ class CheckboxType extends AbstractType { - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { // Unlike in other types, where the data is NULL by default, it @@ -35,9 +32,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) $builder->addViewTransformer(new BooleanToStringTransformer($options['value'], $options['false_values'])); } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { $view->vars = array_replace($view->vars, [ @@ -46,9 +40,6 @@ public function buildView(FormView $view, FormInterface $form, array $options) ]); } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $emptyData = function (FormInterface $form, $viewData) { @@ -69,9 +60,6 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setAllowedTypes('false_values', 'array'); } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'checkbox'; diff --git a/Extension/Core/Type/ChoiceType.php b/Extension/Core/Type/ChoiceType.php index 3fc870765..2dde39e8a 100644 --- a/Extension/Core/Type/ChoiceType.php +++ b/Extension/Core/Type/ChoiceType.php @@ -62,9 +62,6 @@ public function __construct(ChoiceListFactoryInterface $choiceListFactory = null $this->translator = $translator; } - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { $unknownValues = []; @@ -218,9 +215,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) }, 256); } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { $choiceTranslationDomain = $options['choice_translation_domain']; @@ -277,9 +271,6 @@ public function buildView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function finishView(FormView $view, FormInterface $form, array $options) { if ($options['expanded']) { @@ -297,9 +288,6 @@ public function finishView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $emptyData = function (Options $options) { @@ -391,9 +379,6 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setAllowedTypes('group_by', ['null', 'callable', 'string', PropertyPath::class, GroupBy::class]); } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'choice'; diff --git a/Extension/Core/Type/CollectionType.php b/Extension/Core/Type/CollectionType.php index 4ec0f1be7..c310441cc 100644 --- a/Extension/Core/Type/CollectionType.php +++ b/Extension/Core/Type/CollectionType.php @@ -21,9 +21,6 @@ class CollectionType extends AbstractType { - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { if ($options['allow_add'] && $options['prototype']) { @@ -51,9 +48,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) $builder->addEventSubscriber($resizeListener); } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { $view->vars = array_replace($view->vars, [ @@ -67,9 +61,6 @@ public function buildView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function finishView(FormView $view, FormInterface $form, array $options) { $prefixOffset = -2; @@ -101,9 +92,6 @@ public function finishView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $entryOptionsNormalizer = function (Options $options, $value) { @@ -131,9 +119,6 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setAllowedTypes('prototype_options', 'array'); } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'collection'; diff --git a/Extension/Core/Type/ColorType.php b/Extension/Core/Type/ColorType.php index fb53d7fd0..26d670634 100644 --- a/Extension/Core/Type/ColorType.php +++ b/Extension/Core/Type/ColorType.php @@ -33,9 +33,6 @@ public function __construct(TranslatorInterface $translator = null) $this->translator = $translator; } - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { if (!$options['html5']) { @@ -62,9 +59,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) }); } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -75,17 +69,11 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setAllowedTypes('html5', 'bool'); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return TextType::class; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'color'; diff --git a/Extension/Core/Type/CountryType.php b/Extension/Core/Type/CountryType.php index 8d5c6487d..25aa652f5 100644 --- a/Extension/Core/Type/CountryType.php +++ b/Extension/Core/Type/CountryType.php @@ -22,9 +22,6 @@ class CountryType extends AbstractType { - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -50,17 +47,11 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setAllowedTypes('alpha3', 'bool'); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return ChoiceType::class; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'country'; diff --git a/Extension/Core/Type/CurrencyType.php b/Extension/Core/Type/CurrencyType.php index fe7842fd2..435bc1570 100644 --- a/Extension/Core/Type/CurrencyType.php +++ b/Extension/Core/Type/CurrencyType.php @@ -22,9 +22,6 @@ class CurrencyType extends AbstractType { - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -47,17 +44,11 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setAllowedTypes('choice_translation_locale', ['null', 'string']); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return ChoiceType::class; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'currency'; diff --git a/Extension/Core/Type/DateIntervalType.php b/Extension/Core/Type/DateIntervalType.php index eeb43fc64..e745c1af0 100644 --- a/Extension/Core/Type/DateIntervalType.php +++ b/Extension/Core/Type/DateIntervalType.php @@ -43,9 +43,6 @@ class DateIntervalType extends AbstractType 'choice' => ChoiceType::class, ]; - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { if (!$options['with_years'] && !$options['with_months'] && !$options['with_weeks'] && !$options['with_days'] && !$options['with_hours'] && !$options['with_minutes'] && !$options['with_seconds']) { @@ -148,9 +145,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) } } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { $vars = [ @@ -163,9 +157,6 @@ public function buildView(FormView $view, FormInterface $form, array $options) $view->vars = array_replace($view->vars, $vars); } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $compound = function (Options $options) { @@ -277,9 +268,6 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setAllowedTypes('labels', 'array'); } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'dateinterval'; diff --git a/Extension/Core/Type/DateTimeType.php b/Extension/Core/Type/DateTimeType.php index dc1549a52..35022530e 100644 --- a/Extension/Core/Type/DateTimeType.php +++ b/Extension/Core/Type/DateTimeType.php @@ -47,9 +47,6 @@ class DateTimeType extends AbstractType \IntlDateFormatter::SHORT, ]; - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { $parts = ['year', 'month', 'day', 'hour']; @@ -202,9 +199,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) } } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { $view->vars['widget'] = $options['widget']; @@ -226,9 +220,6 @@ public function buildView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $compound = function (Options $options) { @@ -348,9 +339,6 @@ public function configureOptions(OptionsResolver $resolver) }); } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'datetime'; diff --git a/Extension/Core/Type/DateType.php b/Extension/Core/Type/DateType.php index 1360ed450..d88819ebd 100644 --- a/Extension/Core/Type/DateType.php +++ b/Extension/Core/Type/DateType.php @@ -43,9 +43,6 @@ class DateType extends AbstractType 'choice' => ChoiceType::class, ]; - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { $dateFormat = \is_int($options['format']) ? $options['format'] : self::DEFAULT_FORMAT; @@ -182,9 +179,6 @@ class_exists(\IntlTimeZone::class, false) ? \IntlTimeZone::createDefault() : nul } } - /** - * {@inheritdoc} - */ public function finishView(FormView $view, FormInterface $form, array $options) { $view->vars['widget'] = $options['widget']; @@ -222,9 +216,6 @@ public function finishView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $compound = function (Options $options) { @@ -333,9 +324,6 @@ public function configureOptions(OptionsResolver $resolver) }); } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'date'; diff --git a/Extension/Core/Type/EmailType.php b/Extension/Core/Type/EmailType.php index 4284db186..70e8c8a19 100644 --- a/Extension/Core/Type/EmailType.php +++ b/Extension/Core/Type/EmailType.php @@ -16,9 +16,6 @@ class EmailType extends AbstractType { - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -26,17 +23,11 @@ public function configureOptions(OptionsResolver $resolver) ]); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return TextType::class; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'email'; diff --git a/Extension/Core/Type/FileType.php b/Extension/Core/Type/FileType.php index b99b73416..9e8e81394 100644 --- a/Extension/Core/Type/FileType.php +++ b/Extension/Core/Type/FileType.php @@ -41,9 +41,6 @@ public function __construct(TranslatorInterface $translator = null) $this->translator = $translator; } - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { // Ensure that submitted data is always an uploaded file or an array of some @@ -85,9 +82,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) }); } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { if ($options['multiple']) { @@ -101,17 +95,11 @@ public function buildView(FormView $view, FormInterface $form, array $options) ]); } - /** - * {@inheritdoc} - */ public function finishView(FormView $view, FormInterface $form, array $options) { $view->vars['multipart'] = true; } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $dataClass = null; @@ -135,9 +123,6 @@ public function configureOptions(OptionsResolver $resolver) ]); } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'file'; diff --git a/Extension/Core/Type/FormType.php b/Extension/Core/Type/FormType.php index efb61c739..451e7381d 100644 --- a/Extension/Core/Type/FormType.php +++ b/Extension/Core/Type/FormType.php @@ -38,9 +38,6 @@ public function __construct(PropertyAccessorInterface $propertyAccessor = null) ])); } - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { parent::buildForm($builder, $options); @@ -69,9 +66,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) $builder->setIsEmptyCallback($options['is_empty_callback']); } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { parent::buildView($view, $form, $options); @@ -122,9 +116,6 @@ public function buildView(FormView $view, FormInterface $form, array $options) ]); } - /** - * {@inheritdoc} - */ public function finishView(FormView $view, FormInterface $form, array $options) { $multipart = false; @@ -139,9 +130,6 @@ public function finishView(FormView $view, FormInterface $form, array $options) $view->vars['multipart'] = $multipart; } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { parent::configureOptions($resolver); @@ -232,17 +220,11 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setInfo('setter', 'A callable that accepts three arguments (a reference to the view data, the submitted value and the current form field).'); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return null; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'form'; diff --git a/Extension/Core/Type/HiddenType.php b/Extension/Core/Type/HiddenType.php index b54ea01ca..a69e172bc 100644 --- a/Extension/Core/Type/HiddenType.php +++ b/Extension/Core/Type/HiddenType.php @@ -16,9 +16,6 @@ class HiddenType extends AbstractType { - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -31,9 +28,6 @@ public function configureOptions(OptionsResolver $resolver) ]); } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'hidden'; diff --git a/Extension/Core/Type/IntegerType.php b/Extension/Core/Type/IntegerType.php index 3d69448e3..49e37f749 100644 --- a/Extension/Core/Type/IntegerType.php +++ b/Extension/Core/Type/IntegerType.php @@ -20,17 +20,11 @@ class IntegerType extends AbstractType { - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->addViewTransformer(new IntegerToLocalizedStringTransformer($options['grouping'], $options['rounding_mode'], !$options['grouping'] ? 'en' : null)); } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { if ($options['grouping']) { @@ -38,9 +32,6 @@ public function buildView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -62,9 +53,6 @@ public function configureOptions(OptionsResolver $resolver) ]); } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'integer'; diff --git a/Extension/Core/Type/LanguageType.php b/Extension/Core/Type/LanguageType.php index b1184a430..f875657ea 100644 --- a/Extension/Core/Type/LanguageType.php +++ b/Extension/Core/Type/LanguageType.php @@ -23,9 +23,6 @@ class LanguageType extends AbstractType { - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -74,17 +71,11 @@ public function configureOptions(OptionsResolver $resolver) }); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return ChoiceType::class; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'language'; diff --git a/Extension/Core/Type/LocaleType.php b/Extension/Core/Type/LocaleType.php index b0cb9a8e0..d4adca1f5 100644 --- a/Extension/Core/Type/LocaleType.php +++ b/Extension/Core/Type/LocaleType.php @@ -22,9 +22,6 @@ class LocaleType extends AbstractType { - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -47,17 +44,11 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setAllowedTypes('choice_translation_locale', ['null', 'string']); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return ChoiceType::class; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'locale'; diff --git a/Extension/Core/Type/MoneyType.php b/Extension/Core/Type/MoneyType.php index cf6246acc..e9ecd409e 100644 --- a/Extension/Core/Type/MoneyType.php +++ b/Extension/Core/Type/MoneyType.php @@ -24,9 +24,6 @@ class MoneyType extends AbstractType { protected static $patterns = []; - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { // Values used in HTML5 number inputs should be formatted as in "1234.5", ie. 'en' format without grouping, @@ -42,9 +39,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) ; } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { $view->vars['money_pattern'] = self::getPattern($options['currency']); @@ -54,9 +48,6 @@ public function buildView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -93,9 +84,6 @@ public function configureOptions(OptionsResolver $resolver) }); } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'money'; diff --git a/Extension/Core/Type/NumberType.php b/Extension/Core/Type/NumberType.php index fd75f689d..6d2d9eca2 100644 --- a/Extension/Core/Type/NumberType.php +++ b/Extension/Core/Type/NumberType.php @@ -23,9 +23,6 @@ class NumberType extends AbstractType { - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->addViewTransformer(new NumberToLocalizedStringTransformer( @@ -40,9 +37,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) } } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { if ($options['html5']) { @@ -52,9 +46,6 @@ public function buildView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -90,9 +81,6 @@ public function configureOptions(OptionsResolver $resolver) }); } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'number'; diff --git a/Extension/Core/Type/PasswordType.php b/Extension/Core/Type/PasswordType.php index cbb0d9778..495160361 100644 --- a/Extension/Core/Type/PasswordType.php +++ b/Extension/Core/Type/PasswordType.php @@ -18,9 +18,6 @@ class PasswordType extends AbstractType { - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { if ($options['always_empty'] || !$form->isSubmitted()) { @@ -28,9 +25,6 @@ public function buildView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -40,17 +34,11 @@ public function configureOptions(OptionsResolver $resolver) ]); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return TextType::class; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'password'; diff --git a/Extension/Core/Type/PercentType.php b/Extension/Core/Type/PercentType.php index 9b98f9b08..d006c6d5e 100644 --- a/Extension/Core/Type/PercentType.php +++ b/Extension/Core/Type/PercentType.php @@ -20,9 +20,6 @@ class PercentType extends AbstractType { - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->addViewTransformer(new PercentToLocalizedStringTransformer( @@ -33,9 +30,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) )); } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { $view->vars['symbol'] = $options['symbol']; @@ -45,9 +39,6 @@ public function buildView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -78,9 +69,6 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setAllowedTypes('html5', 'bool'); } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'percent'; diff --git a/Extension/Core/Type/RadioType.php b/Extension/Core/Type/RadioType.php index c668420c2..d40f39106 100644 --- a/Extension/Core/Type/RadioType.php +++ b/Extension/Core/Type/RadioType.php @@ -16,9 +16,6 @@ class RadioType extends AbstractType { - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -26,17 +23,11 @@ public function configureOptions(OptionsResolver $resolver) ]); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return CheckboxType::class; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'radio'; diff --git a/Extension/Core/Type/RangeType.php b/Extension/Core/Type/RangeType.php index e150323b1..857028c9c 100644 --- a/Extension/Core/Type/RangeType.php +++ b/Extension/Core/Type/RangeType.php @@ -16,9 +16,6 @@ class RangeType extends AbstractType { - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -26,17 +23,11 @@ public function configureOptions(OptionsResolver $resolver) ]); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return TextType::class; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'range'; diff --git a/Extension/Core/Type/RepeatedType.php b/Extension/Core/Type/RepeatedType.php index a511cf070..fb55bf294 100644 --- a/Extension/Core/Type/RepeatedType.php +++ b/Extension/Core/Type/RepeatedType.php @@ -18,9 +18,6 @@ class RepeatedType extends AbstractType { - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { // Overwrite required option for child fields @@ -44,9 +41,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) ; } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -65,9 +59,6 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setAllowedTypes('second_options', 'array'); } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'repeated'; diff --git a/Extension/Core/Type/ResetType.php b/Extension/Core/Type/ResetType.php index 40801c0d0..9a53a3dc6 100644 --- a/Extension/Core/Type/ResetType.php +++ b/Extension/Core/Type/ResetType.php @@ -21,17 +21,11 @@ */ class ResetType extends AbstractType implements ButtonTypeInterface { - /** - * {@inheritdoc} - */ public function getParent(): ?string { return ButtonType::class; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'reset'; diff --git a/Extension/Core/Type/SearchType.php b/Extension/Core/Type/SearchType.php index e29ca152b..76ed42011 100644 --- a/Extension/Core/Type/SearchType.php +++ b/Extension/Core/Type/SearchType.php @@ -16,9 +16,6 @@ class SearchType extends AbstractType { - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -26,17 +23,11 @@ public function configureOptions(OptionsResolver $resolver) ]); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return TextType::class; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'search'; diff --git a/Extension/Core/Type/SubmitType.php b/Extension/Core/Type/SubmitType.php index 7f423668b..dde445765 100644 --- a/Extension/Core/Type/SubmitType.php +++ b/Extension/Core/Type/SubmitType.php @@ -33,26 +33,17 @@ public function buildView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefault('validate', true); $resolver->setAllowedTypes('validate', 'bool'); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return ButtonType::class; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'submit'; diff --git a/Extension/Core/Type/TelType.php b/Extension/Core/Type/TelType.php index 36ec76400..8ba7fd843 100644 --- a/Extension/Core/Type/TelType.php +++ b/Extension/Core/Type/TelType.php @@ -16,9 +16,6 @@ class TelType extends AbstractType { - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -26,17 +23,11 @@ public function configureOptions(OptionsResolver $resolver) ]); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return TextType::class; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'tel'; diff --git a/Extension/Core/Type/TextType.php b/Extension/Core/Type/TextType.php index 4bbd89efe..dd019192b 100644 --- a/Extension/Core/Type/TextType.php +++ b/Extension/Core/Type/TextType.php @@ -30,9 +30,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) } } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -40,26 +37,17 @@ public function configureOptions(OptionsResolver $resolver) ]); } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'text'; } - /** - * {@inheritdoc} - */ public function transform(mixed $data): mixed { // Model data should not be transformed return $data; } - /** - * {@inheritdoc} - */ public function reverseTransform(mixed $data): mixed { return $data ?? ''; diff --git a/Extension/Core/Type/TextareaType.php b/Extension/Core/Type/TextareaType.php index 5aca85038..43d8e0eac 100644 --- a/Extension/Core/Type/TextareaType.php +++ b/Extension/Core/Type/TextareaType.php @@ -17,26 +17,17 @@ class TextareaType extends AbstractType { - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { $view->vars['pattern'] = null; unset($view->vars['attr']['pattern']); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return TextType::class; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'textarea'; diff --git a/Extension/Core/Type/TimeType.php b/Extension/Core/Type/TimeType.php index 11f4c36e2..2b8bbb501 100644 --- a/Extension/Core/Type/TimeType.php +++ b/Extension/Core/Type/TimeType.php @@ -34,9 +34,6 @@ class TimeType extends AbstractType 'choice' => ChoiceType::class, ]; - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { $parts = ['hour']; @@ -212,9 +209,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) } } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { $view->vars = array_replace($view->vars, [ @@ -239,9 +233,6 @@ public function buildView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $compound = function (Options $options) { @@ -374,9 +365,6 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setAllowedTypes('reference_date', ['null', \DateTimeInterface::class]); } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'time'; diff --git a/Extension/Core/Type/TimezoneType.php b/Extension/Core/Type/TimezoneType.php index d9ef804fd..edea6678e 100644 --- a/Extension/Core/Type/TimezoneType.php +++ b/Extension/Core/Type/TimezoneType.php @@ -25,9 +25,6 @@ class TimezoneType extends AbstractType { - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { if ('datetimezone' === $options['input']) { @@ -37,9 +34,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) } } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -91,17 +85,11 @@ public function configureOptions(OptionsResolver $resolver) }); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return ChoiceType::class; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'timezone'; diff --git a/Extension/Core/Type/TransformationFailureExtension.php b/Extension/Core/Type/TransformationFailureExtension.php index c73bd2958..4fb9cae66 100644 --- a/Extension/Core/Type/TransformationFailureExtension.php +++ b/Extension/Core/Type/TransformationFailureExtension.php @@ -35,9 +35,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) } } - /** - * {@inheritdoc} - */ public static function getExtendedTypes(): iterable { return [FormType::class]; diff --git a/Extension/Core/Type/UlidType.php b/Extension/Core/Type/UlidType.php index abda5fd0b..24eab77d8 100644 --- a/Extension/Core/Type/UlidType.php +++ b/Extension/Core/Type/UlidType.php @@ -21,9 +21,6 @@ */ class UlidType extends AbstractType { - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder @@ -31,9 +28,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) ; } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/Extension/Core/Type/UrlType.php b/Extension/Core/Type/UrlType.php index 36aee7699..313fbedbf 100644 --- a/Extension/Core/Type/UrlType.php +++ b/Extension/Core/Type/UrlType.php @@ -20,9 +20,6 @@ class UrlType extends AbstractType { - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { if (null !== $options['default_protocol']) { @@ -30,9 +27,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) } } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { if ($options['default_protocol']) { @@ -41,9 +35,6 @@ public function buildView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -54,17 +45,11 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setAllowedTypes('default_protocol', ['null', 'string']); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return TextType::class; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'url'; diff --git a/Extension/Core/Type/UuidType.php b/Extension/Core/Type/UuidType.php index f551d639a..214d30868 100644 --- a/Extension/Core/Type/UuidType.php +++ b/Extension/Core/Type/UuidType.php @@ -21,9 +21,6 @@ */ class UuidType extends AbstractType { - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder @@ -31,9 +28,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) ; } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ diff --git a/Extension/Core/Type/WeekType.php b/Extension/Core/Type/WeekType.php index 71f3146b7..760bb880b 100644 --- a/Extension/Core/Type/WeekType.php +++ b/Extension/Core/Type/WeekType.php @@ -28,9 +28,6 @@ class WeekType extends AbstractType 'choice' => ChoiceType::class, ]; - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { if ('string' === $options['input']) { @@ -83,9 +80,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) } } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { $view->vars['widget'] = $options['widget']; @@ -95,9 +89,6 @@ public function buildView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $compound = function (Options $options) { @@ -183,9 +174,6 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setAllowedTypes('weeks', 'int[]'); } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return 'week'; diff --git a/Extension/Csrf/CsrfExtension.php b/Extension/Csrf/CsrfExtension.php index 97228f56c..026bed360 100644 --- a/Extension/Csrf/CsrfExtension.php +++ b/Extension/Csrf/CsrfExtension.php @@ -33,9 +33,6 @@ public function __construct(CsrfTokenManagerInterface $tokenManager, TranslatorI $this->translationDomain = $translationDomain; } - /** - * {@inheritdoc} - */ protected function loadTypeExtensions(): array { return [ diff --git a/Extension/Csrf/Type/FormTypeCsrfExtension.php b/Extension/Csrf/Type/FormTypeCsrfExtension.php index ca3bf22df..ec96dc6ae 100644 --- a/Extension/Csrf/Type/FormTypeCsrfExtension.php +++ b/Extension/Csrf/Type/FormTypeCsrfExtension.php @@ -86,9 +86,6 @@ public function finishView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ @@ -100,9 +97,6 @@ public function configureOptions(OptionsResolver $resolver) ]); } - /** - * {@inheritdoc} - */ public static function getExtendedTypes(): iterable { return [FormType::class]; diff --git a/Extension/DataCollector/DataCollectorExtension.php b/Extension/DataCollector/DataCollectorExtension.php index cafd0ffc6..50b36bd67 100644 --- a/Extension/DataCollector/DataCollectorExtension.php +++ b/Extension/DataCollector/DataCollectorExtension.php @@ -28,9 +28,6 @@ public function __construct(FormDataCollectorInterface $dataCollector) $this->dataCollector = $dataCollector; } - /** - * {@inheritdoc} - */ protected function loadTypeExtensions(): array { return [ diff --git a/Extension/DataCollector/EventListener/DataCollectorListener.php b/Extension/DataCollector/EventListener/DataCollectorListener.php index dbc36123c..be30912c7 100644 --- a/Extension/DataCollector/EventListener/DataCollectorListener.php +++ b/Extension/DataCollector/EventListener/DataCollectorListener.php @@ -31,9 +31,6 @@ public function __construct(FormDataCollectorInterface $dataCollector) $this->dataCollector = $dataCollector; } - /** - * {@inheritdoc} - */ public static function getSubscribedEvents(): array { return [ diff --git a/Extension/DataCollector/FormDataCollector.php b/Extension/DataCollector/FormDataCollector.php index f4640f1ff..525d8ffec 100644 --- a/Extension/DataCollector/FormDataCollector.php +++ b/Extension/DataCollector/FormDataCollector.php @@ -89,17 +89,11 @@ public function reset() ]; } - /** - * {@inheritdoc} - */ public function associateFormWithView(FormInterface $form, FormView $view) { $this->formsByView[spl_object_hash($view)] = spl_object_hash($form); } - /** - * {@inheritdoc} - */ public function collectConfiguration(FormInterface $form) { $hash = spl_object_hash($form); @@ -118,9 +112,6 @@ public function collectConfiguration(FormInterface $form) } } - /** - * {@inheritdoc} - */ public function collectDefaultData(FormInterface $form) { $hash = spl_object_hash($form); @@ -140,9 +131,6 @@ public function collectDefaultData(FormInterface $form) } } - /** - * {@inheritdoc} - */ public function collectSubmittedData(FormInterface $form) { $hash = spl_object_hash($form); @@ -174,9 +162,6 @@ public function collectSubmittedData(FormInterface $form) } } - /** - * {@inheritdoc} - */ public function collectViewVariables(FormView $view) { $hash = spl_object_hash($view); @@ -195,33 +180,21 @@ public function collectViewVariables(FormView $view) } } - /** - * {@inheritdoc} - */ public function buildPreliminaryFormTree(FormInterface $form) { $this->data['forms'][$form->getName()] = &$this->recursiveBuildPreliminaryFormTree($form, $this->data['forms_by_hash']); } - /** - * {@inheritdoc} - */ public function buildFinalFormTree(FormInterface $form, FormView $view) { $this->data['forms'][$form->getName()] = &$this->recursiveBuildFinalFormTree($form, $view, $this->data['forms_by_hash']); } - /** - * {@inheritdoc} - */ public function getName(): string { return 'form'; } - /** - * {@inheritdoc} - */ public function getData(): array|Data { return $this->data; @@ -243,9 +216,6 @@ public function __sleep(): array return parent::__sleep(); } - /** - * {@inheritdoc} - */ protected function getCasters(): array { return parent::getCasters() + [ diff --git a/Extension/DataCollector/FormDataExtractor.php b/Extension/DataCollector/FormDataExtractor.php index e9a54df8f..028e8c06d 100644 --- a/Extension/DataCollector/FormDataExtractor.php +++ b/Extension/DataCollector/FormDataExtractor.php @@ -22,9 +22,6 @@ */ class FormDataExtractor implements FormDataExtractorInterface { - /** - * {@inheritdoc} - */ public function extractConfiguration(FormInterface $form): array { $data = [ @@ -50,9 +47,6 @@ public function extractConfiguration(FormInterface $form): array return $data; } - /** - * {@inheritdoc} - */ public function extractDefaultData(FormInterface $form): array { $data = [ @@ -73,9 +67,6 @@ public function extractDefaultData(FormInterface $form): array return $data; } - /** - * {@inheritdoc} - */ public function extractSubmittedData(FormInterface $form): array { $data = [ @@ -132,9 +123,6 @@ public function extractSubmittedData(FormInterface $form): array return $data; } - /** - * {@inheritdoc} - */ public function extractViewVariables(FormView $view): array { $data = [ diff --git a/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php b/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php index 7563e778e..d273fbbc7 100644 --- a/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php +++ b/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php @@ -36,41 +36,26 @@ public function __construct(ResolvedFormTypeInterface $proxiedType, FormDataColl $this->dataCollector = $dataCollector; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return $this->proxiedType->getBlockPrefix(); } - /** - * {@inheritdoc} - */ public function getParent(): ?ResolvedFormTypeInterface { return $this->proxiedType->getParent(); } - /** - * {@inheritdoc} - */ public function getInnerType(): FormTypeInterface { return $this->proxiedType->getInnerType(); } - /** - * {@inheritdoc} - */ public function getTypeExtensions(): array { return $this->proxiedType->getTypeExtensions(); } - /** - * {@inheritdoc} - */ public function createBuilder(FormFactoryInterface $factory, string $name, array $options = []): FormBuilderInterface { $builder = $this->proxiedType->createBuilder($factory, $name, $options); @@ -81,33 +66,21 @@ public function createBuilder(FormFactoryInterface $factory, string $name, array return $builder; } - /** - * {@inheritdoc} - */ public function createView(FormInterface $form, FormView $parent = null): FormView { return $this->proxiedType->createView($form, $parent); } - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { $this->proxiedType->buildForm($builder, $options); } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { $this->proxiedType->buildView($view, $form, $options); } - /** - * {@inheritdoc} - */ public function finishView(FormView $view, FormInterface $form, array $options) { $this->proxiedType->finishView($view, $form, $options); @@ -132,9 +105,6 @@ public function finishView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function getOptionsResolver(): OptionsResolver { return $this->proxiedType->getOptionsResolver(); diff --git a/Extension/DataCollector/Proxy/ResolvedTypeFactoryDataCollectorProxy.php b/Extension/DataCollector/Proxy/ResolvedTypeFactoryDataCollectorProxy.php index 835a7e879..eea5bfd4a 100644 --- a/Extension/DataCollector/Proxy/ResolvedTypeFactoryDataCollectorProxy.php +++ b/Extension/DataCollector/Proxy/ResolvedTypeFactoryDataCollectorProxy.php @@ -33,9 +33,6 @@ public function __construct(ResolvedFormTypeFactoryInterface $proxiedFactory, Fo $this->dataCollector = $dataCollector; } - /** - * {@inheritdoc} - */ public function createResolvedType(FormTypeInterface $type, array $typeExtensions, ResolvedFormTypeInterface $parent = null): ResolvedFormTypeInterface { return new ResolvedTypeDataCollectorProxy( diff --git a/Extension/DataCollector/Type/DataCollectorTypeExtension.php b/Extension/DataCollector/Type/DataCollectorTypeExtension.php index 73f8a214f..d014f0e45 100644 --- a/Extension/DataCollector/Type/DataCollectorTypeExtension.php +++ b/Extension/DataCollector/Type/DataCollectorTypeExtension.php @@ -32,17 +32,11 @@ public function __construct(FormDataCollectorInterface $dataCollector) $this->listener = new DataCollectorListener($dataCollector); } - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->addEventSubscriber($this->listener); } - /** - * {@inheritdoc} - */ public static function getExtendedTypes(): iterable { return [FormType::class]; diff --git a/Extension/DependencyInjection/DependencyInjectionExtension.php b/Extension/DependencyInjection/DependencyInjectionExtension.php index 5fe0371df..0b978d693 100644 --- a/Extension/DependencyInjection/DependencyInjectionExtension.php +++ b/Extension/DependencyInjection/DependencyInjectionExtension.php @@ -36,9 +36,6 @@ public function __construct(ContainerInterface $typeContainer, array $typeExtens $this->guesserServices = $guesserServices; } - /** - * {@inheritdoc} - */ public function getType(string $name): FormTypeInterface { if (!$this->typeContainer->has($name)) { @@ -48,17 +45,11 @@ public function getType(string $name): FormTypeInterface return $this->typeContainer->get($name); } - /** - * {@inheritdoc} - */ public function hasType(string $name): bool { return $this->typeContainer->has($name); } - /** - * {@inheritdoc} - */ public function getTypeExtensions(string $name): array { $extensions = []; @@ -82,17 +73,11 @@ public function getTypeExtensions(string $name): array return $extensions; } - /** - * {@inheritdoc} - */ public function hasTypeExtensions(string $name): bool { return isset($this->typeExtensionServices[$name]); } - /** - * {@inheritdoc} - */ public function getTypeGuesser(): ?FormTypeGuesserInterface { if (!$this->guesserLoaded) { diff --git a/Extension/HttpFoundation/HttpFoundationRequestHandler.php b/Extension/HttpFoundation/HttpFoundationRequestHandler.php index 17317c780..3b1aaebf0 100644 --- a/Extension/HttpFoundation/HttpFoundationRequestHandler.php +++ b/Extension/HttpFoundation/HttpFoundationRequestHandler.php @@ -35,9 +35,6 @@ public function __construct(ServerParams $serverParams = null) $this->serverParams = $serverParams ?? new ServerParams(); } - /** - * {@inheritdoc} - */ public function handleRequest(FormInterface $form, mixed $request = null) { if (!$request instanceof Request) { @@ -109,9 +106,6 @@ public function handleRequest(FormInterface $form, mixed $request = null) $form->submit($data, 'PATCH' !== $method); } - /** - * {@inheritdoc} - */ public function isFileUpload(mixed $data): bool { return $data instanceof File; diff --git a/Extension/HttpFoundation/Type/FormTypeHttpFoundationExtension.php b/Extension/HttpFoundation/Type/FormTypeHttpFoundationExtension.php index 3d283d0e4..9a5ae6661 100644 --- a/Extension/HttpFoundation/Type/FormTypeHttpFoundationExtension.php +++ b/Extension/HttpFoundation/Type/FormTypeHttpFoundationExtension.php @@ -29,17 +29,11 @@ public function __construct(RequestHandlerInterface $requestHandler = null) $this->requestHandler = $requestHandler ?? new HttpFoundationRequestHandler(); } - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->setRequestHandler($this->requestHandler); } - /** - * {@inheritdoc} - */ public static function getExtendedTypes(): iterable { return [FormType::class]; diff --git a/Extension/Validator/Constraints/Form.php b/Extension/Validator/Constraints/Form.php index 694281ddd..6dec01be2 100644 --- a/Extension/Validator/Constraints/Form.php +++ b/Extension/Validator/Constraints/Form.php @@ -31,9 +31,6 @@ class Form extends Constraint */ protected static $errorNames = self::ERROR_NAMES; - /** - * {@inheritdoc} - */ public function getTargets(): string|array { return self::CLASS_CONSTRAINT; diff --git a/Extension/Validator/Constraints/FormValidator.php b/Extension/Validator/Constraints/FormValidator.php index 3b5b699ce..ada84f14b 100644 --- a/Extension/Validator/Constraints/FormValidator.php +++ b/Extension/Validator/Constraints/FormValidator.php @@ -29,9 +29,6 @@ class FormValidator extends ConstraintValidator */ private \SplObjectStorage $resolvedGroups; - /** - * {@inheritdoc} - */ public function validate(mixed $form, Constraint $formConstraint) { if (!$formConstraint instanceof Form) { diff --git a/Extension/Validator/EventListener/ValidationListener.php b/Extension/Validator/EventListener/ValidationListener.php index 3d010b77c..2963d6f7b 100644 --- a/Extension/Validator/EventListener/ValidationListener.php +++ b/Extension/Validator/EventListener/ValidationListener.php @@ -26,9 +26,6 @@ class ValidationListener implements EventSubscriberInterface private ValidatorInterface $validator; private ViolationMapperInterface $violationMapper; - /** - * {@inheritdoc} - */ public static function getSubscribedEvents(): array { return [FormEvents::POST_SUBMIT => 'validateForm']; diff --git a/Extension/Validator/Type/BaseValidatorExtension.php b/Extension/Validator/Type/BaseValidatorExtension.php index 0e9e2a9d7..9366a20f8 100644 --- a/Extension/Validator/Type/BaseValidatorExtension.php +++ b/Extension/Validator/Type/BaseValidatorExtension.php @@ -24,9 +24,6 @@ */ abstract class BaseValidatorExtension extends AbstractTypeExtension { - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { // Make sure that validation groups end up as null, closure or array diff --git a/Extension/Validator/Type/FormTypeValidatorExtension.php b/Extension/Validator/Type/FormTypeValidatorExtension.php index 40fe64df4..26653dc99 100644 --- a/Extension/Validator/Type/FormTypeValidatorExtension.php +++ b/Extension/Validator/Type/FormTypeValidatorExtension.php @@ -37,17 +37,11 @@ public function __construct(ValidatorInterface $validator, bool $legacyErrorMess $this->violationMapper = new ViolationMapper($formRenderer, $translator); } - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->addEventSubscriber(new ValidationListener($this->validator, $this->violationMapper)); } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { parent::configureOptions($resolver); @@ -69,9 +63,6 @@ public function configureOptions(OptionsResolver $resolver) $resolver->setNormalizer('constraints', $constraintsNormalizer); } - /** - * {@inheritdoc} - */ public static function getExtendedTypes(): iterable { return [FormType::class]; diff --git a/Extension/Validator/Type/RepeatedTypeValidatorExtension.php b/Extension/Validator/Type/RepeatedTypeValidatorExtension.php index 4bda0b27d..664a3edae 100644 --- a/Extension/Validator/Type/RepeatedTypeValidatorExtension.php +++ b/Extension/Validator/Type/RepeatedTypeValidatorExtension.php @@ -21,9 +21,6 @@ */ class RepeatedTypeValidatorExtension extends AbstractTypeExtension { - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { // Map errors to the first field @@ -36,9 +33,6 @@ public function configureOptions(OptionsResolver $resolver) ]); } - /** - * {@inheritdoc} - */ public static function getExtendedTypes(): iterable { return [RepeatedType::class]; diff --git a/Extension/Validator/Type/SubmitTypeValidatorExtension.php b/Extension/Validator/Type/SubmitTypeValidatorExtension.php index ea273d0ad..8efae7d52 100644 --- a/Extension/Validator/Type/SubmitTypeValidatorExtension.php +++ b/Extension/Validator/Type/SubmitTypeValidatorExtension.php @@ -18,9 +18,6 @@ */ class SubmitTypeValidatorExtension extends BaseValidatorExtension { - /** - * {@inheritdoc} - */ public static function getExtendedTypes(): iterable { return [SubmitType::class]; diff --git a/Extension/Validator/Type/UploadValidatorExtension.php b/Extension/Validator/Type/UploadValidatorExtension.php index b5ddecd99..14f6c8f2d 100644 --- a/Extension/Validator/Type/UploadValidatorExtension.php +++ b/Extension/Validator/Type/UploadValidatorExtension.php @@ -32,9 +32,6 @@ public function __construct(TranslatorInterface $translator, string $translation $this->translationDomain = $translationDomain; } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $translator = $this->translator; @@ -46,9 +43,6 @@ public function configureOptions(OptionsResolver $resolver) }); } - /** - * {@inheritdoc} - */ public static function getExtendedTypes(): iterable { return [FormType::class]; diff --git a/Extension/Validator/ValidatorTypeGuesser.php b/Extension/Validator/ValidatorTypeGuesser.php index 5eba3a291..46738b401 100644 --- a/Extension/Validator/ValidatorTypeGuesser.php +++ b/Extension/Validator/ValidatorTypeGuesser.php @@ -64,9 +64,6 @@ public function __construct(MetadataFactoryInterface $metadataFactory) $this->metadataFactory = $metadataFactory; } - /** - * {@inheritdoc} - */ public function guessType(string $class, string $property): ?TypeGuess { return $this->guess($class, $property, function (Constraint $constraint) { @@ -74,9 +71,6 @@ public function guessType(string $class, string $property): ?TypeGuess }); } - /** - * {@inheritdoc} - */ public function guessRequired(string $class, string $property): ?ValueGuess { return $this->guess($class, $property, function (Constraint $constraint) { @@ -86,9 +80,6 @@ public function guessRequired(string $class, string $property): ?ValueGuess }, false); } - /** - * {@inheritdoc} - */ public function guessMaxLength(string $class, string $property): ?ValueGuess { return $this->guess($class, $property, function (Constraint $constraint) { @@ -96,9 +87,6 @@ public function guessMaxLength(string $class, string $property): ?ValueGuess }); } - /** - * {@inheritdoc} - */ public function guessPattern(string $class, string $property): ?ValueGuess { return $this->guess($class, $property, function (Constraint $constraint) { diff --git a/Extension/Validator/ViolationMapper/ViolationMapper.php b/Extension/Validator/ViolationMapper/ViolationMapper.php index 7f6b88d6c..961d5df14 100644 --- a/Extension/Validator/ViolationMapper/ViolationMapper.php +++ b/Extension/Validator/ViolationMapper/ViolationMapper.php @@ -38,9 +38,6 @@ public function __construct(FormRendererInterface $formRenderer = null, Translat $this->translator = $translator; } - /** - * {@inheritdoc} - */ public function mapViolation(ConstraintViolation $violation, FormInterface $form, bool $allowNonSynchronized = false) { $this->allowNonSynchronized = $allowNonSynchronized; diff --git a/Extension/Validator/ViolationMapper/ViolationPath.php b/Extension/Validator/ViolationMapper/ViolationPath.php index fe68518ab..19fc582be 100644 --- a/Extension/Validator/ViolationMapper/ViolationPath.php +++ b/Extension/Validator/ViolationMapper/ViolationPath.php @@ -101,17 +101,11 @@ public function __toString(): string return $this->pathAsString; } - /** - * {@inheritdoc} - */ public function getLength(): int { return $this->length; } - /** - * {@inheritdoc} - */ public function getParent(): ?PropertyPathInterface { if ($this->length <= 1) { @@ -130,17 +124,11 @@ public function getParent(): ?PropertyPathInterface return $parent; } - /** - * {@inheritdoc} - */ public function getElements(): array { return $this->elements; } - /** - * {@inheritdoc} - */ public function getElement(int $index): string { if (!isset($this->elements[$index])) { @@ -150,9 +138,6 @@ public function getElement(int $index): string return $this->elements[$index]; } - /** - * {@inheritdoc} - */ public function isProperty(int $index): bool { if (!isset($this->isIndex[$index])) { @@ -162,9 +147,6 @@ public function isProperty(int $index): bool return !$this->isIndex[$index]; } - /** - * {@inheritdoc} - */ public function isIndex(int $index): bool { if (!isset($this->isIndex[$index])) { diff --git a/Form.php b/Form.php index 88d60a140..b2b96a0a1 100644 --- a/Form.php +++ b/Form.php @@ -165,25 +165,16 @@ public function __clone() } } - /** - * {@inheritdoc} - */ public function getConfig(): FormConfigInterface { return $this->config; } - /** - * {@inheritdoc} - */ public function getName(): string { return $this->name; } - /** - * {@inheritdoc} - */ public function getPropertyPath(): ?PropertyPathInterface { if ($this->propertyPath || $this->propertyPath = $this->config->getPropertyPath()) { @@ -209,9 +200,6 @@ public function getPropertyPath(): ?PropertyPathInterface return $this->propertyPath; } - /** - * {@inheritdoc} - */ public function isRequired(): bool { if (null === $this->parent || $this->parent->isRequired()) { @@ -221,9 +209,6 @@ public function isRequired(): bool return false; } - /** - * {@inheritdoc} - */ public function isDisabled(): bool { if (null === $this->parent || !$this->parent->isDisabled()) { @@ -233,9 +218,6 @@ public function isDisabled(): bool return true; } - /** - * {@inheritdoc} - */ public function setParent(FormInterface $parent = null): static { if ($this->submitted) { @@ -251,33 +233,21 @@ public function setParent(FormInterface $parent = null): static return $this; } - /** - * {@inheritdoc} - */ public function getParent(): ?FormInterface { return $this->parent; } - /** - * {@inheritdoc} - */ public function getRoot(): FormInterface { return $this->parent ? $this->parent->getRoot() : $this; } - /** - * {@inheritdoc} - */ public function isRoot(): bool { return null === $this->parent; } - /** - * {@inheritdoc} - */ public function setData(mixed $modelData): static { // If the form is submitted while disabled, it is set to submitted, but the data is not @@ -357,9 +327,6 @@ public function setData(mixed $modelData): static return $this; } - /** - * {@inheritdoc} - */ public function getData(): mixed { if ($this->inheritData) { @@ -381,9 +348,6 @@ public function getData(): mixed return $this->modelData; } - /** - * {@inheritdoc} - */ public function getNormData(): mixed { if ($this->inheritData) { @@ -405,9 +369,6 @@ public function getNormData(): mixed return $this->normData; } - /** - * {@inheritdoc} - */ public function getViewData(): mixed { if ($this->inheritData) { @@ -429,17 +390,11 @@ public function getViewData(): mixed return $this->viewData; } - /** - * {@inheritdoc} - */ public function getExtraData(): array { return $this->extraData; } - /** - * {@inheritdoc} - */ public function initialize(): static { if (null !== $this->parent) { @@ -456,9 +411,6 @@ public function initialize(): static return $this; } - /** - * {@inheritdoc} - */ public function handleRequest(mixed $request = null): static { $this->config->getRequestHandler()->handleRequest($this, $request); @@ -466,9 +418,6 @@ public function handleRequest(mixed $request = null): static return $this; } - /** - * {@inheritdoc} - */ public function submit(mixed $submittedData, bool $clearMissing = true): static { if ($this->submitted) { @@ -645,9 +594,6 @@ public function submit(mixed $submittedData, bool $clearMissing = true): static return $this; } - /** - * {@inheritdoc} - */ public function addError(FormError $error): static { if (null === $error->getOrigin()) { @@ -663,33 +609,21 @@ public function addError(FormError $error): static return $this; } - /** - * {@inheritdoc} - */ public function isSubmitted(): bool { return $this->submitted; } - /** - * {@inheritdoc} - */ public function isSynchronized(): bool { return null === $this->transformationFailure; } - /** - * {@inheritdoc} - */ public function getTransformationFailure(): ?Exception\TransformationFailedException { return $this->transformationFailure; } - /** - * {@inheritdoc} - */ public function isEmpty(): bool { foreach ($this->children as $child) { @@ -709,9 +643,6 @@ public function isEmpty(): bool ($this->modelData instanceof \Traversable && 0 === iterator_count($this->modelData)); } - /** - * {@inheritdoc} - */ public function isValid(): bool { if (!$this->submitted) { @@ -737,9 +668,6 @@ public function getClickedButton(): FormInterface|ClickableInterface|null return $this->parent && method_exists($this->parent, 'getClickedButton') ? $this->parent->getClickedButton() : null; } - /** - * {@inheritdoc} - */ public function getErrors(bool $deep = false, bool $flatten = true): FormErrorIterator { $errors = $this->errors; @@ -771,9 +699,6 @@ public function getErrors(bool $deep = false, bool $flatten = true): FormErrorIt return new FormErrorIterator($this, $errors); } - /** - * {@inheritdoc} - */ public function clearErrors(bool $deep = false): static { $this->errors = []; @@ -790,17 +715,11 @@ public function clearErrors(bool $deep = false): static return $this; } - /** - * {@inheritdoc} - */ public function all(): array { return iterator_to_array($this->children); } - /** - * {@inheritdoc} - */ public function add(FormInterface|string $child, string $type = null, array $options = []): static { if ($this->submitted) { @@ -865,9 +784,6 @@ public function add(FormInterface|string $child, string $type = null, array $opt return $this; } - /** - * {@inheritdoc} - */ public function remove(string $name): static { if ($this->submitted) { @@ -885,17 +801,11 @@ public function remove(string $name): static return $this; } - /** - * {@inheritdoc} - */ public function has(string $name): bool { return isset($this->children[$name]); } - /** - * {@inheritdoc} - */ public function get(string $name): FormInterface { if (isset($this->children[$name])) { @@ -973,9 +883,6 @@ public function count(): int return \count($this->children); } - /** - * {@inheritdoc} - */ public function createView(FormView $parent = null): FormView { if (null === $parent && $this->parent) { diff --git a/FormBuilder.php b/FormBuilder.php index 9864235cf..c6215635e 100644 --- a/FormBuilder.php +++ b/FormBuilder.php @@ -45,9 +45,6 @@ public function __construct(?string $name, ?string $dataClass, EventDispatcherIn $this->setFormFactory($factory); } - /** - * {@inheritdoc} - */ public function add(FormBuilderInterface|string $child, string $type = null, array $options = []): static { if ($this->locked) { @@ -74,9 +71,6 @@ public function add(FormBuilderInterface|string $child, string $type = null, arr return $this; } - /** - * {@inheritdoc} - */ public function create(string $name, string $type = null, array $options = []): FormBuilderInterface { if ($this->locked) { @@ -94,9 +88,6 @@ public function create(string $name, string $type = null, array $options = []): return $this->getFormFactory()->createBuilderForProperty($this->getDataClass(), $name, null, $options); } - /** - * {@inheritdoc} - */ public function get(string $name): FormBuilderInterface { if ($this->locked) { @@ -114,9 +105,6 @@ public function get(string $name): FormBuilderInterface throw new InvalidArgumentException(sprintf('The child with the name "%s" does not exist.', $name)); } - /** - * {@inheritdoc} - */ public function remove(string $name): static { if ($this->locked) { @@ -128,9 +116,6 @@ public function remove(string $name): static return $this; } - /** - * {@inheritdoc} - */ public function has(string $name): bool { if ($this->locked) { @@ -140,9 +125,6 @@ public function has(string $name): bool return isset($this->unresolvedChildren[$name]) || isset($this->children[$name]); } - /** - * {@inheritdoc} - */ public function all(): array { if ($this->locked) { @@ -163,9 +145,6 @@ public function count(): int return \count($this->children); } - /** - * {@inheritdoc} - */ public function getFormConfig(): FormConfigInterface { /** @var $config self */ @@ -177,9 +156,6 @@ public function getFormConfig(): FormConfigInterface return $config; } - /** - * {@inheritdoc} - */ public function getForm(): FormInterface { if ($this->locked) { @@ -204,8 +180,6 @@ public function getForm(): FormInterface } /** - * {@inheritdoc} - * * @return \Traversable */ public function getIterator(): \Traversable diff --git a/FormConfigBuilder.php b/FormConfigBuilder.php index 4a03594e0..094bb8846 100644 --- a/FormConfigBuilder.php +++ b/FormConfigBuilder.php @@ -84,9 +84,6 @@ public function __construct(?string $name, ?string $dataClass, EventDispatcherIn $this->options = $options; } - /** - * {@inheritdoc} - */ public function addEventListener(string $eventName, callable $listener, int $priority = 0): static { if ($this->locked) { @@ -98,9 +95,6 @@ public function addEventListener(string $eventName, callable $listener, int $pri return $this; } - /** - * {@inheritdoc} - */ public function addEventSubscriber(EventSubscriberInterface $subscriber): static { if ($this->locked) { @@ -112,9 +106,6 @@ public function addEventSubscriber(EventSubscriberInterface $subscriber): static return $this; } - /** - * {@inheritdoc} - */ public function addViewTransformer(DataTransformerInterface $viewTransformer, bool $forcePrepend = false): static { if ($this->locked) { @@ -130,9 +121,6 @@ public function addViewTransformer(DataTransformerInterface $viewTransformer, bo return $this; } - /** - * {@inheritdoc} - */ public function resetViewTransformers(): static { if ($this->locked) { @@ -144,9 +132,6 @@ public function resetViewTransformers(): static return $this; } - /** - * {@inheritdoc} - */ public function addModelTransformer(DataTransformerInterface $modelTransformer, bool $forceAppend = false): static { if ($this->locked) { @@ -162,9 +147,6 @@ public function addModelTransformer(DataTransformerInterface $modelTransformer, return $this; } - /** - * {@inheritdoc} - */ public function resetModelTransformers(): static { if ($this->locked) { @@ -176,9 +158,6 @@ public function resetModelTransformers(): static return $this; } - /** - * {@inheritdoc} - */ public function getEventDispatcher(): EventDispatcherInterface { if ($this->locked && !$this->dispatcher instanceof ImmutableEventDispatcher) { @@ -188,169 +167,106 @@ public function getEventDispatcher(): EventDispatcherInterface return $this->dispatcher; } - /** - * {@inheritdoc} - */ public function getName(): string { return $this->name; } - /** - * {@inheritdoc} - */ public function getPropertyPath(): ?PropertyPathInterface { return $this->propertyPath; } - /** - * {@inheritdoc} - */ public function getMapped(): bool { return $this->mapped; } - /** - * {@inheritdoc} - */ public function getByReference(): bool { return $this->byReference; } - /** - * {@inheritdoc} - */ public function getInheritData(): bool { return $this->inheritData; } - /** - * {@inheritdoc} - */ public function getCompound(): bool { return $this->compound; } - /** - * {@inheritdoc} - */ public function getType(): ResolvedFormTypeInterface { return $this->type; } - /** - * {@inheritdoc} - */ public function getViewTransformers(): array { return $this->viewTransformers; } - /** - * {@inheritdoc} - */ public function getModelTransformers(): array { return $this->modelTransformers; } - /** - * {@inheritdoc} - */ public function getDataMapper(): ?DataMapperInterface { return $this->dataMapper; } - /** - * {@inheritdoc} - */ public function getRequired(): bool { return $this->required; } - /** - * {@inheritdoc} - */ public function getDisabled(): bool { return $this->disabled; } - /** - * {@inheritdoc} - */ public function getErrorBubbling(): bool { return $this->errorBubbling; } - /** - * {@inheritdoc} - */ public function getEmptyData(): mixed { return $this->emptyData; } - /** - * {@inheritdoc} - */ public function getAttributes(): array { return $this->attributes; } - /** - * {@inheritdoc} - */ public function hasAttribute(string $name): bool { return \array_key_exists($name, $this->attributes); } - /** - * {@inheritdoc} - */ public function getAttribute(string $name, mixed $default = null): mixed { return \array_key_exists($name, $this->attributes) ? $this->attributes[$name] : $default; } - /** - * {@inheritdoc} - */ public function getData(): mixed { return $this->data; } - /** - * {@inheritdoc} - */ public function getDataClass(): ?string { return $this->dataClass; } - /** - * {@inheritdoc} - */ public function getDataLocked(): bool { return $this->dataLocked; } - /** - * {@inheritdoc} - */ public function getFormFactory(): FormFactoryInterface { if (!isset($this->formFactory)) { @@ -360,73 +276,46 @@ public function getFormFactory(): FormFactoryInterface return $this->formFactory; } - /** - * {@inheritdoc} - */ public function getAction(): string { return $this->action; } - /** - * {@inheritdoc} - */ public function getMethod(): string { return $this->method; } - /** - * {@inheritdoc} - */ public function getRequestHandler(): RequestHandlerInterface { return $this->requestHandler ??= self::$nativeRequestHandler ??= new NativeRequestHandler(); } - /** - * {@inheritdoc} - */ public function getAutoInitialize(): bool { return $this->autoInitialize; } - /** - * {@inheritdoc} - */ public function getOptions(): array { return $this->options; } - /** - * {@inheritdoc} - */ public function hasOption(string $name): bool { return \array_key_exists($name, $this->options); } - /** - * {@inheritdoc} - */ public function getOption(string $name, mixed $default = null): mixed { return \array_key_exists($name, $this->options) ? $this->options[$name] : $default; } - /** - * {@inheritdoc} - */ public function getIsEmptyCallback(): ?callable { return $this->isEmptyCallback; } - /** - * {@inheritdoc} - */ public function setAttribute(string $name, mixed $value): static { if ($this->locked) { @@ -438,9 +327,6 @@ public function setAttribute(string $name, mixed $value): static return $this; } - /** - * {@inheritdoc} - */ public function setAttributes(array $attributes): static { if ($this->locked) { @@ -452,9 +338,6 @@ public function setAttributes(array $attributes): static return $this; } - /** - * {@inheritdoc} - */ public function setDataMapper(DataMapperInterface $dataMapper = null): static { if ($this->locked) { @@ -466,9 +349,6 @@ public function setDataMapper(DataMapperInterface $dataMapper = null): static return $this; } - /** - * {@inheritdoc} - */ public function setDisabled(bool $disabled): static { if ($this->locked) { @@ -480,9 +360,6 @@ public function setDisabled(bool $disabled): static return $this; } - /** - * {@inheritdoc} - */ public function setEmptyData(mixed $emptyData): static { if ($this->locked) { @@ -494,9 +371,6 @@ public function setEmptyData(mixed $emptyData): static return $this; } - /** - * {@inheritdoc} - */ public function setErrorBubbling(bool $errorBubbling): static { if ($this->locked) { @@ -508,9 +382,6 @@ public function setErrorBubbling(bool $errorBubbling): static return $this; } - /** - * {@inheritdoc} - */ public function setRequired(bool $required): static { if ($this->locked) { @@ -522,9 +393,6 @@ public function setRequired(bool $required): static return $this; } - /** - * {@inheritdoc} - */ public function setPropertyPath(string|PropertyPathInterface|null $propertyPath): static { if ($this->locked) { @@ -540,9 +408,6 @@ public function setPropertyPath(string|PropertyPathInterface|null $propertyPath) return $this; } - /** - * {@inheritdoc} - */ public function setMapped(bool $mapped): static { if ($this->locked) { @@ -554,9 +419,6 @@ public function setMapped(bool $mapped): static return $this; } - /** - * {@inheritdoc} - */ public function setByReference(bool $byReference): static { if ($this->locked) { @@ -568,9 +430,6 @@ public function setByReference(bool $byReference): static return $this; } - /** - * {@inheritdoc} - */ public function setInheritData(bool $inheritData): static { if ($this->locked) { @@ -582,9 +441,6 @@ public function setInheritData(bool $inheritData): static return $this; } - /** - * {@inheritdoc} - */ public function setCompound(bool $compound): static { if ($this->locked) { @@ -596,9 +452,6 @@ public function setCompound(bool $compound): static return $this; } - /** - * {@inheritdoc} - */ public function setType(ResolvedFormTypeInterface $type): static { if ($this->locked) { @@ -610,9 +463,6 @@ public function setType(ResolvedFormTypeInterface $type): static return $this; } - /** - * {@inheritdoc} - */ public function setData(mixed $data): static { if ($this->locked) { @@ -624,9 +474,6 @@ public function setData(mixed $data): static return $this; } - /** - * {@inheritdoc} - */ public function setDataLocked(bool $locked): static { if ($this->locked) { @@ -638,9 +485,6 @@ public function setDataLocked(bool $locked): static return $this; } - /** - * {@inheritdoc} - */ public function setFormFactory(FormFactoryInterface $formFactory) { if ($this->locked) { @@ -652,9 +496,6 @@ public function setFormFactory(FormFactoryInterface $formFactory) return $this; } - /** - * {@inheritdoc} - */ public function setAction(string $action): static { if ($this->locked) { @@ -666,9 +507,6 @@ public function setAction(string $action): static return $this; } - /** - * {@inheritdoc} - */ public function setMethod(string $method): static { if ($this->locked) { @@ -680,9 +518,6 @@ public function setMethod(string $method): static return $this; } - /** - * {@inheritdoc} - */ public function setRequestHandler(RequestHandlerInterface $requestHandler): static { if ($this->locked) { @@ -694,9 +529,6 @@ public function setRequestHandler(RequestHandlerInterface $requestHandler): stat return $this; } - /** - * {@inheritdoc} - */ public function setAutoInitialize(bool $initialize): static { if ($this->locked) { @@ -708,9 +540,6 @@ public function setAutoInitialize(bool $initialize): static return $this; } - /** - * {@inheritdoc} - */ public function getFormConfig(): FormConfigInterface { if ($this->locked) { @@ -724,9 +553,6 @@ public function getFormConfig(): FormConfigInterface return $config; } - /** - * {@inheritdoc} - */ public function setIsEmptyCallback(?callable $isEmptyCallback): static { $this->isEmptyCallback = null === $isEmptyCallback ? null : $isEmptyCallback(...); diff --git a/FormFactory.php b/FormFactory.php index 1b7627399..9e1234f83 100644 --- a/FormFactory.php +++ b/FormFactory.php @@ -23,41 +23,26 @@ public function __construct(FormRegistryInterface $registry) $this->registry = $registry; } - /** - * {@inheritdoc} - */ public function create(string $type = FormType::class, mixed $data = null, array $options = []): FormInterface { return $this->createBuilder($type, $data, $options)->getForm(); } - /** - * {@inheritdoc} - */ public function createNamed(string $name, string $type = FormType::class, mixed $data = null, array $options = []): FormInterface { return $this->createNamedBuilder($name, $type, $data, $options)->getForm(); } - /** - * {@inheritdoc} - */ public function createForProperty(string $class, string $property, mixed $data = null, array $options = []): FormInterface { return $this->createBuilderForProperty($class, $property, $data, $options)->getForm(); } - /** - * {@inheritdoc} - */ public function createBuilder(string $type = FormType::class, mixed $data = null, array $options = []): FormBuilderInterface { return $this->createNamedBuilder($this->registry->getType($type)->getBlockPrefix(), $type, $data, $options); } - /** - * {@inheritdoc} - */ public function createNamedBuilder(string $name, string $type = FormType::class, mixed $data = null, array $options = []): FormBuilderInterface { if (null !== $data && !\array_key_exists('data', $options)) { @@ -75,9 +60,6 @@ public function createNamedBuilder(string $name, string $type = FormType::class, return $builder; } - /** - * {@inheritdoc} - */ public function createBuilderForProperty(string $class, string $property, mixed $data = null, array $options = []): FormBuilderInterface { if (null === $guesser = $this->registry->getTypeGuesser()) { diff --git a/FormFactoryBuilder.php b/FormFactoryBuilder.php index 0ad58a660..42b8dec9f 100644 --- a/FormFactoryBuilder.php +++ b/FormFactoryBuilder.php @@ -49,9 +49,6 @@ public function __construct(bool $forceCoreExtension = false) $this->forceCoreExtension = $forceCoreExtension; } - /** - * {@inheritdoc} - */ public function setResolvedTypeFactory(ResolvedFormTypeFactoryInterface $resolvedTypeFactory): static { $this->resolvedTypeFactory = $resolvedTypeFactory; @@ -59,9 +56,6 @@ public function setResolvedTypeFactory(ResolvedFormTypeFactoryInterface $resolve return $this; } - /** - * {@inheritdoc} - */ public function addExtension(FormExtensionInterface $extension): static { $this->extensions[] = $extension; @@ -69,9 +63,6 @@ public function addExtension(FormExtensionInterface $extension): static return $this; } - /** - * {@inheritdoc} - */ public function addExtensions(array $extensions): static { $this->extensions = array_merge($this->extensions, $extensions); @@ -79,9 +70,6 @@ public function addExtensions(array $extensions): static return $this; } - /** - * {@inheritdoc} - */ public function addType(FormTypeInterface $type): static { $this->types[] = $type; @@ -89,9 +77,6 @@ public function addType(FormTypeInterface $type): static return $this; } - /** - * {@inheritdoc} - */ public function addTypes(array $types): static { foreach ($types as $type) { @@ -101,9 +86,6 @@ public function addTypes(array $types): static return $this; } - /** - * {@inheritdoc} - */ public function addTypeExtension(FormTypeExtensionInterface $typeExtension): static { foreach ($typeExtension::getExtendedTypes() as $extendedType) { @@ -113,9 +95,6 @@ public function addTypeExtension(FormTypeExtensionInterface $typeExtension): sta return $this; } - /** - * {@inheritdoc} - */ public function addTypeExtensions(array $typeExtensions): static { foreach ($typeExtensions as $typeExtension) { @@ -125,9 +104,6 @@ public function addTypeExtensions(array $typeExtensions): static return $this; } - /** - * {@inheritdoc} - */ public function addTypeGuesser(FormTypeGuesserInterface $typeGuesser): static { $this->typeGuessers[] = $typeGuesser; @@ -135,9 +111,6 @@ public function addTypeGuesser(FormTypeGuesserInterface $typeGuesser): static return $this; } - /** - * {@inheritdoc} - */ public function addTypeGuessers(array $typeGuessers): static { $this->typeGuessers = array_merge($this->typeGuessers, $typeGuessers); @@ -145,9 +118,6 @@ public function addTypeGuessers(array $typeGuessers): static return $this; } - /** - * {@inheritdoc} - */ public function getFormFactory(): FormFactoryInterface { $extensions = $this->extensions; diff --git a/FormRegistry.php b/FormRegistry.php index 5453c6d35..07420507d 100644 --- a/FormRegistry.php +++ b/FormRegistry.php @@ -54,9 +54,6 @@ public function __construct(array $extensions, ResolvedFormTypeFactoryInterface $this->resolvedTypeFactory = $resolvedTypeFactory; } - /** - * {@inheritdoc} - */ public function getType(string $name): ResolvedFormTypeInterface { if (!isset($this->types[$name])) { @@ -118,9 +115,6 @@ private function resolveType(FormTypeInterface $type): ResolvedFormTypeInterface } } - /** - * {@inheritdoc} - */ public function hasType(string $name): bool { if (isset($this->types[$name])) { @@ -136,9 +130,6 @@ public function hasType(string $name): bool return true; } - /** - * {@inheritdoc} - */ public function getTypeGuesser(): ?FormTypeGuesserInterface { if (false === $this->guesser) { @@ -158,9 +149,6 @@ public function getTypeGuesser(): ?FormTypeGuesserInterface return $this->guesser; } - /** - * {@inheritdoc} - */ public function getExtensions(): array { return $this->extensions; diff --git a/FormRenderer.php b/FormRenderer.php index ab8ff1aa3..12c7c0ddd 100644 --- a/FormRenderer.php +++ b/FormRenderer.php @@ -37,25 +37,16 @@ public function __construct(FormRendererEngineInterface $engine, CsrfTokenManage $this->csrfTokenManager = $csrfTokenManager; } - /** - * {@inheritdoc} - */ public function getEngine(): FormRendererEngineInterface { return $this->engine; } - /** - * {@inheritdoc} - */ public function setTheme(FormView $view, mixed $themes, bool $useDefaultThemes = true) { $this->engine->setTheme($view, $themes, $useDefaultThemes); } - /** - * {@inheritdoc} - */ public function renderCsrfToken(string $tokenId): string { if (null === $this->csrfTokenManager) { @@ -65,9 +56,6 @@ public function renderCsrfToken(string $tokenId): string return $this->csrfTokenManager->getToken($tokenId)->getValue(); } - /** - * {@inheritdoc} - */ public function renderBlock(FormView $view, string $blockName, array $variables = []): string { $resource = $this->engine->getResourceForBlockName($view, $blockName); @@ -124,9 +112,6 @@ public function renderBlock(FormView $view, string $blockName, array $variables return $html; } - /** - * {@inheritdoc} - */ public function searchAndRenderBlock(FormView $view, string $blockNameSuffix, array $variables = []): string { $renderOnlyOnce = 'row' === $blockNameSuffix || 'widget' === $blockNameSuffix; @@ -277,9 +262,6 @@ public function searchAndRenderBlock(FormView $view, string $blockNameSuffix, ar return $html; } - /** - * {@inheritdoc} - */ public function humanize(string $text): string { return ucfirst(strtolower(trim(preg_replace(['/([A-Z])/', '/[_\s]+/'], ['_$1', ' '], $text)))); diff --git a/FormTypeGuesserChain.php b/FormTypeGuesserChain.php index 1ce69d8d3..7d8f617f7 100644 --- a/FormTypeGuesserChain.php +++ b/FormTypeGuesserChain.php @@ -43,9 +43,6 @@ public function __construct(iterable $guessers) $this->guessers = array_merge([], ...$tmpGuessers); } - /** - * {@inheritdoc} - */ public function guessType(string $class, string $property): ?TypeGuess { return $this->guess(function ($guesser) use ($class, $property) { @@ -53,9 +50,6 @@ public function guessType(string $class, string $property): ?TypeGuess }); } - /** - * {@inheritdoc} - */ public function guessRequired(string $class, string $property): ?ValueGuess { return $this->guess(function ($guesser) use ($class, $property) { @@ -63,9 +57,6 @@ public function guessRequired(string $class, string $property): ?ValueGuess }); } - /** - * {@inheritdoc} - */ public function guessMaxLength(string $class, string $property): ?ValueGuess { return $this->guess(function ($guesser) use ($class, $property) { @@ -73,9 +64,6 @@ public function guessMaxLength(string $class, string $property): ?ValueGuess }); } - /** - * {@inheritdoc} - */ public function guessPattern(string $class, string $property): ?ValueGuess { return $this->guess(function ($guesser) use ($class, $property) { diff --git a/NativeRequestHandler.php b/NativeRequestHandler.php index 679c190e4..cf193398c 100644 --- a/NativeRequestHandler.php +++ b/NativeRequestHandler.php @@ -40,8 +40,6 @@ public function __construct(ServerParams $params = null) } /** - * {@inheritdoc} - * * @throws Exception\UnexpectedTypeException If the $request is not null */ public function handleRequest(FormInterface $form, mixed $request = null) @@ -124,9 +122,6 @@ public function handleRequest(FormInterface $form, mixed $request = null) $form->submit($data, 'PATCH' !== $method); } - /** - * {@inheritdoc} - */ public function isFileUpload(mixed $data): bool { // POST data will always be strings or arrays of strings. Thus, we can be sure diff --git a/PreloadedExtension.php b/PreloadedExtension.php index 3c0ae26e8..5590eda37 100644 --- a/PreloadedExtension.php +++ b/PreloadedExtension.php @@ -40,9 +40,6 @@ public function __construct(array $types, array $typeExtensions, FormTypeGuesser } } - /** - * {@inheritdoc} - */ public function getType(string $name): FormTypeInterface { if (!isset($this->types[$name])) { @@ -52,34 +49,22 @@ public function getType(string $name): FormTypeInterface return $this->types[$name]; } - /** - * {@inheritdoc} - */ public function hasType(string $name): bool { return isset($this->types[$name]); } - /** - * {@inheritdoc} - */ public function getTypeExtensions(string $name): array { return $this->typeExtensions[$name] ?? []; } - /** - * {@inheritdoc} - */ public function hasTypeExtensions(string $name): bool { return !empty($this->typeExtensions[$name]); } - /** - * {@inheritdoc} - */ public function getTypeGuesser(): ?FormTypeGuesserInterface { return $this->typeGuesser; diff --git a/ResolvedFormType.php b/ResolvedFormType.php index 884d538a4..af794a3b7 100644 --- a/ResolvedFormType.php +++ b/ResolvedFormType.php @@ -50,41 +50,26 @@ public function __construct(FormTypeInterface $innerType, array $typeExtensions $this->parent = $parent; } - /** - * {@inheritdoc} - */ public function getBlockPrefix(): string { return $this->innerType->getBlockPrefix(); } - /** - * {@inheritdoc} - */ public function getParent(): ?ResolvedFormTypeInterface { return $this->parent; } - /** - * {@inheritdoc} - */ public function getInnerType(): FormTypeInterface { return $this->innerType; } - /** - * {@inheritdoc} - */ public function getTypeExtensions(): array { return $this->typeExtensions; } - /** - * {@inheritdoc} - */ public function createBuilder(FormFactoryInterface $factory, string $name, array $options = []): FormBuilderInterface { try { @@ -102,17 +87,11 @@ public function createBuilder(FormFactoryInterface $factory, string $name, array return $builder; } - /** - * {@inheritdoc} - */ public function createView(FormInterface $form, FormView $parent = null): FormView { return $this->newView($parent); } - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options) { $this->parent?->buildForm($builder, $options); @@ -124,9 +103,6 @@ public function buildForm(FormBuilderInterface $builder, array $options) } } - /** - * {@inheritdoc} - */ public function buildView(FormView $view, FormInterface $form, array $options) { $this->parent?->buildView($view, $form, $options); @@ -138,9 +114,6 @@ public function buildView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function finishView(FormView $view, FormInterface $form, array $options) { $this->parent?->finishView($view, $form, $options); @@ -153,9 +126,6 @@ public function finishView(FormView $view, FormInterface $form, array $options) } } - /** - * {@inheritdoc} - */ public function getOptionsResolver(): OptionsResolver { if (!isset($this->optionsResolver)) { diff --git a/ResolvedFormTypeFactory.php b/ResolvedFormTypeFactory.php index 48f62bad3..fd7c4521b 100644 --- a/ResolvedFormTypeFactory.php +++ b/ResolvedFormTypeFactory.php @@ -16,9 +16,6 @@ */ class ResolvedFormTypeFactory implements ResolvedFormTypeFactoryInterface { - /** - * {@inheritdoc} - */ public function createResolvedType(FormTypeInterface $type, array $typeExtensions, ResolvedFormTypeInterface $parent = null): ResolvedFormTypeInterface { return new ResolvedFormType($type, $typeExtensions, $parent); diff --git a/ReversedTransformer.php b/ReversedTransformer.php index d2a835ba9..857267236 100644 --- a/ReversedTransformer.php +++ b/ReversedTransformer.php @@ -28,17 +28,11 @@ public function __construct(DataTransformerInterface $reversedTransformer) $this->reversedTransformer = $reversedTransformer; } - /** - * {@inheritdoc} - */ public function transform(mixed $value): mixed { return $this->reversedTransformer->reverseTransform($value); } - /** - * {@inheritdoc} - */ public function reverseTransform(mixed $value): mixed { return $this->reversedTransformer->transform($value); diff --git a/SubmitButton.php b/SubmitButton.php index bc7e1c3f7..37ce141d2 100644 --- a/SubmitButton.php +++ b/SubmitButton.php @@ -20,9 +20,6 @@ class SubmitButton extends Button implements ClickableInterface { private bool $clicked = false; - /** - * {@inheritdoc} - */ public function isClicked(): bool { return $this->clicked; diff --git a/Test/FormPerformanceTestCase.php b/Test/FormPerformanceTestCase.php index 2547e871c..16894bea0 100644 --- a/Test/FormPerformanceTestCase.php +++ b/Test/FormPerformanceTestCase.php @@ -30,9 +30,6 @@ abstract class FormPerformanceTestCase extends FormIntegrationTestCase */ protected $maxRunningTime = 0; - /** - * {@inheritdoc} - */ protected function runTest() { $s = microtime(true); diff --git a/Tests/Fixtures/ChoiceSubType.php b/Tests/Fixtures/ChoiceSubType.php index 5058bf6a6..d67f0b96a 100644 --- a/Tests/Fixtures/ChoiceSubType.php +++ b/Tests/Fixtures/ChoiceSubType.php @@ -20,9 +20,6 @@ */ class ChoiceSubType extends AbstractType { - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults(['expanded' => true]); @@ -34,9 +31,6 @@ public function configureOptions(OptionsResolver $resolver) }); } - /** - * {@inheritdoc} - */ public function getParent(): ?string { return ChoiceType::class; diff --git a/Tests/Fixtures/ChoiceTypeExtension.php b/Tests/Fixtures/ChoiceTypeExtension.php index 34242c5b6..1751531d1 100644 --- a/Tests/Fixtures/ChoiceTypeExtension.php +++ b/Tests/Fixtures/ChoiceTypeExtension.php @@ -18,9 +18,6 @@ class ChoiceTypeExtension extends AbstractTypeExtension { public static $extendedType; - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefault('choices', [ @@ -29,9 +26,6 @@ public function configureOptions(OptionsResolver $resolver) ]); } - /** - * {@inheritdoc} - */ public static function getExtendedTypes(): iterable { return [self::$extendedType]; diff --git a/Tests/Fixtures/LazyChoiceTypeExtension.php b/Tests/Fixtures/LazyChoiceTypeExtension.php index 20fe789cd..b04eb6172 100644 --- a/Tests/Fixtures/LazyChoiceTypeExtension.php +++ b/Tests/Fixtures/LazyChoiceTypeExtension.php @@ -19,9 +19,6 @@ class LazyChoiceTypeExtension extends AbstractTypeExtension { public static $extendedType; - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefault('choice_loader', ChoiceList::lazy($this, function () { @@ -32,9 +29,6 @@ public function configureOptions(OptionsResolver $resolver) })); } - /** - * {@inheritdoc} - */ public static function getExtendedTypes(): iterable { return [self::$extendedType]; diff --git a/Util/OrderedHashMapIterator.php b/Util/OrderedHashMapIterator.php index b3cdf5e57..e1335fefa 100644 --- a/Util/OrderedHashMapIterator.php +++ b/Util/OrderedHashMapIterator.php @@ -78,17 +78,11 @@ public function __destruct() array_splice($this->managedCursors, $this->cursorId, 1); } - /** - * {@inheritdoc} - */ public function current(): mixed { return $this->current; } - /** - * {@inheritdoc} - */ public function next(): void { ++$this->cursor; @@ -102,9 +96,6 @@ public function next(): void } } - /** - * {@inheritdoc} - */ public function key(): mixed { if (null === $this->key) { @@ -114,17 +105,11 @@ public function key(): mixed return $this->key; } - /** - * {@inheritdoc} - */ public function valid(): bool { return null !== $this->key; } - /** - * {@inheritdoc} - */ public function rewind(): void { $this->cursor = 0;