<commit_before><?php

namespace Czende\GoPayPlugin\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints\NotBlank;

final class GoPayGatewayConfigurationType extends AbstractType {
    
    /**
     * {@inheritdoc}
     */
    public function buildForm(FormBuilderInterface $builder, array $options) {
        $builder
            ->add('goid', TextType::class, [
                'label' => 'czende.gopay_plugin.goid',
                'constraints' => [
                    new NotBlank([
                        'message' => 'czende.gopay_plugin.gateway_configuration.goid.not_blank',
                        'groups' => ['sylius'],
                    ])
                ],
            ])
            ->add('clientId', TextType::class, [
                'label' => 'czende.gopay_plugin.clientId',
                'constraints' => [
                    new NotBlank([
                        'message' => 'czende.gopay_plugin.gateway_configuration.clientId.not_blank',
                        'groups' => ['sylius'],
                    ])
                ],
            ])
            ->add('clientSecret', TextType::class, [
                'label' => 'czende.gopay_plugin.clientSecret',
                'constraints' => [
                    new NotBlank([
                        'message' => 'czende.gopay_plugin.gateway_configuration.clientSecret.not_blank',
                        'groups' => ['sylius'],
                    ])
                ],
            ])
            ->add('environment', ChoiceType::class, [
                'choices' => [
                    'czende.gopay_plugin.production' => 'production',
                    'czende.gopay_plugin.sandbox' => 'sandbox',
                ],
                'label' => 'czende.gopay_plugin.environment',
            ]);
    }
}<commit_msg>Moved sandbox to the first place choice<commit_after><?php

namespace Czende\GoPayPlugin\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints\NotBlank;

final class GoPayGatewayConfigurationType extends AbstractType {
    
    /**
     * {@inheritdoc}
     */
    public function buildForm(FormBuilderInterface $builder, array $options) {
        $builder
            ->add('goid', TextType::class, [
                'label' => 'czende.gopay_plugin.goid',
                'constraints' => [
                    new NotBlank([
                        'message' => 'czende.gopay_plugin.gateway_configuration.goid.not_blank',
                        'groups' => ['sylius'],
                    ])
                ],
            ])
            ->add('clientId', TextType::class, [
                'label' => 'czende.gopay_plugin.clientId',
                'constraints' => [
                    new NotBlank([
                        'message' => 'czende.gopay_plugin.gateway_configuration.clientId.not_blank',
                        'groups' => ['sylius'],
                    ])
                ],
            ])
            ->add('clientSecret', TextType::class, [
                'label' => 'czende.gopay_plugin.clientSecret',
                'constraints' => [
                    new NotBlank([
                        'message' => 'czende.gopay_plugin.gateway_configuration.clientSecret.not_blank',
                        'groups' => ['sylius'],
                    ])
                ],
            ])
            ->add('environment', ChoiceType::class, [
                'choices' => [
                    'czende.gopay_plugin.sandbox' => 'sandbox',
                    'czende.gopay_plugin.production' => 'production',
                ],
                'label' => 'czende.gopay_plugin.environment',
            ]);
    }
}
{'fraction_non_alphanumeric': 0.12728169708929452, 'fraction_numerical': 0.0, 'mean_word_length': 1.542319749216301, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 43, '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': '3947005', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1065, 'n_words': 142}