Completed
Push — locale-in-url ( c8ed20...ec55a8 )
by Kamil
46:19 queued 21:47
created
Sylius/Behat/Page/Admin/Product/CreateConfigurableProductPageInterface.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -20,23 +20,27 @@
 block discarded – undo
20 20
 {
21 21
     /**
22 22
      * @param string $optionName
23
+     * @return void
23 24
      */
24 25
     public function selectOption($optionName);
25 26
 
26 27
     /**
27 28
      * @param string $code
29
+     * @return void
28 30
      */
29 31
     public function specifyCode($code);
30 32
 
31 33
     /**
32 34
      * @param string $name
33 35
      * @param string $localeCode
36
+     * @return void
34 37
      */
35 38
     public function nameItIn($name, $localeCode);
36 39
 
37 40
     /**
38 41
      * @param string $path
39 42
      * @param string $type
43
+     * @return void
40 44
      */
41 45
     public function attachImage($path, $type = null);
42 46
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/CreateSimpleProductPageInterface.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -24,16 +24,19 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * @param string $channelName
26 26
      * @param int $price
27
+     * @return void
27 28
      */
28 29
     public function specifyPrice($channelName, $price);
29 30
 
30 31
     /**
31 32
      * @param string $name
33
+     * @return void
32 34
      */
33 35
     public function choosePricingCalculator($name);
34 36
 
35 37
     /**
36 38
      * @param string $channelName
39
+     * @return void
37 40
      */
38 41
     public function checkChannel($channelName);
39 42
 
@@ -41,23 +44,27 @@  discard block
 block discarded – undo
41 44
      * @param int $price
42 45
      * @param ChannelInterface $channel
43 46
      * @param CurrencyInterface $currency
47
+     * @return void
44 48
      */
45 49
     public function specifyPriceForChannelAndCurrency($price, ChannelInterface $channel, CurrencyInterface $currency);
46 50
 
47 51
     /**
48 52
      * @param string $code
53
+     * @return void
49 54
      */
50 55
     public function specifyCode($code);
51 56
 
52 57
     /**
53 58
      * @param string $name
54 59
      * @param string $localeCode
60
+     * @return void
55 61
      */
56 62
     public function nameItIn($name, $localeCode);
57 63
 
58 64
     /**
59 65
      * @param string $slug
60 66
      * @param string $locale
67
+     * @return void
61 68
      */
62 69
     public function specifySlugIn($slug, $locale);
63 70
 
@@ -65,40 +72,47 @@  discard block
 block discarded – undo
65 72
      * @param string $attributeName
66 73
      * @param string $value
67 74
      * @param string $localeCode
75
+     * @return void
68 76
      */
69 77
     public function addAttribute($attributeName, $value, $localeCode);
70 78
 
71 79
     /**
72 80
      * @param string $attributeName
73 81
      * @param string $localeCode
82
+     * @return void
74 83
      */
75 84
     public function removeAttribute($attributeName, $localeCode);
76 85
 
77 86
     /**
78 87
      * @param string $path
79 88
      * @param string $type
89
+     * @return void
80 90
      */
81 91
     public function attachImage($path, $type = null);
82 92
 
83 93
     /**
84 94
      * @param ProductAssociationTypeInterface $productAssociationType
85 95
      * @param string[] $productsNames
96
+     * @return void
86 97
      */
87 98
     public function associateProducts(ProductAssociationTypeInterface $productAssociationType, array $productsNames);
88 99
 
89 100
     /**
90 101
      * @param string $productName
91 102
      * @param ProductAssociationTypeInterface $productAssociationType
103
+     * @return void
92 104
      */
93 105
     public function removeAssociatedProduct($productName, ProductAssociationTypeInterface $productAssociationType);
94 106
 
95 107
     /**
96 108
      * @param string $locale
109
+     * @return void
97 110
      */
98 111
     public function activateLanguageTab($locale);
99 112
 
100 113
     /**
101 114
      * @param string $shippingCategoryName
115
+     * @return void
102 116
      */
103 117
     public function selectShippingCategory($shippingCategoryName);
104 118
 }
Please login to merge, or discard this patch.
Sylius/Behat/Page/Admin/Product/UpdateConfigurableProductPageInterface.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@  discard block
 block discarded – undo
27 27
     /**
28 28
      * @param string $name
29 29
      * @param string $localeCode
30
+     * @return void
30 31
      */
31 32
     public function nameItIn($name, $localeCode);
32 33
 
@@ -49,11 +50,13 @@  discard block
 block discarded – undo
