Completed
Branch master (429264)
by Kamil
37:02
created
src/Sylius/Behat/Context/Setup/OrderContext.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,19 +14,19 @@
 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\Component\Core\Model\AddressInterface;
17 18
 use Sylius\Component\Core\Model\ChannelInterface;
18 19
 use Sylius\Component\Core\Model\CouponInterface;
19
-use Sylius\Component\Core\OrderProcessing\OrderRecalculatorInterface;
20
-use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface;
21
-use Sylius\Component\Core\Model\AddressInterface;
22 20
 use Sylius\Component\Core\Model\OrderInterface;
23 21
 use Sylius\Component\Core\Model\OrderItemInterface;
24 22
 use Sylius\Component\Core\Model\ProductInterface;
25 23
 use Sylius\Component\Core\Model\ProductVariantInterface;
26 24
 use Sylius\Component\Core\Model\ShippingMethodInterface;
25
+use Sylius\Component\Core\OrderProcessing\OrderRecalculatorInterface;
27 26
 use Sylius\Component\Core\OrderProcessing\OrderShipmentProcessorInterface;
28 27
 use Sylius\Component\Core\Repository\OrderRepositoryInterface;
29 28
 use Sylius\Component\Core\Test\Services\SharedStorageInterface;
29
+use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface;
30 30
 use Sylius\Component\Order\OrderTransitions;
31 31
 use Sylius\Component\Payment\Factory\PaymentFactoryInterface;
32 32
 use Sylius\Component\Payment\Model\PaymentInterface;
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/PromotionContext.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,6 +175,7 @@  discard block
 block discarded – undo
175 175
 
176 176
     /**
177 177
      * @Given /^([^"]+) gives ("[^"]+%") discount on shipping to every order$/
178
+     * @param integer $discount
178 179
      */
179 180
     public function itGivesPercentageDiscountOnShippingToEveryOrder(PromotionInterface $promotion, $discount)
180 181
     {
@@ -429,7 +430,7 @@  discard block
 block discarded – undo
429 430
     }
430 431
 
431 432
     /**
432
-     * @param array $taxonCodes
433
+     * @param string[] $taxonCodes
433 434
      *
434 435
      * @return array
435 436
      */
@@ -458,6 +459,7 @@  discard block
 block discarded – undo
458 459
      * @param PromotionInterface $promotion
459 460
      * @param int $discount
460 461
      * @param array $configuration
462
+     * @param RuleInterface $rule
461 463
      */
462 464
     private function createUnitFixedPromotion(PromotionInterface $promotion, $discount, array $configuration = [], $rule = null)
