Completed
Push — theme-collector ( e0987d )
by Kamil
23:25
created
src/Sylius/Component/Product/Model/Product.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -444,6 +444,7 @@
 block discarded – undo
444 444
 
445 445
     /**
446 446
      * {@inheritdoc}
447
+     * @param string $localeCode
447 448
      */
448 449
     private function getAttributeInDifferentLocale(
449 450
         ProductAttributeValueInterface $attributeValue,
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Product\Model;
15 15
 
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     /**
101 101
      * @param string $code
102 102
      */
103
-    public function setCode(?string $code): void
103
+    public function setCode(?string $code) : void
104 104
     {
105 105
         $this->code = $code;
106 106
     }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     /**
117 117
      * {@inheritdoc}
118 118
      */
119
-    public function setName(?string $name): void
119
+    public function setName(?string $name) : void
120 120
     {
121 121
         $this->getTranslation()->setName($name);
122 122
     }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     /**
133 133
      * {@inheritdoc}
134 134
      */
135
-    public function setSlug(?string $slug): void
135
+    public function setSlug(?string $slug) : void
136 136
     {
137 137
         $this->getTranslation()->setSlug($slug);
138 138
     }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     /**
149 149
      * {@inheritdoc}
150 150
      */
151
-    public function setDescription(?string $description): void
151
+    public function setDescription(?string $description) : void
152 152
     {
153 153
         $this->getTranslation()->setDescription($description);
154 154
     }
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     /**
165 165
      * {@inheritdoc}
166 166
      */
167
-    public function setMetaKeywords(?string $metaKeywords): void
167
+    public function setMetaKeywords(?string $metaKeywords) : void
168 168
     {
169 169
         $this->getTranslation()->setMetaKeywords($metaKeywords);
170 170
     }
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     /**
181 181
      * {@inheritdoc}
182 182
      */
183
-    public function setMetaDescription(?string $metaDescription): void
183
+    public function setMetaDescription(?string $metaDescription) : void
184 184
     {
185 185
         $this->getTranslation()->setMetaDescription($metaDescription);
186 186
     }
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
     private function getAttributeInDifferentLocale(
449 449
         ProductAttributeValueInterface $attributeValue,
450 450
         ?string $localeCode
451
-    ): AttributeValueInterface {
451
+    ) : AttributeValueInterface {
452 452
         if (!$this->hasAttributeByCodeAndLocale($attributeValue->getCode(), $localeCode)) {
453 453
             return $attributeValue;
454 454
         }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductAssociationInterface.php 2 patches
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -29,6 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     /**
31 31
      * @param ProductAssociationTypeInterface|null $type
32
+     * @return void
32 33
      */
33 34
     public function setType(?ProductAssociationTypeInterface $type): void;
34 35
 
@@ -39,6 +40,7 @@  discard block
 block discarded – undo
39 40
 
40 41
     /**
41 42
      * @param ProductInterface|null $owner
43
+     * @return void
42 44
      */
43 45
     public function setOwner(?ProductInterface $owner): void;
44 46
 
@@ -49,11 +51,13 @@  discard block
 block discarded – undo
49 51
 
50 52
     /**
51 53
      * @param ProductInterface $product
54
+     * @return void
52 55
      */
53 56
     public function addAssociatedProduct(ProductInterface $product): void;
54 57
 
55 58
     /**
56 59
      * @param ProductInterface $product
60
+     * @return void
57 61
      */
58 62
     public function removeAssociatedProduct(ProductInterface $product): void;
59 63
 
@@ -64,5 +68,8 @@  discard block
 block discarded – undo
64 68
      */
65 69
     public function hasAssociatedProduct(ProductInterface $product): bool;
66 70
 
71
+    /**
72
+     * @return void
73
+     */
67 74
     public function clearAssociatedProducts(): void;
68 75
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Product\Model;
15 15
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * @param ProductAssociationTypeInterface|null $type
32 32
      */
33
-    public function setType(?ProductAssociationTypeInterface $type): void;
33
+    public function setType(?ProductAssociationTypeInterface $type) : void;
34 34
 
35 35
     /**
36 36
      * @return ProductInterface|null
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * @param ProductInterface|null $owner
42 42
      */
43
-    public function setOwner(?ProductInterface $owner): void;
43
+    public function setOwner(?ProductInterface $owner) : void;
44 44
 
45 45
     /**
46 46
      * @return Collection|ProductInterface[]
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductAssociationTypeInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -29,6 +29,7 @@
 block discarded – undo
29 29
 
30 30
     /**
31 31
      * @param string|null $name
32
+     * @return void
32 33
      */
33 34
     public function setName(?string $name): void;
34 35
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Product\Model;
15 15
 
@@ -36,5 +36,5 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * @param string|null $name
38 38
      */
39
-    public function setName(?string $name): void;
39
+    public function setName(?string $name) : void;
40 40
 }
Please login to merge, or discard this patch.
Component/Product/Model/ProductAssociationTypeTranslationInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -29,6 +29,7 @@
 block discarded – undo
29 29
 
30 30
     /**
31 31
      * @param string|null $name
32
+     * @return void
32 33
      */
33 34
     public function setName(?string $name): void;
34 35
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Product\Model;
15 15
 
@@ -28,5 +28,5 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * @param string|null $name
30 30
      */
31
-    public function setName(?string $name): void;
31
+    public function setName(?string $name) : void;
32 32
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductAttributeValueInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param ProductInterface|null $product
30
+     * @return void
30 31
      */
31 32
     public function setProduct(?ProductInterface $product): void;
32 33
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Product\Model;
15 15
 
@@ -28,5 +28,5 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * @param ProductInterface|null $product
30 30
      */
31
-    public function setProduct(?ProductInterface $product): void;
31
+    public function setProduct(?ProductInterface $product) : void;
32 32
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductInterface.php 2 patches
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -42,6 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
     /**
44 44
      * @param string|null $name
45
+     * @return void
45 46
      */
46 47
     public function setName(?string $name): void;
47 48
 
@@ -52,6 +53,7 @@  discard block
 block discarded – undo
52 53
 
53 54
     /**
54 55
      * @param string|null $description
56
+     * @return void
55 57
      */
56 58
     public function setDescription(?string $description): void;
57 59
 
@@ -62,6 +64,7 @@  discard block
 block discarded – undo
62 64
 
63 65
     /**
64 66
      * @param string|null $metaKeywords
67
+     * @return void
65 68
      */
66 69
     public function setMetaKeywords(?string $metaKeywords): void;
67 70
 
@@ -72,6 +75,7 @@  discard block
 block discarded – undo
72 75
 
73 76
     /**
74 77
      * @param string|null $metaDescription
78
+     * @return void
75 79
      */
76 80
     public function setMetaDescription(?string $metaDescription): void;
77 81
 
@@ -87,11 +91,13 @@  discard block
 block discarded – undo
87 91
 
88 92
     /**
89 93
      * @param ProductVariantInterface $variant
94
+     * @return void
90 95
      */
91 96
     public function addVariant(ProductVariantInterface $variant): void;
92 97
 
93 98
     /**
94 99
      * @param ProductVariantInterface $variant
100
+     * @return void
95 101
      */
96 102
     public function removeVariant(ProductVariantInterface $variant): void;
97 103
 
@@ -114,11 +120,13 @@  discard block
 block discarded – undo
114 120
 
115 121
     /**
116 122
      * @param ProductOptionInterface $option
123
+     * @return void
117 124
      */
118 125
     public function addOption(ProductOptionInterface $option): void;
119 126
 
120 127
     /**
121 128
      * @param ProductOptionInterface $option
129
+     * @return void
122 130
      */
123 131
     public function removeOption(ProductOptionInterface $option): void;
124 132
 
@@ -136,11 +144,13 @@  discard block
 block discarded – undo
136 144
 
137 145
     /**
138 146
      * @param ProductAssociationInterface $association
147
+     * @return void
139 148
      */
140 149
     public function addAssociation(ProductAssociationInterface $association): void;
141 150
 
142 151
     /**
143 152
      * @param ProductAssociationInterface $association
153
+     * @return void
144 154
      */
145 155
     public function removeAssociation(ProductAssociationInterface $association): void;
146 156
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Product\Model;
15 15
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     /**
44 44
      * @param string|null $name
45 45
      */
46
-    public function setName(?string $name): void;
46
+    public function setName(?string $name) : void;
47 47
 
48 48
     /**
49 49
      * @return string|null
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     /**
54 54
      * @param string|null $description
55 55
      */
56
-    public function setDescription(?string $description): void;
56
+    public function setDescription(?string $description) : void;
57 57
 
58 58
     /**
59 59
      * @return string|null
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     /**
64 64
      * @param string|null $metaKeywords
65 65
      */
66
-    public function setMetaKeywords(?string $metaKeywords): void;
66
+    public function setMetaKeywords(?string $metaKeywords) : void;
67 67
 
68 68
     /**
69 69
      * @return string|null
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     /**
74 74
      * @param string|null $metaDescription
75 75
      */
76
-    public function setMetaDescription(?string $metaDescription): void;
76
+    public function setMetaDescription(?string $metaDescription) : void;
77 77
 
78 78
     /**
79 79
      * @return bool
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductOptionInterface.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -34,6 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
     /**
36 36
      * @param int $position
37
+     * @return void
37 38
      */
38 39
     public function setPosition(?int $position): void;
39 40
 
@@ -44,11 +45,13 @@  discard block
 block discarded – undo
44 45
 
45 46
     /**
46 47
      * @param ProductOptionValueInterface $optionValue
48
+     * @return void
47 49
      */
48 50
     public function addValue(ProductOptionValueInterface $optionValue): void;
49 51
 
50 52
     /**
51 53
      * @param ProductOptionValueInterface $optionValue
54
+     * @return void
52 55
      */
53 56
     public function removeValue(ProductOptionValueInterface $optionValue): void;
54 57
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Product\Model;
15 15
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     /**
36 36
      * @param int $position
37 37
      */
38
-    public function setPosition(?int $position): void;
38
+    public function setPosition(?int $position) : void;
39 39
 
40 40
     /**
41 41
      * @return Collection|ProductOptionValueInterface[]
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductOptionTranslationInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param string $name
30
+     * @return void
30 31
      */
31 32
     public function setName(?string $name): void;
32 33
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Product\Model;
15 15
 
@@ -28,5 +28,5 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * @param string $name
30 30
      */
31
-    public function setName(?string $name): void;
31
+    public function setName(?string $name) : void;
32 32
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductOptionValueInterface.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -29,6 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     /**
31 31
      * @param ProductOptionInterface $option
32
+     * @return void
32 33
      */
33 34
     public function setOption(?ProductOptionInterface $option): void;
34 35
 
@@ -39,6 +40,7 @@  discard block
 block discarded – undo
39 40
 
40 41
     /**
41 42
      * @param string|null $value
43
+     * @return void
42 44
      */
43 45
     public function setValue(?string $value): void;
44 46
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Product\Model;
15 15
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * @param ProductOptionInterface $option
32 32
      */
33
-    public function setOption(?ProductOptionInterface $option): void;
33
+    public function setOption(?ProductOptionInterface $option) : void;
34 34
 
35 35
     /**
36 36
      * @return string|null
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * @param string|null $value
42 42
      */
43
-    public function setValue(?string $value): void;
43
+    public function setValue(?string $value) : void;
44 44
 
45 45
     /**
46 46
      * @return string|null
Please login to merge, or discard this patch.