Completed
Push — phpspec-7 ( 2faf6a )
by Kamil
62:22 queued 34:00
created
Bundle/ApiBundle/CommandHandler/Checkout/ChoosePaymentMethodHandler.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
 use Sylius\Component\Core\Repository\OrderRepositoryInterface;
22 22
 use Sylius\Component\Core\Repository\PaymentMethodRepositoryInterface;
23 23
 use Sylius\Component\Core\Repository\PaymentRepositoryInterface;
24
-use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
25 24
 use Sylius\Component\Payment\Model\PaymentInterface;
25
+use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
26 26
 use Webmozart\Assert\Assert;
27 27
 
28 28
 /** @experimental */
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Doctrine/ORM/AttributeRepository.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
 
16 16
 use Doctrine\ORM\EntityManager;
17 17
 use Doctrine\ORM\Mapping;
18
-use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository;
19 18
 use SyliusLabs\AssociationHydrator\AssociationHydrator;
19
+use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository;
20 20
 
21 21
 class AttributeRepository extends EntityRepository
22 22
 {
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,16 +16,16 @@
 block discarded – undo
16 16
 use Doctrine\ORM\EntityManager;
17 17
 use Doctrine\ORM\Mapping;
18 18
 use Doctrine\ORM\QueryBuilder;
19
+use SyliusLabs\AssociationHydrator\AssociationHydrator;
19 20
 use Sylius\Bundle\OrderBundle\Doctrine\ORM\OrderRepository as BaseOrderRepository;
20 21
 use Sylius\Component\Core\Model\ChannelInterface;
21 22
 use Sylius\Component\Core\Model\CustomerInterface;
22 23
 use Sylius\Component\Core\Model\OrderInterface;
23
-use Sylius\Component\Order\Model\OrderInterface as BaseOrderInterface;
24 24
 use Sylius\Component\Core\Model\PromotionCouponInterface;
25 25
 use Sylius\Component\Core\OrderCheckoutStates;
26 26
 use Sylius\Component\Core\OrderPaymentStates;
27 27
 use Sylius\Component\Core\Repository\OrderRepositoryInterface;
28
-use SyliusLabs\AssociationHydrator\AssociationHydrator;
28
+use Sylius\Component\Order\Model\OrderInterface as BaseOrderInterface;
29 29
 
30 30
 class OrderRepository extends BaseOrderRepository implements OrderRepositoryInterface
31 31
 {
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductOptionRepository.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
 
16 16
 use Doctrine\ORM\EntityManager;
17 17
 use Doctrine\ORM\Mapping;
18
-use Sylius\Bundle\ProductBundle\Doctrine\ORM\ProductOptionRepository as BaseProductOptionRepository;
19 18
 use SyliusLabs\AssociationHydrator\AssociationHydrator;
19
+use Sylius\Bundle\ProductBundle\Doctrine\ORM\ProductOptionRepository as BaseProductOptionRepository;
20 20
 
21 21
 class ProductOptionRepository extends BaseProductOptionRepository
22 22
 {
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Doctrine/ORM/PromotionRepository.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
15 15
 
16 16
 use Doctrine\ORM\EntityManager;
17 17
 use Doctrine\ORM\Mapping;
18
+use SyliusLabs\AssociationHydrator\AssociationHydrator;
18 19
 use Sylius\Bundle\PromotionBundle\Doctrine\ORM\PromotionRepository as BasePromotionRepository;
19 20
 use Sylius\Component\Channel\Model\ChannelInterface;
20 21
 use Sylius\Component\Core\Repository\PromotionRepositoryInterface;
21
-use SyliusLabs\AssociationHydrator\AssociationHydrator;
22 22
 
23 23
 class PromotionRepository extends BasePromotionRepository implements PromotionRepositoryInterface
24 24
 {
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Mailer/OrderEmailManagerInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,5 +17,8 @@
 block discarded – undo
17 17
 
18 18
 interface OrderEmailManagerInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function sendConfirmationEmail(OrderInterface $order): void;
21 24
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Tests/Mailer/OrderEmailManagerTest.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 Sylius\Component\Core\Model\CustomerInterface;
19 19
 use Sylius\Component\Core\Model\OrderInterface;
20 20
 use Sylius\Component\Core\Test\Services\EmailChecker;
21
-use Symfony\Component\Filesystem\Filesystem;
22 21
 use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
22
+use Symfony\Component\Filesystem\Filesystem;
23 23
 use Symfony\Contracts\Translation\TranslatorInterface;
24 24
 
25 25
 final class OrderEmailManagerTest extends KernelTestCase
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Tests/TestKernel.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,7 @@  discard block
 block discarded – undo
15 15
 use Payum\Bundle\PayumBundle\PayumBundle;
16 16
 use Sonata\BlockBundle\SonataBlockBundle;
17 17
 use Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle;
18
+use SyliusLabs\DoctrineMigrationsExtraBundle\SyliusLabsDoctrineMigrationsExtraBundle;
18 19
 use Sylius\Bundle\AddressingBundle\SyliusAddressingBundle;
19 20
 use Sylius\Bundle\AttributeBundle\SyliusAttributeBundle;
20 21
 use Sylius\Bundle\ChannelBundle\SyliusChannelBundle;
@@ -40,7 +41,6 @@  discard block
 block discarded – undo
40 41
 use Sylius\Bundle\ThemeBundle\SyliusThemeBundle;
41 42
 use Sylius\Bundle\UiBundle\SyliusUiBundle;
42 43
 use Sylius\Bundle\UserBundle\SyliusUserBundle;
43
-use SyliusLabs\DoctrineMigrationsExtraBundle\SyliusLabsDoctrineMigrationsExtraBundle;
44 44
 use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
45 45
 use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
46 46
 use Symfony\Bundle\SecurityBundle\SecurityBundle;
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/Image.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -53,6 +53,9 @@
 block discarded – undo
53 53
         return $this->file;
54 54
     }
55 55
 
56
+    /**
57
+     * @param \Symfony\Component\HttpFoundation\File\UploadedFile $file
58
+     */
56 59
     public function setFile(?\SplFileInfo $file): void
57 60
     {
58 61
         $this->file = $file;
Please login to merge, or discard this patch.