Skip to content

Commit

Permalink
Merge pull request #100 from dmaicher/php_cs_fixer
Browse files Browse the repository at this point in the history
run php cs fixer
  • Loading branch information
HeahDude authored Jul 5, 2023
2 parents 153e71b + 53873ea commit 5f2cffd
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 44 deletions.
6 changes: 0 additions & 6 deletions src/CacheWarmer/SerializerCacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -55,9 +52,6 @@ public function warmUp($cacheDir): array
return [];
}

/**
* {@inheritdoc}
*/
public function isOptional(): bool
{
return false;
Expand Down
3 changes: 0 additions & 3 deletions src/DependencyInjection/Compiler/HTMLPurifierPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
3 changes: 0 additions & 3 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

class Configuration implements ConfigurationInterface
{
/**
* {@inheritdoc}
*/
public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('exercise_html_purifier');
Expand Down
3 changes: 0 additions & 3 deletions src/DependencyInjection/ExerciseHTMLPurifierExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
3 changes: 0 additions & 3 deletions src/ExerciseHTMLPurifierBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

class ExerciseHTMLPurifierBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function build(ContainerBuilder $container): void
{
$container->addCompilerPass(new HTMLPurifierPass());
Expand Down
3 changes: 0 additions & 3 deletions src/Form/Listener/HTMLPurifierListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ public function purifySubmittedData(FormEvent $event): void
$event->setData($this->getPurifier()->purify($submittedData));
}

/**
* {@inheritdoc}
*/
public static function getSubscribedEvents(): array
{
return [
Expand Down
9 changes: 0 additions & 9 deletions src/Form/TypeExtension/HTMLPurifierTextTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -58,9 +52,6 @@ public function configureOptions(OptionsResolver $resolver): void
;
}

/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options): void
{
if ($options['purify_html']) {
Expand Down
6 changes: 0 additions & 6 deletions src/HTMLPurifiersRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 0 additions & 3 deletions src/Twig/HTMLPurifierExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@

class HTMLPurifierExtension extends AbstractExtension
{
/**
* {@inheritdoc}
*/
public function getFilters(): array
{
return [
Expand Down
5 changes: 0 additions & 5 deletions tests/Form/Listener/HTMLPurifierListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ public function testPurifyTrimEmptyValues(): void

/**
* @dataProvider provideInvalidInput
*
* @param mixed $input
*/
public function testPurifyDoNothingForEmptyOrNonScalarData($input): void
{
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5f2cffd

Please sign in to comment.