Completed
Push — phpspec-7 ( 2faf6a )
by Kamil
62:22 queued 34:00
created
src/Sylius/Behat/Service/SecurityServiceInterface.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -21,9 +21,13 @@  discard block
 block discarded – undo
21 21
 {
22 22
     /**
23 23
      * @throws \InvalidArgumentException
24
+     * @return void
24 25
      */
25 26
     public function logIn(UserInterface $user): void;
26 27
 
28
+    /**
29
+     * @return void
30
+     */
27 31
     public function logOut(): void;
28 32
 
29 33
     /**
@@ -31,5 +35,8 @@  discard block
 block discarded – undo
31 35
      */
32 36
     public function getCurrentToken(): TokenInterface;
33 37
 
38
+    /**
39
+     * @return void
40
+     */
34 41
     public function restoreToken(TokenInterface $token): void;
35 42
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ShopBundle/EventListener/NonChannelLocaleListener.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -86,6 +86,9 @@
 block discarded – undo
86 86
         }
87 87
     }
88 88
 
89
+    /**
90
+     * @param FirewallConfig $firewall
91
+     */
89 92
     private function isFirewallSupported(?FirewallConfig $firewall = null): bool
90 93
     {
91 94
         return
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/PromotionCouponInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -17,11 +17,20 @@
 block discarded – undo
17 17
 
18 18
 interface PromotionCouponInterface extends BasePromotionCouponInterface
19 19
 {
20
+    /**
21
+     * @return integer|null
22
+     */
20 23
     public function getPerCustomerUsageLimit(): ?int;
21 24
 
25
+    /**
26
+     * @return void
27
+     */
22 28
     public function setPerCustomerUsageLimit(?int $perCustomerUsageLimit): void;
23 29
 
24 30
     public function isReusableFromCancelledOrders(): bool;
25 31
 
32
+    /**
33
+     * @return void
34
+     */
26 35
     public function setReusableFromCancelledOrders(bool $reusableFromCancelledOrders): void;
27 36
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/Factory/PromotionExampleFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -164,6 +164,9 @@
 block discarded – undo
164 164
         ;
165 165
     }
166 166
 
167
+    /**
168
+     * @param FactoryInterface|null $couponFactory
169
+     */
167 170
     private static function getCouponNormalizer(?FactoryInterface $couponFactory): \Closure
168 171
     {
169 172
         return function (Options $options, array $couponDefinitions) use ($couponFactory): array {
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/ProductVariant/UpdatePageInterface.php 1 patch
Doc Comments   +27 added lines patch added patch discarded remove patch
@@ -19,8 +19,14 @@  discard block
 block discarded – undo
19 19
 
20 20
 interface UpdatePageInterface extends BaseUpdatePageInterface
21 21
 {
22
+    /**
23
+     * @return void
24
+     */
22 25
     public function disableTracking(): void;
23 26
 
27
+    /**
28
+     * @return void
29
+     */
24 30
     public function enableTracking(): void;
25 31
 
26 32
     public function isCodeDisabled(): bool;
@@ -39,21 +45,42 @@  discard block
 block discarded – undo
39 45
 
40 46
     public function getNameInLanguage(string $language): string;
41 47
 
48
+    /**
49
+     * @return void
50
+     */
42 51
     public function selectOption(string $optionName, string $optionValue): void;
43 52
 
44 53
     public function isShowInShopButtonDisabled(): bool;
45 54
 
55
+    /**
56
+     * @return void
57
+     */
46 58
     public function showProductInChannel(string $channel): void;
47 59
 
60
+    /**
61
+     * @return void
62
+     */
48 63
     public function showProductInSingleChannel(): void;
49 64
 
65
+    /**
66
+     * @return void
67
+     */
50 68
     public function specifyCurrentStock(int $amount): void;
51 69
 
70
+    /**
71
+     * @return void
72
+     */
52 73
     public function specifyPrice(int $price): void;
53 74
 
75
+    /**
76
+     * @return void
77
+     */
54 78
     public function disable(): void;
55 79
 
56 80
     public function isEnabled(): bool;
57 81
 
82
+    /**
83
+     * @return void
84
+     */
58 85
     public function enable(): void;
59 86
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Product/ShowPageInterface.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -22,24 +22,31 @@  discard block
 block discarded – undo
22 22
 {
23 23
     /**
24 24
      * @throws ElementNotFoundException
25
+     * @return void
25 26
      */
26 27
     public function addToCart(): void;
27 28
 
28 29
     /**
29 30
      * @throws ElementNotFoundException
31
+     * @return void
30 32
      */
31 33
     public function addToCartWithQuantity(string $quantity): void;
32 34
 
33 35
     /**
34 36
      * @throws ElementNotFoundException
37
+     * @return void
35 38
      */
36 39
     public function addToCartWithVariant(string $variant): void;
37 40
 
38 41
     /**
39 42
      * @throws ElementNotFoundException
43
+     * @return void
40 44
      */
41 45
     public function addToCartWithOption(ProductOptionInterface $option, string $optionValue): void;
42 46
 
47
+    /**
48
+     * @return null|string
49
+     */
43 50
     public function getAttributeByName(string $name): ?string;
44 51
 
45 52
     public function getAttributes(): array;
@@ -72,10 +79,19 @@  discard block
 block discarded – undo
72 79
 
73 80
     public function countReviews(): int;
74 81
 
82
+    /**
83
+     * @return void
84
+     */
75 85
     public function selectOption(string $optionCode, string $optionValue): void;
76 86
 
87
+    /**
88
+     * @return void
89
+     */
77 90
     public function selectVariant(string $variantName): void;
78 91
 
92
+    /**
93
+     * @return void
94
+     */
79 95
     public function visit(string $url): void;
80 96
 
81 97
     public function getVariantsNames(): array;
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductVariantInterface.php 1 patch
Doc Comments   +27 added lines patch added patch discarded remove patch
@@ -28,8 +28,14 @@  discard block
 block discarded – undo
28 28
     ToggleableInterface,
29 29
     TranslatableInterface
30 30
 {
31
+    /**
32
+     * @return string
33
+     */
31 34
     public function getName(): ?string;
32 35
 
36
+    /**
37
+     * @return void
38
+     */
33 39
     public function setName(?string $name): void;
34 40
 
35 41
     public function getDescriptor(): string;
@@ -41,21 +47,42 @@  discard block
 block discarded – undo
41 47
      */
42 48
     public function getOptionValues(): Collection;
43 49
 
50
+    /**
51
+     * @return void
52
+     */
44 53
     public function addOptionValue(ProductOptionValueInterface $optionValue): void;
45 54
 
55
+    /**
56
+     * @return void
57
+     */
46 58
     public function removeOptionValue(ProductOptionValueInterface $optionValue): void;
47 59
 
48 60
     public function hasOptionValue(ProductOptionValueInterface $optionValue): bool;
49 61
 
62
+    /**
63
+     * @return ProductInterface
64
+     */
50 65
     public function getProduct(): ?ProductInterface;
51 66
 
67
+    /**
68
+     * @return void
69
+     */
52 70
     public function setProduct(?ProductInterface $product): void;
53 71
 
72
+    /**
73
+     * @return integer
74
+     */
54 75
     public function getPosition(): ?int;
55 76
 
77
+    /**
78
+     * @param integer $position
79
+     *
80
+     * @return void
81
+     */
56 82
     public function setPosition(?int $position): void;
57 83
 
58 84
     /**
85
+     * @param string $locale
59 86
      * @return ProductVariantTranslationInterface
60 87
      */
61 88
     public function getTranslation(?string $locale = null): TranslationInterface;
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
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/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 null|string
27
+     */
25 28
     public function getName(): ?string;
26 29
 }
Please login to merge, or discard this patch.