49 50
 
50 51
     /**
51 52
      * @param TaxonInterface $taxon
53
+     * @return void
52 54
      */
53 55
     public function selectMainTaxon(TaxonInterface $taxon);
54 56
 
55 57
     /**
56 58
      * @param string $channelName
59
+     * @return void
57 60
      */
58 61
     public function checkChannel($channelName);
59 62
 
@@ -67,24 +70,31 @@  discard block
 block discarded – undo
67 70
     /**
68 71
      * @param string $path
69 72
      * @param string $type
73
+     * @return void
70 74
      */
71 75
     public function attachImage($path, $type = null);
72 76
 
73 77
     /**
74 78
      * @param string $type
75 79
      * @param string $path
80
+     * @return void
76 81
      */
77 82
     public function changeImageWithType($type, $path);
78 83
 
79 84
     /**
80 85
      * @param string $type
86
+     * @return void
81 87
      */
82 88
     public function removeImageWithType($type);
83 89
 
90
+    /**
91
+     * @return void
92
+     */
84 93
     public function removeFirstImage();
85 94
 
86 95
     /**
87 96
      * @param string $type
97
+     * @return void
88 98
      */
89 99
     public function modifyFirstImageType($type);
90 100
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/UpdateSimpleProductPageInterface.php 2 patches
Doc Comments   +26 added lines patch added patch discarded remove patch
@@ -29,6 +29,7 @@  discard block
 block discarded – undo
29 29
     public function isCodeDisabled();
30 30
 
31 31
     /**
32
+     * @param string $locale
32 33
      * @return bool
33 34
      */
34 35
     public function isSlugReadOnlyIn($locale);
@@ -36,20 +37,26 @@  discard block
 block discarded – undo
36 37
     /**
37 38
      * @param string $channelName
38 39
      * @param int $price
40
+     * @return void
39 41
      */
40 42
     public function specifyPrice($channelName, $price);
41 43
 
42 44
     /**
43 45
      * @param string $name
44 46
      * @param string $localeCode
47
+     * @return void
45 48
      */
46 49
     public function nameItIn($name, $localeCode);
47 50
 
51
+    /**
52
+     * @return void
53
+     */
48 54
     public function addSelectedAttributes();
49 55
 
50 56
     /**
51 57
      * @param string $attributeName
52 58
      * @param string $localeCode
59
+     * @return void
53 60
      */
54 61
     public function removeAttribute($attributeName, $localeCode);
55 62
 
@@ -82,11 +89,18 @@  discard block
 block discarded – undo
82 89
 
83 90
     /**
84 91
      * @param TaxonInterface $taxon
92
+     * @return void
85 93
      */
86 94
     public function selectMainTaxon(TaxonInterface $taxon);
87 95
 
96
+    /**
97
+     * @return void
98
+     */
88 99
     public function disableTracking();
89 100
 
101
+    /**
102
+     * @return void
103
+     */
90 104
     public function enableTracking();
91 105
 
92 106
     /**
@@ -96,6 +110,7 @@  discard block
 block discarded – undo
96 110
 
97 111
     /**
98 112
      * @param string $locale
113
+     * @return void
99 114
      */
100 115
     public function enableSlugModification($locale);
101 116
 
@@ -109,24 +124,31 @@  discard block
 block discarded – undo
109 124
     /**
110 125
      * @param string $path
111 126
      * @param string $type
127
+     * @return void
112 128
      */
113 129
     public function attachImage($path, $type = null);
114 130
 
115 131
     /**
116 132
      * @param string $type
117 133
      * @param string $path
134
+     * @return void
118 135
      */
119 136
     public function changeImageWithType($type, $path);
120 137
 
121 138
     /**
122 139
      * @param string $type
140
+     * @return void
123 141
      */
124 142
     public function removeImageWithType($type);
125 143
 
144
+    /**
145
+     * @return void
146
+     */
126 147
     public function removeFirstImage();
127 148
 
128 149
     /**
129 150
      * @param string $type
151
+     * @return void
130 152
      */
131 153
     public function modifyFirstImageType($type);
132 154
 
@@ -138,6 +160,7 @@  discard block
 block discarded – undo
138 160
     /**
139 161
      * @param ProductAssociationTypeInterface $productAssociationType
140 162
      * @param string[] $productsNames
163
+     * @return void
141 164
      */
142 165
     public function associateProducts(ProductAssociationTypeInterface $productAssociationType, array $productsNames);
143 166
 
