Completed
Push — phpspec-7 ( 2faf6a )
by Kamil
62:22 queued 34:00
created
src/Sylius/Behat/Page/Admin/Product/UpdateSimpleProductPageInterface.php 1 patch
Doc Comments   +71 added lines patch added patch discarded remove patch
@@ -25,14 +25,29 @@  discard block
 block discarded – undo
25 25
 
26 26
     public function isSlugReadonlyIn(string $locale): bool;
27 27
 
28
+    /**
29
+     * @return void
30
+     */
28 31
     public function specifyPrice(ChannelInterface $channel, string $price): void;
29 32
 
33
+    /**
34
+     * @return void
35
+     */
30 36
     public function specifyOriginalPrice(ChannelInterface $channel, string $originalPrice): void;
31 37
 
38
+    /**
39
+     * @return void
40
+     */
32 41
     public function nameItIn(string $name, string $localeCode): void;
33 42
 
43
+    /**
44
+     * @return void
45
+     */
34 46
     public function addSelectedAttributes(): void;
35 47
 
48
+    /**
49
+     * @return void
50
+     */
36 51
     public function removeAttribute(string $attributeName, string $localeCode): void;
37 52
 
38 53
     public function getAttributeValue(string $attributeName, string $localeCode): string;
@@ -45,48 +60,83 @@  discard block
 block discarded – undo
45 60
 
46 61
     public function isMainTaxonChosen(string $taxonName): bool;
47 62
 
63
+    /**
64
+     * @return void
65
+     */
48 66
     public function selectMainTaxon(TaxonInterface $taxon): void;
49 67
 
68
+    /**
69
+     * @return void
70
+     */
50 71
     public function disableTracking(): void;
51 72
 
73
+    /**
74
+     * @return void
75
+     */
52 76
     public function enableTracking(): void;
53 77
 
54 78
     public function isTracked(): bool;
55 79
 
80
+    /**
81
+     * @return void
82
+     */
56 83
     public function enableSlugModification(string $locale): void;
57 84
 
58 85
     public function isImageWithTypeDisplayed(string $type): bool;
59 86
 
60 87
     /**
61 88
      * @param string $type
89
+     * @return void
62 90
      */
63 91
     public function attachImage(string $path, string $type = null): void;
64 92
 
93
+    /**
94
+     * @return void
95
+     */
65 96
     public function changeImageWithType(string $type, string $path): void;
66 97
 
98
+    /**
99
+     * @return void
100
+     */
67 101
     public function removeImageWithType(string $type): void;
68 102
 
103
+    /**
104
+     * @return void
105
+     */
69 106
     public function removeFirstImage(): void;
70 107
 
108
+    /**
109
+     * @return void
110
+     */
71 111
     public function modifyFirstImageType(string $type): void;
72 112
 
73 113
     public function countImages(): int;
74 114
 
75 115
     /**
76 116
      * @param string[] $productsNames
117
+     * @return void
77 118
      */
78 119
     public function associateProducts(ProductAssociationTypeInterface $productAssociationType, array $productsNames): void;
79 120
 
80 121
     public function hasAssociatedProduct(string $productName, ProductAssociationTypeInterface $productAssociationType): bool;
81 122
 
123
+    /**
124
+     * @return void
125
+     */
82 126
     public function removeAssociatedProduct(string $productName, ProductAssociationTypeInterface $productAssociationType): void;
83 127
 
84 128
     public function getPricingConfigurationForChannelAndCurrencyCalculator(ChannelInterface $channel, CurrencyInterface $currency): string;
85 129
 
130
+    /**
131
+     * @return void
132
+     */
86 133
     public function activateLanguageTab(string $locale): void;
87 134
 
88 135
     public function getSlug(string $locale): string;
89 136
 
137
+    /**
138
+     * @return void
139
+     */
90 140
     public function specifySlugIn(string $slug, string $locale): void;
91 141
 
92 142
     public function getPriceForChannel(ChannelInterface $channel): string;
@@ -95,24 +145,45 @@  discard block
 block discarded – undo
95 145
 
96 146
     public function isShippingRequired(): bool;
97 147
 
148
+    /**
149
+     * @return void
150
+     */
98 151
     public function goToVariantsList(): void;
99 152
 
153
+    /**
154
+     * @return void
155
+     */
100 156
     public function goToVariantCreation(): void;
101 157
 
158
+    /**
159
+     * @return void
160
+     */
102 161
     public function goToVariantGeneration(): void;
103 162
 
104 163
     public function hasInventoryTab(): bool;
105 164
 
106 165
     public function isShowInShopButtonDisabled(): bool;
107 166
 
167
+    /**
168
+     * @return void
169
+     */
108 170
     public function showProductInChannel(string $channel): void;
109 171
 
172
+    /**
173
+     * @return void
174
+     */
110 175
     public function showProductInSingleChannel(): void;
111 176
 
177
+    /**
178
+     * @return void
179
+     */
112 180
     public function disable(): void;
113 181
 
114 182
     public function isEnabled(): bool;
115 183
 
