Completed
Push — sonata-block-4 ( 430eec...7b4499 )
by Kamil
66:32 queued 45:06
created
src/Sylius/Behat/Page/Shop/Product/IndexPageInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -23,10 +23,19 @@
 block discarded – undo
23 23
 
24 24
     public function getLastProductNameFromList(): string;
25 25
 
26
+    /**
27
+     * @return void
28
+     */
26 29
     public function search(string $name): void;
27 30
 
31
+    /**
32
+     * @return void
33
+     */
28 34
     public function sort(string $orderNumber): void;
29 35
 
36
+    /**
37
+     * @return void
38
+     */
30 39
     public function clearFilter(): void;
31 40
 
32 41
     public function isProductOnList(string $productName): bool;
Please login to merge, or discard this patch.
src/Sylius/Bundle/AdminBundle/EmailManager/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/ShopBundle/EmailManager/ContactEmailManagerInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -17,6 +17,12 @@
 block discarded – undo
17 17
 
18 18
 interface ContactEmailManagerInterface
19 19
 {
20
+    /**
21
+     * @param ChannelInterface $channel
22
+     * @param string $localeCode
23
+     *
24
+     * @return void
25
+     */
20 26
     public function sendContactRequest(
21 27
         array $data,
22 28
         array $recipients,
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/OptionsResolver/LazyOption.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
     public static function findOneBy(RepositoryInterface $repository, string $field, array $criteria = []): \Closure
124 124
     {
125 125
         return
126
-            /** @param mixed $previousValue */
126
+            /** @param string $previousValue */
127 127
             function (Options $options, $previousValue) use ($repository, $field, $criteria): ?object {
128 128
                 if (null === $previousValue || [] === $previousValue) {
129 129
                     return $previousValue;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 
103 103
     public static function findBy(RepositoryInterface $repository, string $field, array $criteria = []): \Closure
104 104
     {
105
-        return function (Options $options, ?array $previousValues) use ($repository, $field, $criteria): ?iterable {
105
+        return function (Options $options, ?array $previousValues) use ($repository, $field, $criteria) : ?iterable {
106 106
             if (null === $previousValues || [] === $previousValues) {
107 107
                 return $previousValues;
108 108
             }
Please login to merge, or discard this patch.
Bundle/CoreBundle/Validator/Constraints/HasEnabledEntityValidator.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -95,6 +95,7 @@  discard block
 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
     {
@@ -119,6 +120,7 @@  discard block
 block discarded – undo
119 120
 
120 121
     /**
121 122
      * @throws ConstraintDefinitionException
123
+     * @param \Doctrine\Persistence\ObjectManager|null $objectManager
122 124
      */
123 125
     private function validateObjectManager(?ObjectManager $objectManager, string $exceptionMessage): void
124 126
     {
Please login to merge, or discard this patch.
src/Sylius/Bundle/UserBundle/DependencyInjection/Configuration.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
                                                         ->defaultValue('passwordResetToken')
76 76
                                                         ->validate()
77 77
                                                         ->ifTrue(
78
-                                                            /** @param mixed $tokenFieldName */
78
+                                                            /** @param ArrayNodeDefinition $tokenFieldName */
79 79
                                                             function ($tokenFieldName) {
80 80
                                                                 return !is_string($tokenFieldName);
81 81
                                                             }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
                                                         ->defaultValue('passwordResetToken')
97 97
                                                         ->validate()
98 98
                                                         ->ifTrue(
99
-                                                            /** @param mixed $passwordResetToken */
99
+                                                            /** @param ArrayNodeDefinition $passwordResetToken */
100 100
                                                             function ($passwordResetToken) {
101 101
                                                                 return !is_string($passwordResetToken);
102 102
                                                             }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                                                         ->defaultValue('emailVerificationToken')
123 123
                                                         ->validate()
124 124
                                                         ->ifTrue(
125
-                                                            /** @param mixed $emailVerificationToken */
125
+                                                            /** @param ArrayNodeDefinition $emailVerificationToken */
126 126
                                                             function ($emailVerificationToken) {
127 127
                                                                 return !is_string($emailVerificationToken);
128 128
                                                             }
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Model/CountryInterface.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,10 +20,13 @@  discard block
 block discarded – undo
20 20
 
21 21
 interface CountryInterface extends ToggleableInterface, ResourceInterface, CodeAwareInterface
22 22
 {
23
+    /**
24
+     * @return string|null
25
+     */
23 26
     public function getName(?string $locale = null): ?string;
24 27
 
25 28
     /**
26
-     * @return Collection|ProvinceInterface[]
29
+     * @return Collection
27 30
      *
28 31
      * @psalm-return Collection<array-key, ProvinceInterface>
29 32
      */
@@ -31,8 +34,14 @@  discard block
 block discarded – undo
31 34
 
32 35
     public function hasProvinces(): bool;
33 36
 
37
+    /**
38
+     * @return void
39
+     */
34 40
     public function addProvince(ProvinceInterface $province): void;
35 41
 
42
+    /**
43
+     * @return void
44
+     */
36 45
     public function removeProvince(ProvinceInterface $province): void;
37 46
 
38 47
     public function hasProvince(ProvinceInterface $province): bool;
Please login to merge, or discard this patch.
src/Sylius/Component/Attribute/Model/AttributeValueInterface.php 1 patch
Doc Comments   +29 added lines patch added patch discarded remove patch
@@ -31,28 +31,57 @@
 block discarded – undo
31 31
 
32 32
     public const STORAGE_TEXT = 'text';
33 33
 
34
+    /**
35
+     * @return AttributeSubjectInterface|null
36
+     */
34 37
     public function getSubject(): ?AttributeSubjectInterface;
35 38
 
39
+    /**
40
+     * @return void
41
+     */
36 42
     public function setSubject(?AttributeSubjectInterface $subject): void;
37 43
 
44
+    /**
45
+     * @return AttributeInterface|null
46
+     */
38 47
     public function getAttribute(): ?AttributeInterface;
39 48
 
49
+    /**
50
+     * @param \Sylius\Component\Product\Model\ProductAttributeInterface|null $attribute
51
+     *
52
+     * @return void
53
+     */
40 54
     public function setAttribute(?AttributeInterface $attribute): void;
41 55
 
42 56
     public function getValue();
43 57
 
58
+    /**
59
+     * @return void
60
+     */
44 61
     public function setValue($value): void;
45 62
 
63
+    /**
64
+     * @return string
65
+     */
46 66
     public function getCode(): ?string;
47 67
 
48 68
     public function getName(): ?string;
49 69
 
70
+    /**
71
+     * @return string
72
+     */
50 73
     public function getType(): ?string;
51 74
 
52 75
     /**
53 76
      * @throws \InvalidArgumentException
77
+     * @return string|null
54 78
      */
55 79
     public function getLocaleCode(): ?string;
56 80
 
81
+    /**
82
+     * @param string $localeCode
83
+     *
84
+     * @return void
85
+     */
57 86
     public function setLocaleCode(?string $localeCode): void;
58 87
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ChannelPricingInterface.php 1 patch
Doc Comments   +25 added lines patch added patch discarded remove patch
@@ -17,12 +17,26 @@  discard block
 block discarded – undo
17 17
 
18 18
 interface ChannelPricingInterface extends ResourceInterface
19 19
 {
20
+    /**
21
+     * @return ProductVariantInterface|null
22
+     */
20 23
     public function getProductVariant(): ?ProductVariantInterface;
21 24
 
25
+    /**
26
+     * @return void
27
+     */
22 28
     public function setProductVariant(?ProductVariantInterface $productVariant): void;
23 29
 
30
+    /**
31
+     * @return integer|null
32
+     */
24 33
     public function getPrice(): ?int;
25 34
 
35
+    /**
36
+     * @param integer $price
37
+     *
38
+     * @return void
39
+     */
26 40
     public function setPrice(?int $price): void;
27 41
 
28 42
     /**
@@ -30,10 +44,21 @@  discard block
 block discarded – undo
30 44
      */
31 45
     public function getChannelCode(): ?string;
32 46
 
47
+    /**
48
+     * @return void
49
+     */
33 50
     public function setChannelCode(?string $channelCode): void;
34 51
 
52
+    /**
53
+     * @return integer|null
54
+     */
35 55
     public function getOriginalPrice(): ?int;
36 56
 
57
+    /**
58
+     * @param integer $originalPrice
59
+     *
60
+     * @return void
61
+     */
37 62
     public function setOriginalPrice(?int $originalPrice): void;
38 63
 
39 64
     public function isPriceReduced(): bool;
Please login to merge, or discard this patch.