@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | public function storeAllowsPaying($paymentMethodName, $position = null) |
90 | 90 | { |
91 | - $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method', true, $position); |
|
91 | + $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method', true, $position); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | */ |
141 | 141 | public function theStoreHasPaymentMethodNotAssignedToAnyChannel($paymentMethodName) |
142 | 142 | { |
143 | - $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method', false); |
|
143 | + $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method', false); |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | /** |
@@ -39,6 +39,7 @@ discard block |
||
39 | 39 | * Sets all option values. |
40 | 40 | * |
41 | 41 | * @param Collection $optionValues |
42 | + * @return void |
|
42 | 43 | */ |
43 | 44 | public function setValues(Collection $optionValues); |
44 | 45 | |
@@ -46,6 +47,7 @@ discard block |
||
46 | 47 | * Adds option value. |
47 | 48 | * |
48 | 49 | * @param OptionValueInterface $optionValue |
50 | + * @return void |
|
49 | 51 | */ |
50 | 52 | public function addValue(OptionValueInterface $optionValue); |
51 | 53 | |
@@ -53,6 +55,7 @@ discard block |
||
53 | 55 | * Removes option value. |
54 | 56 | * |
55 | 57 | * @param OptionValueInterface $optionValue |
58 | + * @return void |
|
56 | 59 | */ |
57 | 60 | public function removeValue(OptionValueInterface $optionValue); |
58 | 61 |
@@ -27,6 +27,7 @@ |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param string $value |
30 | + * @return void |
|
30 | 31 | */ |
31 | 32 | public function setValue($value); |
32 | 33 | } |
@@ -39,6 +39,7 @@ discard block |
||
39 | 39 | * Sets all option values. |
40 | 40 | * |
41 | 41 | * @param Collection $optionValues |
42 | + * @return void |
|
42 | 43 | */ |
43 | 44 | public function setValues(Collection $optionValues); |
44 | 45 | |
@@ -46,6 +47,7 @@ discard block |
||
46 | 47 | * Adds option value. |
47 | 48 | * |
48 | 49 | * @param OptionValueInterface $optionValue |
50 | + * @return void |
|
49 | 51 | */ |
50 | 52 | public function addValue(OptionValueInterface $optionValue); |
51 | 53 | |
@@ -53,6 +55,7 @@ discard block |
||
53 | 55 | * Removes option value. |
54 | 56 | * |
55 | 57 | * @param OptionValueInterface $optionValue |
58 | + * @return void |
|
56 | 59 | */ |
57 | 60 | public function removeValue(OptionValueInterface $optionValue); |
58 | 61 |
@@ -116,7 +116,7 @@ |
||
116 | 116 | */ |
117 | 117 | public function iChangeRatioTo($ratio) |
118 | 118 | { |
119 | - $this->updatePage->changeRatio((float)$ratio); |
|
119 | + $this->updatePage->changeRatio((float) $ratio); |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | /** |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
96 | - * @param $code |
|
96 | + * @param string $code |
|
97 | 97 | * |
98 | 98 | * @return null|string |
99 | 99 | */ |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
106 | - * @return array |
|
106 | + * @return string[] |
|
107 | 107 | */ |
108 | 108 | private function getAvailableCountries() |
109 | 109 | { |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | public function theStoreHasAndShippingCategory($firstShippingCategoryName, $secondShippingCategoryName = null) |
70 | 70 | { |
71 | 71 | $this->createShippingCategory($firstShippingCategoryName); |
72 | - (null === $secondShippingCategoryName)? : $this->createShippingCategory($secondShippingCategoryName); |
|
72 | + (null === $secondShippingCategoryName) ?: $this->createShippingCategory($secondShippingCategoryName); |
|
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | private function createShippingCategory($shippingCategoryName) |
79 | 79 | { |
80 | 80 | /** @var ShippingCategoryInterface $shippingCategory */ |
81 | - $shippingCategory = $this->shippingCategoryFactory->createNew(); |
|
81 | + $shippingCategory = $this->shippingCategoryFactory->createNew(); |
|
82 | 82 | $shippingCategory->setName($shippingCategoryName); |
83 | 83 | $shippingCategory->setCode(StringInflector::nameToCode($shippingCategoryName)); |
84 | 84 |
@@ -11,7 +11,6 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\LocaleBundle\DependencyInjection; |
13 | 13 | |
14 | -use Sylius\Bundle\LocaleBundle\Form\Type\LocaleChoiceType; |
|
15 | 14 | use Sylius\Bundle\LocaleBundle\Form\Type\LocaleType; |
16 | 15 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
17 | 16 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
@@ -13,8 +13,8 @@ |
||
13 | 13 | |
14 | 14 | use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; |
15 | 15 | use Symfony\Component\Form\Extension\Core\Type\ChoiceType; |
16 | -use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
|
17 | 16 | use Symfony\Component\Form\Extension\Core\Type\TextType; |
17 | +use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
|
18 | 18 | use Symfony\Component\Form\FormBuilderInterface; |
19 | 19 | use Symfony\Component\OptionsResolver\OptionsResolver; |
20 | 20 | use Symfony\Component\Validator\Constraints\Valid; |