@@ -152,6 +175,7 @@  discard block
 block discarded – undo
152 175
     /**
153 176
      * @param string $productName
154 177
      * @param ProductAssociationTypeInterface $productAssociationType
178
+     * @return void
155 179
      */
156 180
     public function removeAssociatedProduct($productName, ProductAssociationTypeInterface $productAssociationType);
157 181
 
@@ -165,6 +189,7 @@  discard block
 block discarded – undo
165 189
 
166 190
     /**
167 191
      * @param string $locale
192
+     * @return void
168 193
      */
169 194
     public function activateLanguageTab($locale);
170 195
 
@@ -178,6 +203,7 @@  discard block
 block discarded – undo
178 203
     /**
179 204
      * @param string $slug
180 205
      * @param string $locale
206
+     * @return void
181 207
      */
182 208
     public function specifySlugIn($slug, $locale);
183 209
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Sylius\Behat\Page\Admin\Product;
13 13
 
14
-use Behat\Mink\Exception\ElementNotFoundException;
15 14
 use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface as BaseUpdatePageInterface;
16 15
 use Sylius\Component\Core\Model\ChannelInterface;
17 16
 use Sylius\Component\Core\Model\TaxonInterface;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Taxon/CreatePageInterface.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -35,12 +35,14 @@  discard block
 block discarded – undo
35 35
 
36 36
     /**
37 37
      * @param string $name
38
+     * @return void
38 39
      */
39 40
     public function deleteTaxonOnPageByName($name);
40 41
 
41 42
     /**
42 43
      * @param string $description
43 44
      * @param string $languageCode
45
+     * @return void
44 46
      */
45 47
     public function describeItAs($description, $languageCode);
46 48
 
@@ -54,23 +56,27 @@  discard block
 block discarded – undo
54 56
     /**
55 57
      * @param string $name
56 58
      * @param string $languageCode
59
+     * @return void
57 60
      */
58 61
     public function nameIt($name, $languageCode);
59 62
 
60 63
     /**
61 64
      * @param string $code
65
+     * @return void
62 66
      */
63 67
     public function specifyCode($code);
64 68
 
65 69
     /**
66 70
      * @param string $slug
67 71
      * @param string $languageCode
72
+     * @return void
68 73
      */
69 74
     public function specifySlug($slug, $languageCode);
70 75
 
71 76
     /**
72 77
      * @param string $path
73 78
      * @param string $type
79
+     * @return void
74 80
      */
75 81
     public function attachImage($path, $type = null);
76 82
 
@@ -85,6 +91,7 @@  discard block
 block discarded – undo
85 91
 
86 92
     /**
87 93
      * @param string $locale
94
+     * @return void
88 95
      */
89 96
     public function activateLanguageTab($locale);
90 97
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Taxon/UpdatePageInterface.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -23,11 +23,13 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * @param string $description
25 25
      * @param string $languageCode
26
+     * @return void
26 27
      */
27 28
     public function describeItAs($description, $languageCode);
28 29
 
29 30
     /**
30 31
      * @param TaxonInterface $taxon
32
+     * @return void
31 33
      */
32 34
     public function chooseParent(TaxonInterface $taxon);
33 35
 
@@ -39,18 +41,21 @@  discard block
 block discarded – undo
39 41
     /**
40 42
      * @param string $name
41 43
      * @param string $languageCode
44
+     * @return void
42 45
      */
43 46
     public function nameIt($name, $languageCode);
44 47
 
45 48
     /**
46 49
      * @param string $slug
47 50
      * @param string $languageCode
51
+     * @return void
48 52
      */
49 53
     public function specifySlug($slug, $languageCode);
50 54
 
51 55
     /**
52 56
      * @param string $path
53 57
      * @param string $type
58
+     * @return void
54 59
      */
55 60
     public function attachImage($path, $type = null);
56 61
 
@@ -70,13 +75,18 @@  discard block
 block discarded – undo
70 75
 
71 76
     /**
72 77
      * @param string $type
78
+     * @return void
73 79
      */
74 80
     public function removeImageWithType($type);
75 81
 
82
+    /**
83
+     * @return void
84
+     */
76 85
     public function removeFirstImage();
77 86
 
78 87
     /**
79 88
      * @param string $languageCode
89
+     * @return void
80 90
      */
81 91
     public function enableSlugModification($languageCode = 'en_US');
82 92
 
@@ -88,11 +98,13 @@  discard block
 block discarded – undo
88 98
     /**
89 99
      * @param string $type
90 100
      * @param string $path
101
+     * @return void
91 102
      */
