<commit_before><?php

declare(strict_types=1);

/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2014-2018 Spomky-Labs
 *
 * This software may be modified and distributed under the terms
 * of the MIT license.  See the LICENSE file for details.
 */

namespace OAuth2Framework\ServerBundle\Component\OpenIdConnect\Compiler;

use Jose\Component\KeyManagement\JKUFactory;
use OAuth2Framework\Component\OpenIdConnect\IdTokenBuilderFactory;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;

class JkuSupportForIdTokenBuilderCompilerPass implements CompilerPassInterface
{
    /**
     * {@inheritdoc}
     */
    public function process(ContainerBuilder $container)
    {
        if (!$container->hasDefinition(JKUFactory::class) || !$container->hasDefinition(IdTokenBuilderFactory::class)) {
            return;
        }

        dump ('Called !!!!!!!!!!!');
        $definition = $container->getDefinition(IdTokenBuilderFactory::class);
        $definition->addMethodCall('enableJkuSupport', [new Reference(JKUFactory::class)]);
    }
}<commit_msg>Apply fixes from StyleCI (#146)<commit_after><?php

declare(strict_types=1);

/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2014-2018 Spomky-Labs
 *
 * This software may be modified and distributed under the terms
 * of the MIT license.  See the LICENSE file for details.
 */

namespace OAuth2Framework\ServerBundle\Component\OpenIdConnect\Compiler;

use Jose\Component\KeyManagement\JKUFactory;
use OAuth2Framework\Component\OpenIdConnect\IdTokenBuilderFactory;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;

class JkuSupportForIdTokenBuilderCompilerPass implements CompilerPassInterface
{
    /**
     * {@inheritdoc}
     */
    public function process(ContainerBuilder $container)
    {
        if (!$container->hasDefinition(JKUFactory::class) || !$container->hasDefinition(IdTokenBuilderFactory::class)) {
            return;
        }

        dump('Called !!!!!!!!!!!');
        $definition = $container->getDefinition(IdTokenBuilderFactory::class);
        $definition->addMethodCall('enableJkuSupport', [new Reference(JKUFactory::class)]);
    }
}
{'fraction_non_alphanumeric': 0.11288292068820814, 'fraction_numerical': 0.01049097775912715, 'mean_word_length': 4.758454106280193, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1699751', 'n_tokens_mistral': 666, 'n_tokens_neox': 639, 'n_words': 127}