diff --git a/src/CacheWarmer/SerializerCacheWarmer.php b/src/CacheWarmer/SerializerCacheWarmer.php index bfa42f13..0f9e3d66 100644 --- a/src/CacheWarmer/SerializerCacheWarmer.php +++ b/src/CacheWarmer/SerializerCacheWarmer.php @@ -37,9 +37,6 @@ public function __construct(array $paths, array $profiles, HTMLPurifiersRegistry $this->filesystem = $filesystem; } - /** - * {@inheritdoc} - */ public function warmUp($cacheDir): array { foreach ($this->paths as $path) { @@ -55,9 +52,6 @@ public function warmUp($cacheDir): array return []; } - /** - * {@inheritdoc} - */ public function isOptional(): bool { return false; diff --git a/src/DependencyInjection/Compiler/HTMLPurifierPass.php b/src/DependencyInjection/Compiler/HTMLPurifierPass.php index 16ed073a..1008648a 100644 --- a/src/DependencyInjection/Compiler/HTMLPurifierPass.php +++ b/src/DependencyInjection/Compiler/HTMLPurifierPass.php @@ -14,9 +14,6 @@ class HTMLPurifierPass implements CompilerPassInterface { public const PURIFIER_TAG = 'exercise.html_purifier'; - /** - * {@inheritdoc} - */ public function process(ContainerBuilder $container): void { if (!$container->hasAlias(HTMLPurifiersRegistryInterface::class)) { diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index f79205e4..ec18707b 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -8,9 +8,6 @@ class Configuration implements ConfigurationInterface { - /** - * {@inheritdoc} - */ public function getConfigTreeBuilder(): TreeBuilder { $treeBuilder = new TreeBuilder('exercise_html_purifier'); diff --git a/src/DependencyInjection/ExerciseHTMLPurifierExtension.php b/src/DependencyInjection/ExerciseHTMLPurifierExtension.php index f6a5686f..fc55d169 100644 --- a/src/DependencyInjection/ExerciseHTMLPurifierExtension.php +++ b/src/DependencyInjection/ExerciseHTMLPurifierExtension.php @@ -14,9 +14,6 @@ class ExerciseHTMLPurifierExtension extends Extension { - /** - * {@inheritdoc} - */ public function load(array $configs, ContainerBuilder $container): void { $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); diff --git a/src/ExerciseHTMLPurifierBundle.php b/src/ExerciseHTMLPurifierBundle.php index f22d1b0b..395a5196 100644 --- a/src/ExerciseHTMLPurifierBundle.php +++ b/src/ExerciseHTMLPurifierBundle.php @@ -8,9 +8,6 @@ class ExerciseHTMLPurifierBundle extends Bundle { - /** - * {@inheritdoc} - */ public function build(ContainerBuilder $container): void { $container->addCompilerPass(new HTMLPurifierPass()); diff --git a/src/Form/Listener/HTMLPurifierListener.php b/src/Form/Listener/HTMLPurifierListener.php index dfbf7420..2377acf7 100644 --- a/src/Form/Listener/HTMLPurifierListener.php +++ b/src/Form/Listener/HTMLPurifierListener.php @@ -36,9 +36,6 @@ public function purifySubmittedData(FormEvent $event): void $event->setData($this->getPurifier()->purify($submittedData)); } - /** - * {@inheritdoc} - */ public static function getSubscribedEvents(): array { return [ diff --git a/src/Form/TypeExtension/HTMLPurifierTextTypeExtension.php b/src/Form/TypeExtension/HTMLPurifierTextTypeExtension.php index 90815dd7..4af73ec1 100644 --- a/src/Form/TypeExtension/HTMLPurifierTextTypeExtension.php +++ b/src/Form/TypeExtension/HTMLPurifierTextTypeExtension.php @@ -20,17 +20,11 @@ public function __construct(HTMLPurifiersRegistryInterface $registry) $this->purifiersRegistry = $registry; } - /** - * {@inheritdoc} - */ public static function getExtendedTypes(): iterable { return [TextType::class]; } - /** - * {@inheritdoc} - */ public function configureOptions(OptionsResolver $resolver): void { $resolver @@ -58,9 +52,6 @@ public function configureOptions(OptionsResolver $resolver): void ; } - /** - * {@inheritdoc} - */ public function buildForm(FormBuilderInterface $builder, array $options): void { if ($options['purify_html']) { diff --git a/src/HTMLPurifiersRegistry.php b/src/HTMLPurifiersRegistry.php index ec8f39c8..9e4cef1e 100644 --- a/src/HTMLPurifiersRegistry.php +++ b/src/HTMLPurifiersRegistry.php @@ -13,17 +13,11 @@ public function __construct(ContainerInterface $purifiersLocator) $this->purifiersLocator = $purifiersLocator; } - /** - * {@inheritdoc} - */ public function has(string $profile): bool { return $this->purifiersLocator->has($profile); } - /** - * {@inheritdoc} - */ public function get(string $profile): \HTMLPurifier { return $this->purifiersLocator->get($profile); diff --git a/src/Twig/HTMLPurifierExtension.php b/src/Twig/HTMLPurifierExtension.php index aceafb77..2c922d88 100644 --- a/src/Twig/HTMLPurifierExtension.php +++ b/src/Twig/HTMLPurifierExtension.php @@ -7,9 +7,6 @@ class HTMLPurifierExtension extends AbstractExtension { - /** - * {@inheritdoc} - */ public function getFilters(): array { return [ diff --git a/tests/Form/Listener/HTMLPurifierListenerTest.php b/tests/Form/Listener/HTMLPurifierListenerTest.php index 04dc8240..bf5e73c6 100644 --- a/tests/Form/Listener/HTMLPurifierListenerTest.php +++ b/tests/Form/Listener/HTMLPurifierListenerTest.php @@ -69,8 +69,6 @@ public function testPurifyTrimEmptyValues(): void /** * @dataProvider provideInvalidInput - * - * @param mixed $input */ public function testPurifyDoNothingForEmptyOrNonScalarData($input): void { @@ -103,9 +101,6 @@ public function provideInvalidInput(): iterable yield [new \stdClass()]; } - /** - * @param mixed $data - */ private function getFormEvent($data): FormEvent { return new FormEvent($this->createMock(FormInterface::class), $data);