92 103
     public function changeImageWithType($type, $path);
93 104
 
94 105
     /**
95 106
      * @param string $type
107
+     * @return void
96 108
      */
97 109
     public function modifyFirstImageType($type);
98 110
 
@@ -126,6 +138,7 @@  discard block
 block discarded – undo
126 138
 
127 139
     /**
128 140
      * @param string $locale
141
+     * @return void
129 142
      */
130 143
     public function activateLanguageTab($locale);
131 144
 }
Please login to merge, or discard this patch.
Form/DataTransformer/ProductsToProductAssociationsTransformer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
 
159 159
     /**
160 160
      * @param ProductAssociationInterface $productAssociation
161
-     * @param string $productIds
161
+     * @param string $productCodes
162 162
      */
163 163
     private function setAssociatedProductsByProductCodes(ProductAssociationInterface $productAssociation, $productCodes)
164 164
     {
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ImageInterface.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -26,6 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
     /**
28 28
      * @param string $type
29
+     * @return void
29 30
      */
30 31
     public function setType($type);
31 32
 
@@ -36,6 +37,7 @@  discard block
 block discarded – undo
36 37
 
37 38
     /**
38 39
      * @param \SplFileInfo $file
40
+     * @return void
39 41
      */
40 42
     public function setFile(\SplFileInfo $file);
41 43
 
@@ -51,6 +53,7 @@  discard block
 block discarded – undo
51 53
 
52 54
     /**
53 55
      * @param string $path
56
+     * @return void
54 57
      */
55 58
     public function setPath($path);
56 59
 
@@ -61,6 +64,7 @@  discard block
 block discarded – undo
61 64
 
62 65
     /**
63 66
      * @param ImageAwareInterface|null $owner
67
+     * @return void
64 68
      */
65 69
     public function setOwner(ImageAwareInterface $owner = null);
66 70
 }
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Sylius\Component\Core\Model;
13 13
 
14
-use Sylius\Component\Resource\Model\CodeAwareInterface;
15 14
 use Sylius\Component\Resource\Model\ResourceInterface;
16 15
 
17 16
 /**
Please login to merge, or discard this patch.
tests/Controller/ProductApiTest.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@
 block discarded – undo
280 280
     /**
281 281
      * @test
282 282
      */
283
-    public function it_allows_creating_product_with_main_taxon() 
283
+    public function it_allows_creating_product_with_main_taxon()
284 284
     {
285 285
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
286 286
         $this->loadFixturesFromFile('resources/taxons.yml');
Please login to merge, or discard this patch.
Upper-Lower-Casing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                 }
148 148
             }
149 149
         }
150
-EOT;
150
+eot;
151 151
 
152 152
         $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data);
153 153
 
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
                 }
188 188
             }
189 189
         }
190
-EOT;
190
+eot;
191 191
         $this->client->request('PUT', '/api/v1/products/'. $products["product3"]->getId(), [], [], static::$authorizedHeaderWithContentType, $data);
192 192
         $response = $this->client->getResponse();
193 193
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
                 }
212 212
             }
213 213
         }
214
-EOT;
214
+eot;
215 215
         $this->client->request('PATCH', '/api/v1/products/'. $products["product1"]->getId(), [], [], static::$authorizedHeaderWithContentType, $data);
216 216
         $response = $this->client->getResponse();
217 217
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
                 }
270 270
             }
271 271
         }
272
-EOT;
272
+eot;
273 273
 
274 274
         $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data);
275 275
 
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
                 }
299 299
             }
300 300
         }
301
-EOT;
301
+eot;
302 302
 
303 303
         $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data);
304 304
 
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
             },
328 328
             "product_taxons": "YELLOW_MUGS,MUGS"
329 329
         }
330
-EOT;
330
+eot;
331 331
 
332 332
         $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data);
333 333
 
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
                 }
359 359
             }
360 360
         }
361
-EOT;
361
+eot;
362 362
 
363 363
         $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data);
364 364
 
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
                 }
399 399
             }
400 400
         }
401
-EOT;
401
+eot;
402 402
 
403 403
         $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data);
404 404
 
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
                 }
434 434
             }
435 435
         }
436
-EOT;
436
+eot;
437 437
 
438 438
         $this->client->request(
439 439
             'POST',
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
                 }
477 477
             }
478 478
         }
479
-EOT;
479
+eot;
480 480
 
481 481
         $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data);
482 482
 
Please login to merge, or discard this patch.