@@ -30,24 +30,24 @@ |
||
| 30 | 30 | ->add('type', 'choice', [ |
| 31 | 31 | 'label' => 'sylius.form.credit_card.type', |
| 32 | 32 | 'expanded' => true, |
| 33 | - ]) |
|
| 34 | - ->add('cardholderName', 'text', [ |
|
| 33 | + ]) |
|
| 34 | + ->add('cardholderName', 'text', [ |
|
| 35 | 35 | 'label' => 'sylius.form.credit_card.cardholder_name', |
| 36 | - ]) |
|
| 37 | - ->add('number', 'text', [ |
|
| 38 | - 'label' => 'sylius.form.credit_card.number', |
|
| 39 | - ]) |
|
| 40 | - ->add('securityCode', 'text', [ |
|
| 41 | - 'label' => 'sylius.form.credit_card.security_code', |
|
| 42 | - ]) |
|
| 43 | - ->add('expiryMonth', 'choice', [ |
|
| 44 | - 'label' => 'sylius.form.credit_card.expiry_month', |
|
| 45 | - 'choices' => $this->getMonthChoices(), |
|
| 46 | - ]) |
|
| 47 | - ->add('expiryYear', 'choice', [ |
|
| 48 | - 'label' => 'sylius.form.credit_card.expiry_year', |
|
| 49 | - 'choices' => $this->getViableYears(), |
|
| 50 | - ]) |
|
| 36 | + ]) |
|
| 37 | + ->add('number', 'text', [ |
|
| 38 | + 'label' => 'sylius.form.credit_card.number', |
|
| 39 | + ]) |
|
| 40 | + ->add('securityCode', 'text', [ |
|
| 41 | + 'label' => 'sylius.form.credit_card.security_code', |
|
| 42 | + ]) |
|
| 43 | + ->add('expiryMonth', 'choice', [ |
|
| 44 | + 'label' => 'sylius.form.credit_card.expiry_month', |
|
| 45 | + 'choices' => $this->getMonthChoices(), |
|
| 46 | + ]) |
|
| 47 | + ->add('expiryYear', 'choice', [ |
|
| 48 | + 'label' => 'sylius.form.credit_card.expiry_year', |
|
| 49 | + 'choices' => $this->getViableYears(), |
|
| 50 | + ]) |
|
| 51 | 51 | ; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | public function currencies_can_be_set() |
| 38 | 38 | { |
| 39 | - $this->assertConfigurationIsValid([['currencies' => ['EUR' => true, 'USD' => false, 'PLN' => true]]], 'currencies'); |
|
| 39 | + $this->assertConfigurationIsValid([['currencies' => ['EUR' => true, 'USD' => false, 'PLN' => true]]], 'currencies'); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
@@ -52,10 +52,10 @@ |
||
| 52 | 52 | /** |
| 53 | 53 | * @return string |
| 54 | 54 | */ |
| 55 | - public function getRefreshToken(); |
|
| 55 | + public function getRefreshToken(); |
|
| 56 | 56 | |
| 57 | - /** |
|
| 58 | - * @param string $refreshToken |
|
| 59 | - */ |
|
| 60 | - public function setRefreshToken($refreshToken); |
|
| 57 | + /** |
|
| 58 | + * @param string $refreshToken |
|
| 59 | + */ |
|
| 60 | + public function setRefreshToken($refreshToken); |
|
| 61 | 61 | } |
@@ -52,8 +52,8 @@ |
||
| 52 | 52 | StateMachineInterface $secondOrderStateMachine |
| 53 | 53 | ) { |
| 54 | 54 | $orderRepository->findOrdersUnpaidSince(Argument::type(\DateTime::class))->willReturn([ |
| 55 | - $firstOrder, |
|
| 56 | - $secondOrder |
|
| 55 | + $firstOrder, |
|
| 56 | + $secondOrder |
|
| 57 | 57 | ]); |
| 58 | 58 | |
| 59 | 59 | $stateMachineFactory->get($firstOrder, 'sylius_order')->willReturn($firstOrderStateMachine); |
@@ -234,7 +234,7 @@ |
||
| 234 | 234 | */ |
| 235 | 235 | public function iShouldBeNotifiedThatThisProductDoesNotHaveSufficientStock(ProductInterface $product) |
| 236 | 236 | { |
| 237 | - $this->showPage->waitForValidationErrors(3); |
|
| 237 | + $this->showPage->waitForValidationErrors(3); |
|
| 238 | 238 | |
| 239 | 239 | Assert::true( |
| 240 | 240 | $this->showPage->hasProductOutOfStockValidationMessage($product), |
@@ -1261,7 +1261,7 @@ |
||
| 1261 | 1261 | { |
| 1262 | 1262 | Assert::true( |
| 1263 | 1263 | $this->selectPaymentPage->isNextStepButtonUnavailable(), |
| 1264 | - 'The "next step" button should be disabled.' |
|
| 1264 | + 'The "next step" button should be disabled.' |
|
| 1265 | 1265 | ); |
| 1266 | 1266 | } |
| 1267 | 1267 | |
@@ -100,10 +100,10 @@ |
||
| 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} |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | */ |
| 157 | 157 | public function countByCustomer(CustomerInterface $customer) |
| 158 | 158 | { |
| 159 | - return (int) $this->createByCustomerQueryBuilder($customer) |
|
| 159 | + return (int) $this->createByCustomerQueryBuilder($customer) |
|
| 160 | 160 | ->select('count(o.id)') |
| 161 | 161 | ->getQuery() |
| 162 | 162 | ->getSingleScalarResult() |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | public function getFunctions() |
| 39 | 39 | { |
| 40 | 40 | return [ |
| 41 | - new \Twig_SimpleFunction('sylius_cart_get', [$this, 'getCurrentCart']), |
|
| 41 | + new \Twig_SimpleFunction('sylius_cart_get', [$this, 'getCurrentCart']), |
|
| 42 | 42 | ]; |
| 43 | 43 | } |
| 44 | 44 | |