463 465
     {
@@ -468,6 +470,7 @@  discard block
 block discarded – undo
468 470
      * @param PromotionInterface $promotion
469 471
      * @param int $discount
470 472
      * @param array $configuration
473
+     * @param RuleInterface $rule
471 474
      */
472 475
     private function createUnitPercentagePromotion(PromotionInterface $promotion, $discount, array $configuration = [], $rule = null)
473 476
     {
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/ShippingContext.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,6 @@
 block discarded – undo
18 18
 use Sylius\Component\Core\Model\ShippingMethodInterface;
19 19
 use Sylius\Component\Core\Test\Services\SharedStorageInterface;
20 20
 use Sylius\Component\Resource\Factory\FactoryInterface;
21
-use Sylius\Component\Resource\Repository\RepositoryInterface;
22 21
 use Sylius\Component\Shipping\Calculator\DefaultCalculators;
23 22
 use Sylius\Component\Shipping\Repository\ShippingMethodRepositoryInterface;
24 23
 use Sylius\Component\Taxation\Model\TaxCategoryInterface;
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/TaxationContext.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
     /**
188 188
      * @param string $taxRateAmount
189 189
      *
190
-     * @return string
190
+     * @return integer
191 191
      */
192 192
     private function getAmountFromString($taxRateAmount)
193 193
     {
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingCustomersContext.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 namespace Sylius\Behat\Context\Ui\Admin;
13 13
 
14 14
 use Behat\Behat\Context\Context;
15
-use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface;
16 15
 use Sylius\Behat\Page\Admin\Crud\IndexPageInterface;
16
+use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface;
17 17
 use Sylius\Behat\Page\Admin\Customer\CreatePageInterface;
18 18
 use Sylius\Component\User\Model\CustomerInterface;
19 19
 use Webmozart\Assert\Assert;
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingProductVariantsContext.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -134,6 +134,7 @@  discard block
 block discarded – undo
134 134
 
135 135
     /**
136 136
      * @Then the :productVariantCode variant of the :product product should appear in the shop
137
+     * @param string $productVariantCode
137 138
      */
138 139
     public function theProductVariantShouldAppearInTheShop($productVariantCode, ProductInterface $product)
139 140
     {
@@ -280,6 +281,7 @@  discard block
 block discarded – undo
280 281
 
281 282
     /**
282 283
      * @param string $element
284
+     * @param string $message
283 285
      */
284 286
     private function assertValidationMessage($element, $message)
285 287
     {
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/CheckoutContext.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -337,6 +337,7 @@
 block discarded – undo
337 337
 
338 338
     /**
339 339
      * @When /^I proceed selecting "([^"]*)" as shipping country with "([^"]*)" payment method$/
340
+     * @param string $paymentMethodName
340 341
      */
341 342
     public function iProceedSelectingShippingCountryAndPaymentMethod($shippingCountry, $paymentMethodName)
342 343
     {
Please login to merge, or discard this patch.
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,18 +13,18 @@
 block discarded – undo
13 13
 
14 14
 use Behat\Behat\Context\Context;
15 15
 use Sylius\Behat\Page\Shop\Checkout\AddressingPageInterface;
16
-use Sylius\Behat\Page\Shop\Checkout\PaymentPageInterface;
17
-use Sylius\Behat\Page\Shop\Checkout\ShippingPageInterface;
18
-use Sylius\Behat\Page\Shop\Checkout\SummaryPageInterface;
19
-use Sylius\Behat\Page\Shop\Order\OrderPaymentsPageInterface;
20 16
 use Sylius\Behat\Page\Shop\Checkout\AddressingStepInterface;
21 17
 use Sylius\Behat\Page\Shop\Checkout\FinalizeStepInterface;
18
+use Sylius\Behat\Page\Shop\Checkout\PaymentPageInterface;
22 19
 use Sylius\Behat\Page\Shop\Checkout\PaymentStepInterface;
23 20
 use Sylius\Behat\Page\Shop\Checkout\SecurityStepInterface;
21
+use Sylius\Behat\Page\Shop\Checkout\ShippingPageInterface;
24 22
 use Sylius\Behat\Page\Shop\Checkout\ShippingStepInterface;
23
+use Sylius\Behat\Page\Shop\Checkout\SummaryPageInterface;
25 24
 use Sylius\Behat\Page\Shop\Checkout\ThankYouPageInterface;
26
-use Sylius\Component\Core\Formatter\StringInflector;
25
+use Sylius\Behat\Page\Shop\Order\OrderPaymentsPageInterface;
27 26
 use Sylius\Behat\Service\SecurityServiceInterface;
27
+use Sylius\Component\Core\Formatter\StringInflector;
28 28
 use Sylius\Component\Core\Model\AddressInterface;
29 29
 use Sylius\Component\Core\Model\OrderInterface;
30 30
 use Sylius\Component\Core\Model\ProductInterface;
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/PaypalContext.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 namespace Sylius\Behat\Context\Ui;
13 13
 
14 14
 use Behat\Behat\Context\Context;
15
-use Sylius\Behat\Page\Shop\Checkout\FinalizeStepInterface;
16 15
 use Sylius\Behat\Page\External\PaypalExpressCheckoutPageInterface;
16
+use Sylius\Behat\Page\Shop\Checkout\FinalizeStepInterface;
17 17
 use Sylius\Behat\Page\Shop\Order\OrderPaymentsPageInterface;
18 18
 use Sylius\Behat\Service\Mocker\PaypalApiMocker;
19 19
 use Sylius\Component\Core\Model\OrderInterface;
Please login to merge, or discard this patch.
Context/Environment/Handler/ContextServiceEnvironmentHandler.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
 use Behat\Testwork\Environment\Handler\EnvironmentHandler;
19 19
 use Behat\Testwork\Suite\Exception\SuiteConfigurationException;
20 20
 use Behat\Testwork\Suite\Suite;
21
-use Sylius\Behat\Extension\MultiContainerExtension\Context\Environment\UninitializedContextServiceEnvironment;
22 21
 use Sylius\Behat\Extension\MultiContainerExtension\ContextRegistry;
22
+use Sylius\Behat\Extension\MultiContainerExtension\Context\Environment\UninitializedContextServiceEnvironment;
23 23
 use Symfony\Component\DependencyInjection\ContainerInterface;
24 24
 
25 25
 /**
Please login to merge, or discard this patch.