Completed
Push — 1.4-refresh-behat-guide ( 4e6af6...12ea46 )
by Kamil
12:35
created
src/Sylius/Bundle/ReviewBundle/spec/Updater/AverageRatingUpdaterSpec.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
 use PhpSpec\ObjectBehavior;
18 18
 use Sylius\Bundle\ReviewBundle\Updater\ReviewableRatingUpdaterInterface;
19 19
 use Sylius\Component\Review\Calculator\ReviewableRatingCalculatorInterface;
20
-use Sylius\Component\Review\Model\ReviewableInterface;
21 20
 use Sylius\Component\Review\Model\ReviewInterface;
21
+use Sylius\Component\Review\Model\ReviewableInterface;
22 22
 
23 23
 final class AverageRatingUpdaterSpec extends ObjectBehavior
24 24
 {
Please login to merge, or discard this patch.
src/Sylius/Component/Core/spec/Model/ProductVariantSpec.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
 use Sylius\Component\Resource\Model\VersionedInterface;
27 27
 use Sylius\Component\Shipping\Model\ShippableInterface;
28 28
 use Sylius\Component\Shipping\Model\ShippingCategoryInterface;
29
-use Sylius\Component\Taxation\Model\TaxableInterface;
30 29
 use Sylius\Component\Taxation\Model\TaxCategoryInterface;
30
+use Sylius\Component\Taxation\Model\TaxableInterface;
31 31
 
32 32
 final class ProductVariantSpec extends ObjectBehavior
33 33
 {
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/spec/Repository/InMemoryRepositorySpec.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@
 block discarded – undo
15 15
 
16 16
 use Pagerfanta\Pagerfanta;
17 17
 use PhpSpec\ObjectBehavior;
18
-use spec\Sylius\Component\Resource\Fixtures\SampleBookResourceInterface;
19 18
 use Sylius\Component\Resource\Exception\UnexpectedTypeException;
20 19
 use Sylius\Component\Resource\Model\ResourceInterface;
21 20
 use Sylius\Component\Resource\Repository\Exception\ExistingResourceException;
22 21
 use Sylius\Component\Resource\Repository\RepositoryInterface;
22
+use spec\Sylius\Component\Resource\Fixtures\SampleBookResourceInterface;
23 23
 
24 24
 require_once __DIR__ . '/../Fixtures/SampleBookResourceInterface.php';
25 25
 
Please login to merge, or discard this patch.
src/Sylius/Component/Review/spec/Calculator/AverageRatingCalculatorSpec.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
 use Doctrine\Common\Collections\ArrayCollection;
17 17
 use PhpSpec\ObjectBehavior;
18 18
 use Sylius\Component\Review\Calculator\ReviewableRatingCalculatorInterface;
19
-use Sylius\Component\Review\Model\ReviewableInterface;
20 19
 use Sylius\Component\Review\Model\ReviewInterface;
20
+use Sylius\Component\Review\Model\ReviewableInterface;
21 21
 
22 22
 final class AverageRatingCalculatorSpec extends ObjectBehavior
23 23
 {
Please login to merge, or discard this patch.
src/Sylius/Component/User/Canonicalizer/CanonicalizerInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -15,5 +15,8 @@
 block discarded – undo
15 15
 
16 16
 interface CanonicalizerInterface
17 17
 {
18
+    /**
19
+     * @return string
20
+     */
18 21
     public function canonicalize(?string $string): ?string;
19 22
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Service/NotificationCheckerInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@
 block discarded – undo
20 20
 {
21 21
     /**
22 22
      * @throws NotificationExpectationMismatchException
23
+     * @return void
23 24
      */
24 25
     public function checkNotification(string $message, NotificationType $type): void;
25 26
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Channel/Context/ChannelNotFoundException.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -17,6 +17,7 @@
 block discarded – undo
17 17
 {
18 18
     /**
19 19
      * {@inheritdoc}
20
+     * @param \UnexpectedValueException $messageOrPreviousException
20 21
      */
21 22
     public function __construct($messageOrPreviousException = null, ?\Throwable $previousException = null)
22 23
     {
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Tests/Application/SyliusPluginTraitTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,8 @@
 block discarded – undo
25 25
      */
26 26
     public function it_does_not_crash(): void
27 27
     {
28
-        $class = new class() extends Bundle {
28
+        $class = new class() extends Bundle
29
+        {
29 30
             use SyliusPluginTrait;
30 31
         };
31 32
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductRepository.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -87,10 +87,10 @@
 block discarded – undo
87 87
         if (isset($sorting['price'])) {
88 88
             // Another hack, the subquery to get the first position variant
89 89
             $subQuery = $this->createQueryBuilder('m')
90
-                 ->select('min(v.position)')
91
-                 ->innerJoin('m.variants', 'v')
92
-                 ->andWhere('m.id = :product_id')
93
-             ;
90
+                    ->select('min(v.position)')
91
+                    ->innerJoin('m.variants', 'v')
92
+                    ->andWhere('m.id = :product_id')
93
+                ;
94 94
 
95 95
             $queryBuilder
96 96
                 ->innerJoin('o.variants', 'variant')
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 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\ProductBundle\Doctrine\ORM\ProductRepository as BaseProductRepository;
20 21
 use Sylius\Component\Core\Model\ChannelInterface;
21 22
 use Sylius\Component\Core\Model\ProductInterface;
22 23
 use Sylius\Component\Core\Model\TaxonInterface;
23 24
 use Sylius\Component\Core\Repository\ProductRepositoryInterface;
24
-use SyliusLabs\AssociationHydrator\AssociationHydrator;
25 25
 
26 26
 class ProductRepository extends BaseProductRepository implements ProductRepositoryInterface
27 27
 {
Please login to merge, or discard this patch.