Skip to content

Commit

Permalink
[CS] Remove @inheritdoc PHPDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx committed Aug 25, 2022
1 parent a10bc23 commit 7dddf80
Show file tree
Hide file tree
Showing 109 changed files with 0 additions and 1,349 deletions.
15 changes: 0 additions & 15 deletions AbstractExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ abstract class AbstractExtension implements FormExtensionInterface
*/
private bool $typeGuesserLoaded = false;

/**
* {@inheritdoc}
*/
public function getType(string $name): FormTypeInterface
{
if (!isset($this->types)) {
Expand All @@ -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)) {
Expand All @@ -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)) {
Expand All @@ -84,9 +75,6 @@ public function getTypeExtensions(string $name): array
?? [];
}

/**
* {@inheritdoc}
*/
public function hasTypeExtensions(string $name): bool
{
if (!isset($this->typeExtensions)) {
Expand All @@ -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) {
Expand Down
12 changes: 0 additions & 12 deletions AbstractRendererEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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];
Expand All @@ -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];
Expand All @@ -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];
Expand Down
18 changes: 0 additions & 18 deletions AbstractType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
12 changes: 0 additions & 12 deletions AbstractTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}
Expand Down
24 changes: 0 additions & 24 deletions Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -95,9 +92,6 @@ public function setParent(FormInterface $parent = null): static
return $this;
}

/**
* {@inheritdoc}
*/
public function getParent(): ?FormInterface
{
return $this->parent;
Expand Down Expand Up @@ -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, []);
Expand Down Expand Up @@ -266,9 +254,6 @@ public function isRequired(): bool
return false;
}

/**
* {@inheritdoc}
*/
public function isDisabled(): bool
{
if ($this->parent?->isDisabled()) {
Expand Down Expand Up @@ -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) {
Expand Down
9 changes: 0 additions & 9 deletions ButtonBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,19 +173,13 @@ 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;

return $this;
}

/**
* {@inheritdoc}
*/
public function setAttributes(array $attributes): static
{
$this->attributes = $attributes;
Expand Down Expand Up @@ -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;
Expand Down
6 changes: 0 additions & 6 deletions CallbackTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
18 changes: 0 additions & 18 deletions ChoiceList/ArrayChoiceList.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand All @@ -138,9 +123,6 @@ public function getChoicesForValues(array $values): array
return $choices;
}

/**
* {@inheritdoc}
*/
public function getValuesForChoices(array $choices): array
{
$values = [];
Expand Down
9 changes: 0 additions & 9 deletions ChoiceList/Factory/Cache/ChoiceLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
9 changes: 0 additions & 9 deletions ChoiceList/Factory/CachingFactoryDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
Loading

0 comments on commit 7dddf80

Please sign in to comment.