184
+    /**
185
+     * @return void
186
+     */
116 187
     public function enable(): void;
117 188
 
118 189
     public function hasNoPriceForChannel(string $channelName): bool;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/ProductVariant/CreatePageInterface.php 1 patch
Doc Comments   +30 added lines patch added patch discarded remove patch
@@ -18,27 +18,57 @@
 block discarded – undo
18 18
 
19 19
 interface CreatePageInterface extends BaseCreatePageInterface
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function specifyPrice(string $price, ChannelInterface $channelName): void;
22 25
 
26
+    /**
27
+     * @return void
28
+     */
23 29
     public function specifyOriginalPrice(string $originalPrice, ChannelInterface $channelName): void;
24 30
 
31
+    /**
32
+     * @return void
33
+     */
25 34
     public function specifyHeightWidthDepthAndWeight(string $height, string $width, string $depth, string $weight): void;
26 35
 
36
+    /**
37
+     * @return void
38
+     */
27 39
     public function specifyCode(string $code): void;
28 40
 
41
+    /**
42
+     * @return void
43
+     */
29 44
     public function specifyCurrentStock(string $currentStock): void;
30 45
 
46
+    /**
47
+     * @return void
48
+     */
31 49
     public function nameItIn(string $name, string $language): void;
32 50
 
51
+    /**
52
+     * @return void
53
+     */
33 54
     public function selectOption(string $optionName, string $optionValue): void;
34 55
 
56
+    /**
57
+     * @return void
58
+     */
35 59
     public function choosePricingCalculator(string $name): void;
36 60
 
37 61
     public function getValidationMessageForForm(): string;
38 62
 
63
+    /**
64
+     * @return void
65
+     */
39 66
     public function selectShippingCategory(string $shippingCategoryName): void;
40 67
 
41 68
     public function getPricesValidationMessage(): string;
42 69
 
70
+    /**
71
+     * @return void
72
+     */
43 73
     public function setShippingRequired(bool $isShippingRequired): void;
44 74
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/ProductVariant/GeneratePageInterface.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -18,12 +18,24 @@
 block discarded – undo
18 18
 
19 19
 interface GeneratePageInterface extends SymfonyPageInterface
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function generate(): void;
22 25
 
26
+    /**
27
+     * @return void
28
+     */
23 29
     public function specifyPrice(int $nth, int $price, ChannelInterface $channel): void;
24 30
 
31
+    /**
32
+     * @return void
33
+     */
25 34
     public function specifyCode(int $nth, string $code): void;
26 35
 
36
+    /**
37
+     * @return void
38
+     */
27 39
     public function removeVariant(int $nth): void;
28 40
 
29 41
     public function getValidationMessage(string $element, int $position): string;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Shipment/IndexPageInterface.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -17,20 +17,38 @@
 block discarded – undo
17 17
 
18 18
 interface IndexPageInterface extends BaseIndexPageInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function chooseStateToFilter(string $shipmentState): void;
21 24
 
25
+    /**
26
+     * @return void
27
+     */
22 28
     public function chooseChannelFilter(string $channelName): void;
23 29
 
30
+    /**
31
+     * @return void
32
+     */
24 33
     public function chooseShippingMethodFilter(string $shippingMethodName): void;
25 34
 
26 35
     public function isShipmentWithOrderNumberInPosition(string $orderNumber, int $position): bool;
27 36
 
37
+    /**
38
+     * @return void
39
+     */
28 40
     public function shipShipmentOfOrderWithNumber(string $orderNumber): void;
29 41
 
30 42
     public function getShipmentStatusByOrderNumber(string $orderNumber): string;
31 43
 
44
+    /**
45
+     * @return void
46
+     */
32 47
     public function showOrderPageForNthShipment(int $position): void;
33 48
 
49
+    /**
50
+     * @return void
51
+     */
34 52
     public function shipShipmentOfOrderWithTrackingCode(string $orderNumber, string $trackingCode): void;
35 53
 
36 54
     public function getShippedAtDate(string $orderNumber): string;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/ShippingMethod/CreatePageInterface.php 1 patch
Doc Comments   +38 added lines patch added patch discarded remove patch
@@ -18,20 +18,46 @@  discard block
 block discarded – undo
18 18
 
19 19
 interface CreatePageInterface extends BaseCreatePageInterface
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function specifyCode(string $code): void;
22 25
 
26
+    /**
27
+     * @param null|integer $position
28
+     *
29
+     * @return void
30
+     */
23 31
     public function specifyPosition(?int $position): void;
24 32
 
33
+    /**
34
+     * @return void
35
+     */
25 36
     public function nameIt(string $name, string $language): void;
26 37
 
38
+    /**
39
+     * @return void
40
+     */
27 41
     public function describeIt(string $description, string $languageCode): void;
28 42
 
43
+    /**
44
+     * @return void
45
+     */
29 46
     public function specifyAmountForChannel(string $channelCode, string $amount): void;
30 47
 
48
+    /**
49
+     * @return void
50
+     */
31 51
     public function chooseZone(string $name): void;
32 52
 
