@@ -18,27 +18,38 @@ |
||
18 | 18 | */ |
19 | 19 | interface UpdatePageInterface extends BaseUpdatePageInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function enable(); |
25 | + |
|
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
22 | 29 | public function disable(); |
23 | 30 | |
24 | 31 | /** |
25 | 32 | * @param string $name |
26 | 33 | * @param string $languageCode |
34 | + * @return void |
|
27 | 35 | */ |
28 | 36 | public function nameIt($name, $languageCode); |
29 | 37 | |
30 | 38 | /** |
31 | 39 | * @param string $username |
40 | + * @return void |
|
32 | 41 | */ |
33 | 42 | public function setPaypalGatewayUsername($username); |
34 | 43 | |
35 | 44 | /** |
36 | 45 | * @param string $password |
46 | + * @return void |
|
37 | 47 | */ |
38 | 48 | public function setPaypalGatewayPassword($password); |
39 | 49 | |
40 | 50 | /** |
41 | 51 | * @param string $signature |
52 | + * @return void |
|
42 | 53 | */ |
43 | 54 | public function setPaypalGatewaySignature($signature); |
44 | 55 |
@@ -20,12 +20,14 @@ discard block |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param string $code |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function specifyCode($code); |
25 | 26 | |
26 | 27 | /** |
27 | 28 | * @param string $name |
28 | 29 | * @param string $language |
30 | + * @return void |
|
29 | 31 | */ |
30 | 32 | public function nameIt($name, $language); |
31 | 33 | |
@@ -36,6 +38,7 @@ discard block |
||
36 | 38 | |
37 | 39 | /** |
38 | 40 | * @param string $value |
41 | + * @return void |
|
39 | 42 | */ |
40 | 43 | public function addAttributeValue($value); |
41 | 44 | } |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use Sylius\Bundle\FixturesBundle\Fixture\AbstractFixture; |
15 | 15 | use Sylius\Component\Attribute\AttributeType\SelectAttributeType; |
16 | -use Sylius\Component\Attribute\AttributeType\TextAttributeType; |
|
17 | 16 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
18 | 17 | use Symfony\Component\OptionsResolver\OptionsResolver; |
19 | 18 |
@@ -17,7 +17,6 @@ |
||
17 | 17 | use Sylius\Component\Channel\Model\ChannelInterface as BaseChannelInterface; |
18 | 18 | use Sylius\Component\Payment\Model\PaymentMethod as BasePaymentMethod; |
19 | 19 | use Sylius\Component\Payment\Model\PaymentMethodTranslation; |
20 | -use Sylius\Component\Resource\Exception\UnsupportedMethodException; |
|
21 | 20 | |
22 | 21 | /** |
23 | 22 | * @author Mateusz Zalewski <[email protected]> |
@@ -22,6 +22,7 @@ |
||
22 | 22 | { |
23 | 23 | /** |
24 | 24 | * @param GatewayConfigInterface $gateway |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function setGatewayConfig(GatewayConfigInterface $gateway); |
27 | 28 |
@@ -33,6 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | /** |
35 | 35 | * @param string $name |
36 | + * @return void |
|
36 | 37 | */ |
37 | 38 | public function setName($name); |
38 | 39 | |
@@ -43,6 +44,7 @@ discard block |
||
43 | 44 | |
44 | 45 | /** |
45 | 46 | * @param string $description |
47 | + * @return void |
|
46 | 48 | */ |
47 | 49 | public function setDescription($description); |
48 | 50 | |
@@ -53,6 +55,7 @@ discard block |
||
53 | 55 | |
54 | 56 | /** |
55 | 57 | * @param string $instructions |
58 | + * @return void |
|
56 | 59 | */ |
57 | 60 | public function setInstructions($instructions); |
58 | 61 | |
@@ -63,6 +66,7 @@ discard block |
||
63 | 66 | |
64 | 67 | /** |
65 | 68 | * @param string $environment |
69 | + * @return void |
|
66 | 70 | */ |
67 | 71 | public function setEnvironment($environment); |
68 | 72 | |
@@ -73,6 +77,7 @@ discard block |
||
73 | 77 | |
74 | 78 | /** |
75 | 79 | * @param int $position |
80 | + * @return void |
|
76 | 81 | */ |
77 | 82 | public function setPosition($position); |
78 | 83 | } |
@@ -59,7 +59,7 @@ |
||
59 | 59 | ]) |
60 | 60 | ], |
61 | 61 | ]) |
62 | - ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
62 | + ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
63 | 63 | $data = $event->getData(); |
64 | 64 | |
65 | 65 | $data['payum.http_client'] = '@sylius.payum.http_client'; |
@@ -40,14 +40,14 @@ discard block |
||
40 | 40 | && isset($options['configuration']['multiple']) |
41 | 41 | && !$options['configuration']['multiple']) { |
42 | 42 | $builder->addModelTransformer(new CallbackTransformer( |
43 | - function($array) { |
|
43 | + function ($array) { |
|
44 | 44 | if (count($array) > 0) { |
45 | 45 | return $array[0]; |
46 | 46 | } |
47 | 47 | |
48 | 48 | return null; |
49 | 49 | }, |
50 | - function($string) { |
|
50 | + function ($string) { |
|
51 | 51 | if (!is_null($string)) { |
52 | 52 | return [$string]; |
53 | 53 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $resolver |
67 | 67 | ->setRequired('configuration') |
68 | 68 | ->setDefault('placeholder', 'sylius.form.attribute_type_configuration.select.choose') |
69 | - ->setNormalizer('choices', function(Options $options){ |
|
69 | + ->setNormalizer('choices', function (Options $options) { |
|
70 | 70 | if (is_array($options['configuration']) |
71 | 71 | && isset($options['configuration']['choices']) |
72 | 72 | && is_array($options['configuration']['choices'])) { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | return []; |
80 | 80 | }) |
81 | - ->setNormalizer('multiple', function(Options $options){ |
|
81 | + ->setNormalizer('multiple', function (Options $options) { |
|
82 | 82 | if (is_array($options['configuration']) && isset($options['configuration']['multiple'])) { |
83 | 83 | return $options['configuration']['multiple']; |
84 | 84 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $resolver |
67 | 67 | ->setRequired('configuration') |
68 | 68 | ->setDefault('placeholder', 'sylius.form.attribute_type_configuration.select.choose') |
69 | - ->setNormalizer('choices', function(Options $options){ |
|
69 | + ->setNormalizer('choices', function(Options $options) { |
|
70 | 70 | if (is_array($options['configuration']) |
71 | 71 | && isset($options['configuration']['choices']) |
72 | 72 | && is_array($options['configuration']['choices'])) { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | return []; |
80 | 80 | }) |
81 | - ->setNormalizer('multiple', function(Options $options){ |
|
81 | + ->setNormalizer('multiple', function(Options $options) { |
|
82 | 82 | if (is_array($options['configuration']) && isset($options['configuration']['multiple'])) { |
83 | 83 | return $options['configuration']['multiple']; |
84 | 84 | } |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | public function storeAllowsPaying($paymentMethodName, $position = null) |
90 | 90 | { |
91 | - $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Offline', 'Payment method', true, $position); |
|
91 | + $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Offline', 'Payment method', true, $position); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | */ |
172 | 172 | public function theStoreHasPaymentMethodNotAssignedToAnyChannel($paymentMethodName) |
173 | 173 | { |
174 | - $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method', 'Offline', false); |
|
174 | + $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method', 'Offline', false); |
|
175 | 175 | } |
176 | 176 | |
177 | 177 | /** |