Completed
Push — upgrade-boilerplate ( 903b21 )
by Kamil
17:46
created
src/Sylius/Behat/Context/Setup/OrderContext.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Unused Use Statements   +8 added lines, -9 removed lines patch added patch discarded remove patch
@@ -14,31 +14,30 @@
 block discarded – undo
14 14
 use Behat\Behat\Context\Context;
15 15
 use Doctrine\Common\Persistence\ObjectManager;
16 16
 use SM\Factory\FactoryInterface as StateMachineFactoryInterface;
17
+use Sylius\Behat\Service\SharedStorageInterface;
17 18
 use Sylius\Component\Core\Currency\CurrencyStorageInterface;
19
+use Sylius\Component\Core\Model\AddressInterface;
18 20
 use Sylius\Component\Core\Model\ChannelInterface;
19 21
 use Sylius\Component\Core\Model\ChannelPricingInterface;
20
-use Sylius\Component\Core\Model\PromotionCouponInterface;
21
-use Sylius\Component\Core\OrderCheckoutTransitions;
22
-use Sylius\Component\Order\Processor\OrderProcessorInterface;
23
-use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface;
24
-use Sylius\Component\Core\Model\AddressInterface;
25 22
 use Sylius\Component\Core\Model\OrderInterface;
26 23
 use Sylius\Component\Core\Model\OrderItemInterface;
27 24
 use Sylius\Component\Core\Model\ProductInterface;
28 25
 use Sylius\Component\Core\Model\ProductVariantInterface;
26
+use Sylius\Component\Core\Model\PromotionCouponInterface;
29 27
 use Sylius\Component\Core\Model\ShippingMethodInterface;
28
+use Sylius\Component\Core\OrderCheckoutTransitions;
30 29
 use Sylius\Component\Core\Repository\OrderRepositoryInterface;
31
-use Sylius\Behat\Service\SharedStorageInterface;
30
+use Sylius\Component\Customer\Model\CustomerInterface;
31
+use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface;
32 32
 use Sylius\Component\Order\OrderTransitions;
33
-use Sylius\Component\Payment\Model\PaymentInterface;
33
+use Sylius\Component\Order\Processor\OrderProcessorInterface;
34 34
 use Sylius\Component\Payment\Model\PaymentMethodInterface;
35 35
 use Sylius\Component\Payment\PaymentTransitions;
36
+use Sylius\Component\Product\Resolver\ProductVariantResolverInterface;
36 37
 use Sylius\Component\Resource\Factory\FactoryInterface;
37 38
 use Sylius\Component\Resource\Repository\RepositoryInterface;
38 39
 use Sylius\Component\Shipping\ShipmentTransitions;
39
-use Sylius\Component\Customer\Model\CustomerInterface;
40 40
 use Sylius\Component\User\Model\UserInterface;
41
-use Sylius\Component\Product\Resolver\ProductVariantResolverInterface;
42 41
 
43 42
 /**
44 43
  * @author Łukasz Chruściel <[email protected]>
Please login to merge, or discard this patch.
src/Sylius/Bundle/UserBundle/DependencyInjection/Configuration.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Sylius/Bundle/UserBundle/Form/Type/UserType.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Sylius/Bundle/CustomerBundle/DependencyInjection/Configuration.php 1 patch
Unused Use Statements   +4 added lines, -7 removed lines patch added patch discarded remove patch
@@ -12,17 +12,14 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/ProductVariant/CreatePageInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -55,11 +55,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
130 138
 
131 139
     /**
132 140
      * @param TaxCategoryInterface $category
141
+     * @return void
133 142
      */
134 143
     public function setTaxCategory(TaxCategoryInterface $category = null);
135 144
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/AttributeBundle/DependencyInjection/Configuration.php 1 patch
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -11,12 +11,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Sylius/Bundle/ResourceBundle/Form/Registry/FormTypeRegistryInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param string $value
30
+     * @return void
30 31
      */
31 32
     public function setValue($value);
32 33
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ProductInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -39,6 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/GridBundle/Form/Registry/FormTypeRegistryInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param string $value
30
+     * @return void
30 31
      */
31 32
     public function setValue($value);
32 33
 }
Please login to merge, or discard this patch.