@@ -85,7 +85,7 @@ |
||
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | return $this->repository->findAll(); |
| 88 | - }, |
|
| 88 | + }, |
|
| 89 | 89 | 'choice_value' => 'code', |
| 90 | 90 | 'choice_label' => 'name', |
| 91 | 91 | 'choice_translation_domain' => false, |
@@ -31,28 +31,28 @@ |
||
| 31 | 31 | 'label' => 'sylius.form.credit_card.type', |
| 32 | 32 | 'expanded' => true, |
| 33 | 33 | 'choices_as_values' => true, |
| 34 | - ]) |
|
| 35 | - ->add('cardholderName', TextType::class, [ |
|
| 34 | + ]) |
|
| 35 | + ->add('cardholderName', TextType::class, [ |
|
| 36 | 36 | 'label' => 'sylius.form.credit_card.cardholder_name', |
| 37 | - ]) |
|
| 38 | - ->add('number', TextType::class, [ |
|
| 39 | - 'label' => 'sylius.form.credit_card.number', |
|
| 40 | - ]) |
|
| 41 | - ->add('securityCode', TextType::class, [ |
|
| 42 | - 'label' => 'sylius.form.credit_card.security_code', |
|
| 43 | - ]) |
|
| 44 | - ->add('expiryMonth', ChoiceType::class, [ |
|
| 45 | - 'choices' => $this->getMonthChoices(), |
|
| 46 | - 'choice_translation_domain' => false, |
|
| 47 | - 'label' => 'sylius.form.credit_card.expiry_month', |
|
| 48 | - 'choices_as_values' => true, |
|
| 49 | - ]) |
|
| 50 | - ->add('expiryYear', ChoiceType::class, [ |
|
| 51 | - 'choices' => $this->getViableYears(), |
|
| 52 | - 'choice_translation_domain' => false, |
|
| 53 | - 'label' => 'sylius.form.credit_card.expiry_year', |
|
| 54 | - 'choices_as_values' => true, |
|
| 55 | - ]) |
|
| 37 | + ]) |
|
| 38 | + ->add('number', TextType::class, [ |
|
| 39 | + 'label' => 'sylius.form.credit_card.number', |
|
| 40 | + ]) |
|
| 41 | + ->add('securityCode', TextType::class, [ |
|
| 42 | + 'label' => 'sylius.form.credit_card.security_code', |
|
| 43 | + ]) |
|
| 44 | + ->add('expiryMonth', ChoiceType::class, [ |
|
| 45 | + 'choices' => $this->getMonthChoices(), |
|
| 46 | + 'choice_translation_domain' => false, |
|
| 47 | + 'label' => 'sylius.form.credit_card.expiry_month', |
|
| 48 | + 'choices_as_values' => true, |
|
| 49 | + ]) |
|
| 50 | + ->add('expiryYear', ChoiceType::class, [ |
|
| 51 | + 'choices' => $this->getViableYears(), |
|
| 52 | + 'choice_translation_domain' => false, |
|
| 53 | + 'label' => 'sylius.form.credit_card.expiry_year', |
|
| 54 | + 'choices_as_values' => true, |
|
| 55 | + ]) |
|
| 56 | 56 | ; |
| 57 | 57 | } |
| 58 | 58 | |
@@ -100,25 +100,25 @@ |
||
| 100 | 100 | /** |
| 101 | 101 | * {@inheritdoc} |
| 102 | 102 | */ |
| 103 | - public function isNextStepButtonUnavailable() |
|
| 104 | - { |
|
| 105 | - return $this->getElement('next_step')->hasClass('disabled'); |
|
| 106 | - } |
|
| 103 | + public function isNextStepButtonUnavailable() |
|
| 104 | + { |
|
| 105 | + return $this->getElement('next_step')->hasClass('disabled'); |
|
| 106 | + } |
|
| 107 | 107 | |
| 108 | 108 | /** |
| 109 | 109 | * {@inheritdoc} |
| 110 | 110 | */ |
| 111 | - public function getPaymentMethods() |
|
| 112 | - { |
|
| 113 | - $inputs = $this->getSession()->getPage()->findAll('css', '#payment_methods .item .content label'); |
|
| 111 | + public function getPaymentMethods() |
|
| 112 | + { |
|
| 113 | + $inputs = $this->getSession()->getPage()->findAll('css', '#payment_methods .item .content label'); |
|
| 114 | 114 | |
| 115 | - $paymentMethods = []; |
|
| 116 | - foreach ($inputs as $input) { |
|
| 117 | - $paymentMethods[] = trim($input->getText()); |
|
| 118 | - } |
|
| 115 | + $paymentMethods = []; |
|
| 116 | + foreach ($inputs as $input) { |
|
| 117 | + $paymentMethods[] = trim($input->getText()); |
|
| 118 | + } |
|
| 119 | 119 | |
| 120 | - return $paymentMethods; |
|
| 121 | - } |
|
| 120 | + return $paymentMethods; |
|
| 121 | + } |
|
| 122 | 122 | |
| 123 | 123 | /** |
| 124 | 124 | * {@inheritdoc} |