@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | public function load(array $config, ContainerBuilder $container) |
28 | 28 | { |
29 | 29 | $config = $this->processConfiguration($this->getConfiguration($config, $container), $config); |
30 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
30 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
31 | 31 | |
32 | 32 | $loader->load('services.xml'); |
33 | 33 | |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | foreach ($resources as $subjectName => $subjectConfig) { |
57 | 57 | foreach ($subjectConfig as $resourceName => $resourceConfig) { |
58 | 58 | if (is_array($resourceConfig)) { |
59 | - $resolvedResources[$subjectName.'_'.$resourceName] = $resourceConfig; |
|
59 | + $resolvedResources[$subjectName . '_' . $resourceName] = $resourceConfig; |
|
60 | 60 | } |
61 | 61 | } |
62 | 62 | } |
@@ -26,10 +26,14 @@ |
||
26 | 26 | */ |
27 | 27 | public function checkValidationMessageFor($element, $message); |
28 | 28 | |
29 | + /** |
|
30 | + * @return void |
|
31 | + */ |
|
29 | 32 | public function reset(); |
30 | 33 | |
31 | 34 | /** |
32 | 35 | * @param string $email |
36 | + * @return void |
|
33 | 37 | */ |
34 | 38 | public function specifyEmail($email); |
35 | 39 | } |
@@ -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 | } |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | ) { |
369 | 369 | $customer = $user->getCustomer(); |
370 | 370 | for ($i = 0; $i < $numberOfOrders; $i++) { |
371 | - $order = $this->createOrder($customer, '#00000'.$i); |
|
371 | + $order = $this->createOrder($customer, '#00000' . $i); |
|
372 | 372 | $this->checkoutUsing($order, $shippingMethod, clone $address, $paymentMethod); |
373 | 373 | $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE); |
374 | 374 | |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | $total = $this->getPriceFromString($total); |
416 | 416 | |
417 | 417 | for ($i = 0; $i < $numberOfOrders; $i++) { |
418 | - $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#'.uniqid()); |
|
418 | + $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#' . uniqid()); |
|
419 | 419 | $order->setState(OrderInterface::STATE_NEW); // Temporary, we should use checkout to place these orders. |
420 | 420 | $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE); |
421 | 421 | |
@@ -445,7 +445,7 @@ discard block |
||
445 | 445 | $total = $this->getPriceFromString($total); |
446 | 446 | |
447 | 447 | for ($i = 0; $i < $numberOfOrders; $i++) { |
448 | - $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#'.uniqid(), $product->getChannels()->first()); |
|
448 | + $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#' . uniqid(), $product->getChannels()->first()); |
|
449 | 449 | $order->setState(OrderInterface::STATE_NEW); |
450 | 450 | $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE); |
451 | 451 | |
@@ -621,7 +621,7 @@ discard block |
||
621 | 621 | $customer = $this->customerFactory->createNew(); |
622 | 622 | $customer->setEmail(sprintf('john%[email protected]', uniqid())); |
623 | 623 | $customer->setFirstname('John'); |
624 | - $customer->setLastname('Doe'.$i); |
|
624 | + $customer->setLastname('Doe' . $i); |
|
625 | 625 | |
626 | 626 | $customers[] = $customer; |
627 | 627 |
@@ -271,7 +271,8 @@ |
||
271 | 271 | /** |
272 | 272 | * @Given /^the customer chose ("[^"]+" shipping method)$/ |
273 | 273 | */ |
274 | - public function theCustomerChoseShippingMethod(ShippingMethodInterface $shippingMethod) { |
|
274 | + public function theCustomerChoseShippingMethod(ShippingMethodInterface $shippingMethod) |
|
275 | + { |
|
275 | 276 | /** @var OrderInterface $order */ |
276 | 277 | $order = $this->sharedStorage->get('order'); |
277 | 278 |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use Doctrine\Common\Persistence\ObjectManager; |
15 | 15 | use Sylius\Bundle\CoreBundle\DataFixtures\DataFixture; |
16 | -use Sylius\Component\Currency\Model\CurrencyInterface; |
|
17 | 16 | |
18 | 17 | /** |
19 | 18 | * Default currency fixtures. |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
15 | 15 | use Sylius\Bundle\UserBundle\Controller\UserController; |
16 | -use Sylius\Bundle\UserBundle\Form\Type\UserType; |
|
17 | 16 | use Sylius\Component\Resource\Factory\Factory; |
18 | 17 | use Sylius\Component\User\Model\User; |
19 | 18 | use Sylius\Component\User\Model\UserInterface; |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace Sylius\Bundle\UserBundle\Form\Type; |
13 | 13 | |
14 | 14 | use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; |
15 | -use Sylius\Component\Resource\Metadata\MetadataInterface; |
|
16 | 15 | use Symfony\Component\Form\Extension\Core\Type\CheckboxType; |
17 | 16 | use Symfony\Component\Form\Extension\Core\Type\EmailType; |
18 | 17 | use Symfony\Component\Form\Extension\Core\Type\PasswordType; |
@@ -12,17 +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 | -use Sylius\Bundle\ResourceBundle\Form\Type\ResourceChoiceType; |
|
17 | 17 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
18 | -use Sylius\Bundle\ResourceBundle\Form\Type\ResourceFromIdentifierType; |
|
19 | -use Sylius\Bundle\CustomerBundle\Form\Type\CustomerProfileType; |
|
20 | -use Sylius\Bundle\CustomerBundle\Form\Type\CustomerType; |
|
21 | -use Sylius\Component\Customer\Model\CustomerGroup; |
|
22 | -use Sylius\Component\Resource\Factory\Factory; |
|
23 | 18 | use Sylius\Component\Customer\Model\Customer; |
24 | -use Sylius\Component\Customer\Model\CustomerInterface; |
|
19 | +use Sylius\Component\Customer\Model\CustomerGroup; |
|
25 | 20 | use Sylius\Component\Customer\Model\CustomerGroupInterface; |
21 | +use Sylius\Component\Customer\Model\CustomerInterface; |
|
22 | +use Sylius\Component\Resource\Factory\Factory; |
|
26 | 23 | use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; |
27 | 24 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
28 | 25 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
@@ -55,11 +55,13 @@ discard block |
||
55 | 55 | |
56 | 56 | /** |
57 | 57 | * @param ProductVariantImageInterface $image |
58 | + * @return void |
|
58 | 59 | */ |
59 | 60 | public function addImage(ProductVariantImageInterface $image); |
60 | 61 | |
61 | 62 | /** |
62 | 63 | * @param ProductVariantImageInterface $image |
64 | + * @return void |
|
63 | 65 | */ |
64 | 66 | public function removeImage(ProductVariantImageInterface $image); |
65 | 67 | |
@@ -70,6 +72,7 @@ discard block |
||
70 | 72 | |
71 | 73 | /** |
72 | 74 | * @param int $sold |
75 | + * @return void |
|
73 | 76 | */ |
74 | 77 | public function setSold($sold); |
75 | 78 | |
@@ -80,6 +83,7 @@ discard block |
||
80 | 83 | |
81 | 84 | /** |
82 | 85 | * @param float $weight |
86 | + * @return void |
|
83 | 87 | */ |
84 | 88 | public function setWeight($weight); |
85 | 89 | |
@@ -90,6 +94,7 @@ discard block |
||
90 | 94 | |
91 | 95 | /** |
92 | 96 | * @param float $width |
97 | + * @return void |
|
93 | 98 | */ |
94 | 99 | public function setWidth($width); |
95 | 100 | |
@@ -100,6 +105,7 @@ discard block |
||
100 | 105 | |
101 | 106 | /** |
102 | 107 | * @param float $height |
108 | + * @return void |
|
103 | 109 | */ |
104 | 110 | public function setHeight($height); |
105 | 111 | |
@@ -110,6 +116,7 @@ discard block |
||
110 | 116 | |
111 | 117 | /** |
112 | 118 | * @param float $depth |
119 | + * @return void |
|
113 | 120 | */ |
114 | 121 | public function setDepth($depth); |
115 | 122 | |
@@ -120,6 +127,7 @@ discard block |
||
120 | 127 | |
121 | 128 | /** |
122 | 129 | * @param int|null $originalPrice |
130 | + * @return void |
|
123 | 131 | */ |
124 | 132 | public function setOriginalPrice($originalPrice); |
125 | 133 | |
@@ -130,6 +138,7 @@ discard block |
||
130 | 138 | |
131 | 139 | /** |
132 | 140 | * @param TaxCategoryInterface $category |
141 | + * @return void |
|
133 | 142 | */ |
134 | 143 | public function setTaxCategory(TaxCategoryInterface $category = null); |
135 | 144 | } |
@@ -11,12 +11,7 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\AttributeBundle\DependencyInjection; |
13 | 13 | |
14 | -use Sylius\Bundle\AttributeBundle\Controller\ProductAttributeController; |
|
15 | -use Sylius\Bundle\AttributeBundle\Form\Type\AttributeTranslationType; |
|
16 | -use Sylius\Bundle\AttributeBundle\Form\Type\AttributeType; |
|
17 | -use Sylius\Bundle\AttributeBundle\Form\Type\AttributeValueType; |
|
18 | 14 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
19 | -use Sylius\Bundle\ResourceBundle\Form\Type\ResourceChoiceType; |
|
20 | 15 | use Sylius\Bundle\ResourceBundle\SyliusResourceBundle; |
21 | 16 | use Sylius\Component\Attribute\Model\Attribute; |
22 | 17 | use Sylius\Component\Attribute\Model\AttributeInterface; |