@@ -151,7 +151,7 @@ |
||
151 | 151 | */ |
152 | 152 | public function theTypeFieldShouldBeDisabled() |
153 | 153 | { |
154 | - $currentPage = $this->currentPageResolver->getCurrentPageWithForm([$this->createPage, $this->updatePage]); |
|
154 | + $currentPage = $this->currentPageResolver->getCurrentPageWithForm([$this->createPage, $this->updatePage]); |
|
155 | 155 | |
156 | 156 | Assert::true( |
157 | 157 | $currentPage->isTypeDisabled(), |
@@ -82,7 +82,7 @@ |
||
82 | 82 | $this->summaryPage->open(); |
83 | 83 | |
84 | 84 | Assert::true( |
85 | - $this->summaryPage->isEmpty(), |
|
85 | + $this->summaryPage->isEmpty(), |
|
86 | 86 | 'There should appear information about empty cart, but it does not.' |
87 | 87 | ); |
88 | 88 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | 'label' => false, |
49 | 49 | 'button_add_label' => 'sylius.form.menu.add_menu_node', |
50 | 50 | 'cascade_validation' => true, |
51 | - ]) |
|
51 | + ]) |
|
52 | 52 | ->add('uri', null, [ |
53 | 53 | 'required' => false, |
54 | 54 | 'label' => 'sylius.form.menu.uri', |
@@ -64,5 +64,5 @@ |
||
64 | 64 | * |
65 | 65 | * @return bool |
66 | 66 | */ |
67 | - public function hasAttributeWithValue($attributeName, $AttributeValue); |
|
67 | + public function hasAttributeWithValue($attributeName, $AttributeValue); |
|
68 | 68 | } |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | */ |
133 | 133 | public function hasItemNamed($name) |
134 | 134 | { |
135 | - return $this->hasItemWith($name, '.sylius-product-name'); |
|
135 | + return $this->hasItemWith($name, '.sylius-product-name'); |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | /** |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | public function hasItemWithVariantNamed($variantName) |
142 | 142 | { |
143 | - return $this->hasItemWith($variantName, '.sylius-product-variant-name'); |
|
143 | + return $this->hasItemWith($variantName, '.sylius-product-variant-name'); |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
@@ -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 |
@@ -21,8 +21,8 @@ |
||
21 | 21 | class PaymentStepType extends AbstractType |
22 | 22 | { |
23 | 23 | /** |
24 | - * @var string[] |
|
25 | - */ |
|
24 | + * @var string[] |
|
25 | + */ |
|
26 | 26 | private $validationGroups; |
27 | 27 | |
28 | 28 | /** |
@@ -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 | /** |
@@ -44,8 +44,8 @@ |
||
44 | 44 | public function getFunctions() |
45 | 45 | { |
46 | 46 | return [ |
47 | - new \Twig_SimpleFunction('sylius_inventory_is_available', [$this, 'isStockAvailable']), |
|
48 | - new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this, 'isStockSufficient']), |
|
47 | + new \Twig_SimpleFunction('sylius_inventory_is_available', [$this, 'isStockAvailable']), |
|
48 | + new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this, 'isStockSufficient']), |
|
49 | 49 | ]; |
50 | 50 | } |
51 | 51 |