@@ -21,6 +21,7 @@ |
||
21 | 21 | * @param array $recipients |
22 | 22 | * @param array $data |
23 | 23 | * @param array $attachments |
24 | + * @return void |
|
24 | 25 | */ |
25 | 26 | public function send($code, array $recipients, array $data = [], array $attachments = []); |
26 | 27 | } |
@@ -58,7 +58,7 @@ |
||
58 | 58 | |
59 | 59 | $message->setBody($renderedEmail->getBody(), 'text/html'); |
60 | 60 | |
61 | - foreach($attachments as $attachment) { |
|
61 | + foreach ($attachments as $attachment) { |
|
62 | 62 | $file = \Swift_Attachment::fromPath($attachment); |
63 | 63 | |
64 | 64 | $message->attach($file); |
@@ -18,69 +18,90 @@ |
||
18 | 18 | */ |
19 | 19 | interface CreatePageInterface extends BaseCreatePageInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function enable(); |
22 | 25 | |
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
23 | 29 | public function disable(); |
24 | 30 | |
25 | 31 | /** |
26 | 32 | * @param string $name |
33 | + * @return void |
|
27 | 34 | */ |
28 | 35 | public function nameIt($name); |
29 | 36 | |
30 | 37 | /** |
31 | 38 | * @param string $code |
39 | + * @return void |
|
32 | 40 | */ |
33 | 41 | public function specifyCode($code); |
34 | 42 | |
35 | 43 | /** |
36 | 44 | * @param string $description |
45 | + * @return void |
|
37 | 46 | */ |
38 | 47 | public function describeItAs($description); |
39 | 48 | |
40 | 49 | /** |
41 | 50 | * @param string $hostname |
51 | + * @return void |
|
42 | 52 | */ |
43 | 53 | public function setHostname($hostname); |
44 | 54 | |
45 | 55 | /** |
46 | 56 | * @param string $contactEmail |
57 | + * @return void |
|
47 | 58 | */ |
48 | 59 | public function setContactEmail($contactEmail); |
49 | 60 | |
50 | 61 | /** |
51 | 62 | * @param string $color |
63 | + * @return void |
|
52 | 64 | */ |
53 | 65 | public function defineColor($color); |
54 | 66 | |
55 | 67 | /** |
56 | 68 | * @param string $language |
69 | + * @return void |
|
57 | 70 | */ |
58 | 71 | public function chooseLocale($language); |
59 | 72 | |
60 | 73 | /** |
61 | 74 | * @param string $currencyCode |
75 | + * @return void |
|
62 | 76 | */ |
63 | 77 | public function chooseCurrency($currencyCode); |
64 | 78 | |
65 | 79 | /** |
66 | 80 | * @param string $taxZone |
81 | + * @return void |
|
67 | 82 | */ |
68 | 83 | public function chooseDefaultTaxZone($taxZone); |
69 | 84 | |
70 | 85 | /** |
71 | 86 | * @param string $locale |
87 | + * @return void |
|
72 | 88 | */ |
73 | 89 | public function chooseDefaultLocale($locale); |
74 | 90 | |
75 | 91 | /** |
76 | 92 | * @param string $currency |
93 | + * @return void |
|
77 | 94 | */ |
78 | 95 | public function chooseBaseCurrency($currency); |
79 | 96 | |
80 | 97 | /** |
81 | 98 | * @param string $taxCalculationStrategy |
99 | + * @return void |
|
82 | 100 | */ |
83 | 101 | public function chooseTaxCalculationStrategy($taxCalculationStrategy); |
84 | 102 | |
103 | + /** |
|
104 | + * @return void |
|
105 | + */ |
|
85 | 106 | public function allowToSkipShippingStep(); |
86 | 107 | } |
@@ -12,14 +12,14 @@ |
||
12 | 12 | namespace Sylius\Bundle\CustomerBundle\DependencyInjection; |
13 | 13 | |
14 | 14 | use Sylius\Bundle\CustomerBundle\Form\Type\CustomerGroupType; |
15 | +use Sylius\Bundle\CustomerBundle\Form\Type\CustomerType; |
|
15 | 16 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
16 | 17 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
17 | -use Sylius\Bundle\CustomerBundle\Form\Type\CustomerType; |
|
18 | -use Sylius\Component\Customer\Model\CustomerGroup; |
|
19 | -use Sylius\Component\Resource\Factory\Factory; |
|
20 | 18 | use Sylius\Component\Customer\Model\Customer; |
21 | -use Sylius\Component\Customer\Model\CustomerInterface; |
|
19 | +use Sylius\Component\Customer\Model\CustomerGroup; |
|
22 | 20 | use Sylius\Component\Customer\Model\CustomerGroupInterface; |
21 | +use Sylius\Component\Customer\Model\CustomerInterface; |
|
22 | +use Sylius\Component\Resource\Factory\Factory; |
|
23 | 23 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
24 | 24 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
25 | 25 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
@@ -14,12 +14,9 @@ |
||
14 | 14 | use SM\Factory\FactoryInterface; |
15 | 15 | use Sylius\Component\Core\Checker\OrderPaymentMethodSelectionRequirementCheckerInterface; |
16 | 16 | use Sylius\Component\Core\Checker\OrderShippingMethodSelectionRequirementCheckerInterface; |
17 | -use Sylius\Component\Core\Model\OrderItemInterface; |
|
18 | -use Sylius\Component\Core\Model\ShipmentInterface; |
|
19 | 17 | use Sylius\Component\Core\OrderCheckoutTransitions; |
20 | 18 | use Sylius\Component\Order\Model\OrderInterface; |
21 | 19 | use Sylius\Component\Order\StateResolver\StateResolverInterface; |
22 | -use Sylius\Component\Shipping\Resolver\ShippingMethodsResolverInterface; |
|
23 | 20 | |
24 | 21 | /** |
25 | 22 | * @author Anna Walasek <[email protected]> |
@@ -205,7 +205,7 @@ |
||
205 | 205 | { |
206 | 206 | "tracking": "BANANAS" |
207 | 207 | } |
208 | -EOT; |
|
208 | +eot; |
|
209 | 209 | |
210 | 210 | $this->client->request('PUT', $this->getShipOrderShipmentUrl($orderId, $rawResponse['shipments'][0]['id']), [], [], static::$authorizedHeaderWithContentType, $data); |
211 | 211 |
@@ -107,7 +107,7 @@ |
||
107 | 107 | |
108 | 108 | $this->addItemToCart($cartId); |
109 | 109 | |
110 | - $this->client->request('PATCH', '/api/v1/carts/' . $cartId, [], [], static::$authorizedHeaderWithAccept, '{"promotionCoupon": "BANANAS"}'); |
|
110 | + $this->client->request('PATCH', '/api/v1/carts/' . $cartId, [], [], static::$authorizedHeaderWithAccept, '{"promotionCoupon": "BANANAS"}'); |
|
111 | 111 | |
112 | 112 | $this->addressOrder($cartId); |
113 | 113 | $this->selectOrderShippingMethod($cartId); |
@@ -35,6 +35,6 @@ |
||
35 | 35 | { |
36 | 36 | $percentage = $number * 100; |
37 | 37 | |
38 | - return $percentage.' %'; |
|
38 | + return $percentage . ' %'; |
|
39 | 39 | } |
40 | 40 | } |
@@ -37,8 +37,8 @@ |
||
37 | 37 | public function getFunctions() |
38 | 38 | { |
39 | 39 | return [ |
40 | - new \Twig_SimpleFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
41 | - new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
40 | + new \Twig_SimpleFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
41 | + new \Twig_SimpleFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
42 | 42 | ]; |
43 | 43 | } |
44 | 44 | } |
@@ -224,6 +224,7 @@ |
||
224 | 224 | /** |
225 | 225 | * @Then the payment method :paymentMethodName should appear in the registry |
226 | 226 | * @Then the payment method :paymentMethodName should be in the registry |
227 | + * @param string $paymentMethodName |
|
227 | 228 | */ |
228 | 229 | public function thePaymentMethodShouldAppearInTheRegistry($paymentMethodName) |
229 | 230 | { |
@@ -299,7 +299,7 @@ |
||
299 | 299 | public function iShouldBeNotifiedThatIHaveToSpecifyPaypal($element) |
300 | 300 | { |
301 | 301 | Assert::same( |
302 | - $this->createPage->getValidationMessage('paypal_'.$element), |
|
302 | + $this->createPage->getValidationMessage('paypal_' . $element), |
|
303 | 303 | sprintf('Please enter paypal %s.', $element) |
304 | 304 | ); |
305 | 305 | } |