Completed
Push — symfony3-fqcn-promotion ( 3a6e99...c2e0cd )
by Kamil
16:22
created
src/Sylius/Behat/Context/Setup/ProductTaxonContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
         $productTaxon->setProduct($product);
73 73
         $productTaxon->setTaxon($taxon);
74 74
 
75
-        if(null !== $position) {
75
+        if (null !== $position) {
76 76
             $productTaxon->setPosition($position);
77 77
         }
78 78
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Taxon/ShowPage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $productsList = $this->getDocument()->find('css', '#products');
62 62
         
63
-        $products = $productsList->findAll('css','.column > .card');
63
+        $products = $productsList->findAll('css', '.column > .card');
64 64
         
65 65
         return count($products);
66 66
     }
@@ -103,10 +103,10 @@  discard block
 block discarded – undo
103 103
     public function hasProductsInOrder(array $productNames)
104 104
     {
105 105
         $productsList = $this->getDocument()->find('css', '#products');
106
-        $products = $productsList->findAll('css','.column  .content > .sylius-product-name');
106
+        $products = $productsList->findAll('css', '.column  .content > .sylius-product-name');
107 107
 
108 108
         foreach ($productNames as $key => $value) {
109
-            if($products[$key]->getText() !== $value) {
109
+            if ($products[$key]->getText() !== $value) {
110 110
                 return false;
111 111
             }
112 112
         }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/IndexPerTaxonPage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $productsOnPage = $this->getColumnFields('name');
32 32
 
33 33
         foreach ($productsOnPage as $key => $product) {
34
-            if($productNames[$key] !== $product) {
34
+            if ($productNames[$key] !== $product) {
35 35
                 return false;
36 36
             }
37 37
         }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     {
56 56
         $this->getElement('save_configuration_button')->press();
57 57
 
58
-        $this->getDocument()->waitFor(5, function (){
58
+        $this->getDocument()->waitFor(5, function () {
59 59
             return false === $this->getElement('save_configuration_button')->hasClass('loading');
60 60
         } );
61 61
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/PaymentContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public function storeAllowsPaying($paymentMethodName, $position = null)
90 90
     {
91
-        $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method', true, $position);
91
+        $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method', true, $position);
92 92
     }
93 93
 
94 94
     /**
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     public function theStoreHasPaymentMethodNotAssignedToAnyChannel($paymentMethodName)
142 142
     {
143
-        $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method', false);
143
+        $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method', false);
144 144
     }
145 145
 
146 146
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/ProductContext.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     {
181 181
         $product = $this->createProduct($productName, $price);
182 182
 
183
-        $product->setDescription('Awesome '.$productName);
183
+        $product->setDescription('Awesome ' . $productName);
184 184
 
185 185
         if ($this->sharedStorage->has('channel')) {
186 186
             $product->addChannel($this->sharedStorage->get('channel'));
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     {
214 214
         $product = $this->createProduct($productName, $price);
215 215
 
216
-        $product->setDescription('Awesome '.$productName);
216
+        $product->setDescription('Awesome ' . $productName);
217 217
 
218 218
         foreach ($channels as $channel) {
219 219
             $product->addChannel($channel);
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         $product->setCode(StringInflector::nameToUppercaseCode($productName));
252 252
         $product->setSlug($this->slugGenerator->generate($productName));
253 253
 
254
-        $product->setDescription('Awesome '.$productName);
254
+        $product->setDescription('Awesome ' . $productName);
255 255
 
256 256
         if ($this->sharedStorage->has('channel')) {
257 257
             $channel = $this->sharedStorage->get('channel');
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
      */
374 374
     public function thisProductHasAttributeWithValue(ProductInterface $product, $productAttributeType, $productAttributeName, $value)
375 375
     {
376
-        $attribute = $this->createProductAttribute($productAttributeType,$productAttributeName);
376
+        $attribute = $this->createProductAttribute($productAttributeType, $productAttributeName);
377 377
         $attributeValue = $this->createProductAttributeValue($value, $attribute);
378 378
         $product->addAttribute($attributeValue);
379 379
 
@@ -385,8 +385,8 @@  discard block
 block discarded – undo
385 385
      */
386 386
     public function thisProductHasPercentAttributeWithValue(ProductInterface $product, $productAttributeName, $value)
387 387
     {
388
-        $attribute = $this->createProductAttribute('percent',$productAttributeName);
389
-        $attributeValue = $this->createProductAttributeValue($value/100, $attribute);
388
+        $attribute = $this->createProductAttribute('percent', $productAttributeName);
389
+        $attributeValue = $this->createProductAttributeValue($value / 100, $attribute);
390 390
         $product->addAttribute($attributeValue);
391 391
 
392 392
         $this->objectManager->flush();
@@ -410,9 +410,9 @@  discard block
 block discarded – undo
410 410
      */
411 411
     public function thisProductHasPercentAttributeWithValueAtPosition(ProductInterface $product, $productAttributeName, $position)
412 412
     {
413
-        $attribute = $this->createProductAttribute('percent',$productAttributeName);
413
+        $attribute = $this->createProductAttribute('percent', $productAttributeName);
414 414
         $attribute->setPosition($position);
415
-        $attributeValue = $this->createProductAttributeValue(rand(1,100)/100, $attribute);
415
+        $attributeValue = $this->createProductAttributeValue(rand(1, 100) / 100, $attribute);
416 416
 
417 417
         $product->addAttribute($attributeValue);
418 418
 
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
 
584 584
         /** @var ImageInterface $productImage */
585 585
         $productImage = $this->productImageFactory->createNew();
586
-        $productImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath)));
586
+        $productImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath)));
587 587
         $productImage->setCode($imageCode);
588 588
         $this->imageUploader->upload($productImage);
589 589
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingExchangeRatesContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
      */
117 117
     public function iChangeRatioTo($ratio)
118 118
     {
119
-        $this->updatePage->changeRatio((float)$ratio);
119
+        $this->updatePage->changeRatio((float) $ratio);
120 120
     }
121 121
 
122 122
     /**
Please login to merge, or discard this patch.
tests/Controller/ZoneApiTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
147 147
         $zones = $this->loadFixturesFromFile('resources/zones.yml');
148 148
 
149
-        $this->client->request('GET', '/api/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept);
149
+        $this->client->request('GET', '/api/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept);
150 150
 
151 151
         $response = $this->client->getResponse();
152 152
         $this->assertResponse($response, 'zone/show_response', Response::HTTP_OK);
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
185 185
         $zones = $this->loadFixturesFromFile('resources/zones.yml');
186 186
 
187
-        $this->client->request('PUT', '/api/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType);
187
+        $this->client->request('PUT', '/api/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType);
188 188
 
189 189
         $response = $this->client->getResponse();
190 190
         $this->assertResponse($response, 'zone/update_validation_fail_response', Response::HTTP_BAD_REQUEST);
@@ -211,12 +211,12 @@  discard block
 block discarded – undo
211 211
         }
212 212
 EOT;
213 213
 
214
-        $this->client->request('PUT', '/api/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data);
214
+        $this->client->request('PUT', '/api/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data);
215 215
 
216 216
         $response = $this->client->getResponse();
217 217
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
218 218
 
219
-        $this->client->request('GET', '/api/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept);
219
+        $this->client->request('GET', '/api/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept);
220 220
 
221 221
         $response = $this->client->getResponse();
222 222
         $this->assertResponse($response, 'zone/update_response', Response::HTTP_OK);
@@ -262,12 +262,12 @@  discard block
 block discarded – undo
262 262
         }
263 263
 EOT;
264 264
 
265
-        $this->client->request('PATCH', '/api/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data);
265
+        $this->client->request('PATCH', '/api/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data);
266 266
 
267 267
         $response = $this->client->getResponse();
268 268
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
269 269
 
270
-        $this->client->request('GET', '/api/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept);
270
+        $this->client->request('GET', '/api/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept);
271 271
 
272 272
         $response = $this->client->getResponse();
273 273
         $this->assertResponse($response, 'zone/update_response', Response::HTTP_OK);
@@ -305,12 +305,12 @@  discard block
 block discarded – undo
305 305
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
306 306
         $zones = $this->loadFixturesFromFile('resources/zones.yml');
307 307
 
308
-        $this->client->request('DELETE', '/api/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType);
308
+        $this->client->request('DELETE', '/api/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType);
309 309
 
310 310
         $response = $this->client->getResponse();
311 311
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
312 312
 
313
-        $this->client->request('GET', '/api/zones/'.$zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept);
313
+        $this->client->request('GET', '/api/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithAccept);
314 314
 
315 315
         $response = $this->client->getResponse();
316 316
         $this->assertResponseCode($response, Response::HTTP_NOT_FOUND);
Please login to merge, or discard this patch.
tests/Controller/LocaleApiTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
63 63
         $locales = $this->loadFixturesFromFile('resources/locales.yml');
64 64
 
65
-        $this->client->request('GET', '/api/locales/'.$locales['locale_en']->getCode(), [], [], static::$authorizedHeaderWithAccept);
65
+        $this->client->request('GET', '/api/locales/' . $locales['locale_en']->getCode(), [], [], static::$authorizedHeaderWithAccept);
66 66
 
67 67
         $response = $this->client->getResponse();
68 68
         $this->assertResponse($response, 'locale/show_response', Response::HTTP_OK);
@@ -130,12 +130,12 @@  discard block
 block discarded – undo
130 130
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
131 131
         $locales = $this->loadFixturesFromFile('resources/locales.yml');
132 132
 
133
-        $this->client->request('DELETE', '/api/locales/'.$locales['locale_en']->getCode(), [], [], static::$authorizedHeaderWithContentType, []);
133
+        $this->client->request('DELETE', '/api/locales/' . $locales['locale_en']->getCode(), [], [], static::$authorizedHeaderWithContentType, []);
134 134
 
135 135
         $response = $this->client->getResponse();
136 136
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
137 137
 
138
-        $this->client->request('GET', '/api/locales/'.$locales['locale_en']->getId(), [], [], static::$authorizedHeaderWithAccept);
138
+        $this->client->request('GET', '/api/locales/' . $locales['locale_en']->getId(), [], [], static::$authorizedHeaderWithAccept);
139 139
 
140 140
         $response = $this->client->getResponse();
141 141
         $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND);
Please login to merge, or discard this patch.
tests/Controller/CountryApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
97 97
         $countries = $this->loadFixturesFromFile('resources/countries.yml');
98 98
 
99
-        $this->client->request('GET', '/api/countries/'.$countries['country_NL']->getCode(), [], [], static::$authorizedHeaderWithAccept);
99
+        $this->client->request('GET', '/api/countries/' . $countries['country_NL']->getCode(), [], [], static::$authorizedHeaderWithAccept);
100 100
 
101 101
         $response = $this->client->getResponse();
102 102
         $this->assertResponse($response, 'country/show_response', Response::HTTP_OK);
Please login to merge, or discard this patch.