53
+    /**
54
+     * @return void
55
+     */
33 56
     public function chooseCalculator(string $name): void;
34 57
 
58
+    /**
59
+     * @return void
60
+     */
35 61
     public function checkChannel($channelName): void;
36 62
 
37 63
     /**
@@ -39,11 +65,23 @@  discard block
 block discarded – undo
39 65
      */
40 66
     public function getValidationMessageForAmount(string $channelCode): string;
41 67
 
68
+    /**
69
+     * @return void
70
+     */
42 71
     public function addRule(string $ruleName): void;
43 72
 
73
+    /**
74
+     * @return void
75
+     */
44 76
     public function selectRuleOption(string $option, string $value, bool $multiple = false): void;
45 77
 
78
+    /**
79
+     * @return void
80
+     */
46 81
     public function fillRuleOption(string $option, string $value): void;
47 82
 
83
+    /**
84
+     * @return void
85
+     */
48 86
     public function fillRuleOptionForChannel(string $channelName, string $option, string $value): void;
49 87
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Taxon/UpdatePageInterface.php 1 patch
Doc Comments   +37 added lines patch added patch discarded remove patch
@@ -19,18 +19,31 @@  discard block
 block discarded – undo
19 19
 
20 20
 interface UpdatePageInterface extends BaseUpdatePageInterface
21 21
 {
22
+    /**
23
+     * @return void
24
+     */
22 25
     public function describeItAs(string $description, string $languageCode): void;
23 26
 
27
+    /**
28
+     * @return void
29
+     */
24 30
     public function chooseParent(TaxonInterface $taxon): void;
25 31
 
26 32
     public function isCodeDisabled(): bool;
27 33
 
34
+    /**
35
+     * @return void
36
+     */
28 37
     public function nameIt(string $name, string $languageCode): void;
29 38
 
39
+    /**
40
+     * @return void
41
+     */
30 42
     public function specifySlug(string $slug, string $languageCode): void;
31 43
 
32 44
     /**
33 45
      * @param string $type
46
+     * @return void
34 47
      */
35 48
     public function attachImage(string $path, string $type = null): void;
36 49
 
@@ -38,16 +51,31 @@  discard block
 block discarded – undo
38 51
 
39 52
     public function isSlugReadonly(string $languageCode = 'en_US'): bool;
40 53
 
54
+    /**
55
+     * @return void
56
+     */
41 57
     public function removeImageWithType(string $type): void;
42 58
 
59
+    /**
60
+     * @return void
61
+     */
43 62
     public function removeFirstImage(): void;
44 63
 
64
+    /**
65
+     * @return void
66
+     */
45 67
     public function enableSlugModification(string $languageCode = 'en_US'): void;
46 68
 
47 69
     public function countImages(): int;
48 70
 
71
+    /**
72
+     * @return void
73
+     */
49 74
     public function changeImageWithType(string $type, string $path): void;
50 75
 
76
+    /**
77
+     * @return void
78
+     */
51 79
     public function modifyFirstImageType(string $type): void;
52 80
 
53 81
     public function getParent(): string;
@@ -64,10 +92,19 @@  discard block
 block discarded – undo
64 92
      */
65 93
     public function getValidationMessageForImageAtPlace(int $place): string;
66 94
 
95
+    /**
96
+     * @return void
97
+     */
67 98
     public function activateLanguageTab(string $locale): void;
68 99
 
100
+    /**
101
+     * @return void
102
+     */
69 103
     public function enable(): void;
70 104
 
105
+    /**
106
+     * @return void
107
+     */
71 108
     public function disable(): void;
72 109
 
73 110
     public function isEnabled(): bool;
Please login to merge, or discard this patch.
src/Sylius/Bundle/AdminBundle/Controller/DashboardController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -88,6 +88,9 @@
 block discarded – undo
88 88
         );
89 89
     }
90 90
 
91
+    /**
92
+     * @return ChannelInterface
93
+     */
91 94
     private function findChannelByCodeOrFindFirst(?string $channelCode): ?ChannelInterface
92 95
     {
93 96
         if (null !== $channelCode) {
Please login to merge, or discard this patch.
src/Sylius/Bundle/ApiBundle/Command/OrderTokenValueAwareInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -16,7 +16,13 @@
 block discarded – undo
16 16
 /** @experimental */
17 17
 interface OrderTokenValueAwareInterface extends CommandAwareDataTransformerInterface
18 18
 {
19
+    /**
20
+     * @return string|null
21
+     */
19 22
     public function getOrderTokenValue(): ?string;
20 23
 
24
+    /**
25
+     * @return void
26
+     */
21 27
     public function setOrderTokenValue(?string $orderTokenValue): void;
22 28
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ApiBundle/Command/ShopUserIdAwareInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -9,5 +9,8 @@
 block discarded – undo
9 9
 {
10 10
     public function getShopUserId();
11 11
 
12
+    /**
13
+     * @return void
14
+     */
12 15
     public function setShopUserId($shopUserId): void;
13 16
 }
Please login to merge, or discard this patch.