<commit_before><?php

namespace Ilios\AuthenticationBundle\Voter;

use Ilios\CoreBundle\Entity\AamcMethodInterface;
use Symfony\Component\Security\Core\User\UserInterface;

/**
 * Class AamcMethodVoter
 * @package Ilios\AuthenticationBundle\Voter
 */
class AamcMethodVoter extends AbstractVoter
{
    /**
     * {@inheritdoc}
     */
    protected function getSupportedClasses()
    {
        return array('Ilios\CoreBundle\Entity\AamcMethodInterface');
    }

    /**
     * @param string $attribute
     * @param AamcMethodInterface $aamcMethod
     * @param UserInterface $user
     * @return bool
     */
    protected function isGranted($attribute, $aamcMethod, $user = null)<commit_msg>use the correct user interface.<commit_after><?php

namespace Ilios\AuthenticationBundle\Voter;

use Ilios\CoreBundle\Entity\AamcMethodInterface;
use Ilios\CoreBundle\Entity\UserInterface;

/**
 * Class AamcMethodVoter
 * @package Ilios\AuthenticationBundle\Voter
 */
class AamcMethodVoter extends AbstractVoter
{
    /**
     * {@inheritdoc}
     */
    protected function getSupportedClasses()
    {
        return array('Ilios\CoreBundle\Entity\AamcMethodInterface');
    }

    /**
     * @param string $attribute
     * @param AamcMethodInterface $aamcMethod
     * @param UserInterface $user
     * @return bool
     */
    protected function isGranted($attribute, $aamcMethod, $user = null)
{'fraction_non_alphanumeric': 0.10583153347732181, 'fraction_numerical': 0.0, 'mean_word_length': 3.6026490066225167, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2765290', 'n_tokens_mistral': 425, 'n_tokens_neox': 421, 'n_words': 79}