Completed
Push — new-template-events-architectu... ( 533634 )
by Kamil
05:23
created
src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,6 +16,7 @@  discard block
 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;
@@ -24,7 +25,6 @@  discard block
 block discarded – undo
24 25
 use Sylius\Component\Core\OrderCheckoutStates;
25 26
 use Sylius\Component\Core\OrderPaymentStates;
26 27
 use Sylius\Component\Core\Repository\OrderRepositoryInterface;
27
-use SyliusLabs\AssociationHydrator\AssociationHydrator;
28 28
 
29 29
 class OrderRepository extends BaseOrderRepository implements OrderRepositoryInterface
30 30
 {
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductRepository.php 2 patches
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.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,10 +105,10 @@
 block discarded – undo
105 105
         if (isset($sorting['price'])) {
106 106
             // Another hack, the subquery to get the first position variant
107 107
             $subQuery = $this->createQueryBuilder('m')
108
-                 ->select('min(v.position)')
109
-                 ->innerJoin('m.variants', 'v')
110
-                 ->andWhere('m.id = :product_id')
111
-             ;
108
+                    ->select('min(v.position)')
109
+                    ->innerJoin('m.variants', 'v')
110
+                    ->andWhere('m.id = :product_id')
111
+                ;
112 112
 
113 113
             $queryBuilder
114 114
                 ->addSelect('variant')
Please login to merge, or discard this patch.
Bundle/CoreBundle/Validator/Constraints/HasEnabledEntityValidator.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -95,6 +95,7 @@
 block discarded – undo
95 95
 
96 96
     /**
97 97
      * @param object $entity
98
+     * @param string|null $manager
98 99
      */
99 100
     private function getProperObjectManager(?string $manager, $entity): ?ObjectManager
100 101
     {
Please login to merge, or discard this patch.
src/Sylius/Bundle/UserBundle/Provider/AbstractUserProvider.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -91,6 +91,7 @@
 block discarded – undo
91 91
 
92 92
     /**
93 93
      * {@inheritdoc}
94
+     * @param string $class
94 95
      */
95 96
     public function supportsClass($class): bool
96 97
     {
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Matcher/ZoneMatcher.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -116,6 +116,9 @@
 block discarded – undo
116 116
         return $this->zoneRepository->findBy(['scope' => [$scope, Scope::ALL]]);
117 117
     }
118 118
 
119
+    /**
120
+     * @return AddressInterface
121
+     */
119 122
     private function getZoneByCode(string $code): ?ZoneInterface
120 123
     {
121 124
         return $this->zoneRepository->findOneBy(['code' => $code]);
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Model/CountryInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -29,8 +29,14 @@
 block discarded – undo
29 29
 
30 30
     public function hasProvinces(): bool;
31 31
 
32
+    /**
33
+     * @return void
34
+     */
32 35
     public function addProvince(ProvinceInterface $province): void;
33 36
 
37
+    /**
38
+     * @return void
39
+     */
34 40
     public function removeProvince(ProvinceInterface $province): void;
35 41
 
36 42
     public function hasProvince(ProvinceInterface $province): bool;
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/PaymentMethodInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@
 block discarded – undo
19 19
 
20 20
 interface PaymentMethodInterface extends BasePaymentMethodInterface, ChannelsAwareInterface
21 21
 {
22
+    /**
23
+     * @return void
24
+     */
22 25
     public function setGatewayConfig(?GatewayConfigInterface $gateway): void;
23 26
 
24 27
     public function getGatewayConfig(): ?GatewayConfigInterface;
Please login to merge, or discard this patch.
src/Sylius/Component/Currency/Model/Currency.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -62,6 +62,7 @@
 block discarded – undo
62 62
 
63 63
     /**
64 64
      * {@inheritdoc}
65
+     * @param string $code
65 66
      */
66 67
     public function setCode(?string $code): void
67 68
     {
Please login to merge, or discard this patch.
src/Sylius/Component/Currency/Model/CurrencyInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -22,5 +22,8 @@
 block discarded – undo
22 22
     TimestampableInterface,
23 23
     ResourceInterface
24 24
 {
25
+    /**
26
+     * @return string
27
+     */
25 28
     public function getName(): ?string;
26 29
 }
Please login to merge, or discard this patch.