<commit_before><?php
/**
 * UMI.Framework (http://umi-framework.ru/)
 *
 * @link      http://github.com/Umisoft/framework for the canonical source repository
 * @copyright Copyright (c) 2007-2013 Umisoft ltd. (http://umisoft.ru/)
 * @license   http://umi-framework.ru/license/bsd-3 BSD-3 License
 */

namespace umi\form\element\html5;

use umi\form\element\BaseFormElement;
use umi\form\element\IFormInput;
use umi\validation\IValidatorFactory;

/**
 * HTML5 элемент формы - Email (email).
 * @example <input type="email" />
 */
class Email extends BaseFormElement implements IFormInput
{
    /**
     * Тип элемента.
     */
    const TYPE_NAME = 'email';

    /**
     * {@inheritdoc}
     */
    public function getValidatorsConfig()
    {
        $config = parent::getValidatorsConfig();
        $config['validators'][IValidatorFactory::TYPE_EMAIL] = [];

        return $config;
    }

    /**
     * {@inheritdoc}
     */
    public function getInputType()
    {
        return self::TYPE_NAME;
    }
}<commit_msg>[form] fix email field<commit_after><?php
/**
 * UMI.Framework (http://umi-framework.ru/)
 *
 * @link      http://github.com/Umisoft/framework for the canonical source repository
 * @copyright Copyright (c) 2007-2013 Umisoft ltd. (http://umisoft.ru/)
 * @license   http://umi-framework.ru/license/bsd-3 BSD-3 License
 */

namespace umi\form\element\html5;

use umi\form\element\BaseFormElement;
use umi\form\element\IFormInput;
use umi\validation\IValidatorFactory;

/**
 * HTML5 элемент формы - Email (email).
 * @example <input type="email" />
 */
class Email extends BaseFormElement implements IFormInput
{
    /**
     * Тип элемента.
     */
    const TYPE_NAME = 'email';

    /**
     * {@inheritdoc}
     */
    public function getValidatorsConfig()
    {
        $config = parent::getValidatorsConfig();
        $config[IValidatorFactory::TYPE_EMAIL] = [];

        return $config;
    }

    /**
     * {@inheritdoc}
     */
    public function getInputType()
    {
        return self::TYPE_NAME;
    }
}
{'fraction_non_alphanumeric': 0.14643734643734643, 'fraction_numerical': 0.011793611793611793, 'mean_word_length': 2.77037037037037, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '3923091', 'n_tokens_mistral': 669, 'n_tokens_neox': 651, 'n_words': 129}