Completed
Push — pull-request/7609 ( 4ccf63...393b85 )
by Kamil
146:59 queued 125:08
created
src/Sylius/Bundle/CoreBundle/Fixture/Factory/ProductExampleFactory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Sylius\Bundle\CoreBundle\Fixture\OptionsResolver\LazyOption;
15 15
 use Sylius\Component\Attribute\AttributeType\SelectAttributeType;
16 16
 use Sylius\Component\Core\Formatter\StringInflector;
17
-use Sylius\Component\Core\Model\ChannelInterface;
18 17
 use Sylius\Component\Core\Model\ChannelPricingInterface;
19 18
 use Sylius\Component\Core\Model\ImageInterface;
20 19
 use Sylius\Component\Core\Model\ProductInterface;
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ChannelPricingInterface.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,6 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
     /**
19 19
      * @param ProductVariantInterface|null $productVariant
20
+     * @return void
20 21
      */
21 22
     public function setProductVariant(ProductVariantInterface $productVariant = null);
22 23
 
@@ -27,6 +28,7 @@  discard block
 block discarded – undo
27 28
 
28 29
     /**
29 30
      * @param int $price
31
+     * @return void
30 32
      */
31 33
     public function setPrice($price);
32 34
 
@@ -37,6 +39,7 @@  discard block
 block discarded – undo
37 39
 
38 40
     /**
39 41
      * @param string $channelCode
42
+     * @return void
40 43
      */
41 44
     public function setChannelCode($channelCode);
42 45
 }
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Sylius\Component\Core\Model;
4 4
 
5
-use Sylius\Component\Channel\Model\ChannelAwareInterface;
6 5
 use Sylius\Component\Resource\Model\ResourceInterface;
7 6
 
8 7
 /**
Please login to merge, or discard this patch.
tests/Controller/ProductVariantApiTest.php 1 patch
Upper-Lower-Casing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         {
159 159
             "code": "MONSTER_MUG"
160 160
         }
161
-EOT;
161
+eot;
162 162
 
163 163
         $this->client->request('POST', $this->getVariantListUrl($product), [], [], static::$authorizedHeaderWithContentType, $data);
164 164
         $response = $this->client->getResponse();
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
                 }
209 209
             }
210 210
         }
211
-EOT;
211
+eot;
212 212
 
213 213
         $this->client->request('POST', $this->getVariantListUrl($product), [], [], static::$authorizedHeaderWithContentType, $data);
214 214
         $response = $this->client->getResponse();
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
                 }
243 243
             }
244 244
         }
245
-EOT;
245
+eot;
246 246
         $this->client->request('POST', $this->getVariantListUrl($product), [], [], static::$authorizedHeaderWithContentType, $data);
247 247
         $response = $this->client->getResponse();
248 248
 
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
             "tracked": true,
268 268
             "onHand": 5
269 269
         }
270
-EOT;
270
+eot;
271 271
 
272 272
         $this->client->request('POST', $this->getVariantListUrl($product), [], [], static::$authorizedHeaderWithContentType, $data);
273 273
         $response = $this->client->getResponse();
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
             "code": "MONSTER_MUG",
294 294
             "taxCategory": "TC1"
295 295
         }
296
-EOT;
296
+eot;
297 297
 
298 298
         $this->client->request('POST', $this->getVariantListUrl($product), [], [], static::$authorizedHeaderWithContentType, $data);
299 299
         $response = $this->client->getResponse();
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
             "code": "MONSTER_MUG",
320 320
             "shippingCategory": "SC1"
321 321
         }
322
-EOT;
322
+eot;
323 323
 
324 324
         $this->client->request('POST', $this->getVariantListUrl($product), [], [], static::$authorizedHeaderWithContentType, $data);
325 325
         $response = $this->client->getResponse();
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
                 "MUG_TYPE": "MUG_TYPE_MEDIUM" 
348 348
             }
349 349
         }
350
-EOT;
350
+eot;
351 351
 
352 352
         $this->client->request('POST', $this->getVariantListUrl($product), [], [], static::$authorizedHeaderWithContentType, $data);
353 353
         $response = $this->client->getResponse();
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
             "code": "NEW_MUG_CODE",
423 423
             "version": $version
424 424
         }
425
-EOT;
425
+eot;
426 426
         $this->client->request('PUT', $this->getVariantUrl($product, $productVariant), [], [], static::$authorizedHeaderWithContentType, $data);
427 427
         $response = $this->client->getResponse();
428 428
 
@@ -455,7 +455,7 @@  discard block
 block discarded – undo
455 455
                 }
456 456
             }
457 457
         }
458
-EOT;
458
+eot;
459 459
 
460 460
         $this->client->request('PATCH', $this->getVariantUrl($product, $productVariant), [], [], static::$authorizedHeaderWithContentType, $data);
461 461
         $response = $this->client->getResponse();
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
         {
484 484
             "tracked": false
485 485
         }
486
-EOT;
486
+eot;
487 487
         $this->client->request('PATCH', $this->getVariantUrl($product, $productVariant), [], [], static::$authorizedHeaderWithContentType, $data);
488 488
         $response = $this->client->getResponse();
489 489
 
Please login to merge, or discard this patch.
tests/Controller/PromotionApiTest.php 1 patch
Upper-Lower-Casing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
             "code": "christmas-promotion",
231 231
             "name": "Christmas Promotion"
232 232
         }
233
-EOT;
233
+eot;
234 234
         $this->client->request('POST', '/api/v1/promotions/', [], [], static::$authorizedHeaderWithContentType, $data);
235 235
 
236 236
         $response = $this->client->getResponse();
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
                 "MOB"
256 256
             ]
257 257
         }
258
-EOT;
258
+eot;
259 259
         $this->client->request('POST', '/api/v1/promotions/', [], [], static::$authorizedHeaderWithContentType, $data);
260 260
 
261 261
         $response = $this->client->getResponse();
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
                 "time": "11:00"
284 284
             }
285 285
         }
286
-EOT;
286
+eot;
287 287
         $this->client->request('POST', '/api/v1/promotions/', [], [], static::$authorizedHeaderWithContentType, $data);
288 288
 
289 289
         $response = $this->client->getResponse();
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
                 }
324 324
             ]
325 325
         }
326
-EOT;
326
+eot;
327 327
         $this->client->request('POST', '/api/v1/promotions/', [], [], static::$authorizedHeaderWithContentType, $data);
328 328
 
329 329
         $response = $this->client->getResponse();
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
                 }
395 395
             ]
396 396
         }
397
-EOT;
397
+eot;
398 398
         $this->client->request('POST', '/api/v1/promotions/', [], [], static::$authorizedHeaderWithContentType, $data);
399 399
 
400 400
         $response = $this->client->getResponse();
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
             "name": "Christmas Promotion",
417 417
             "couponBased": true
418 418
         }
419
-EOT;
419
+eot;
420 420
         $this->client->request('POST', '/api/v1/promotions/', [], [], static::$authorizedHeaderWithContentType, $data);
421 421
 
422 422
         $response = $this->client->getResponse();
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
             "exclusive": true,
439 439
             "priority": 0
440 440
         }
441
-EOT;
441
+eot;
442 442
         $this->client->request('POST', '/api/v1/promotions/', [], [], static::$authorizedHeaderWithContentType, $data);
443 443
 
444 444
         $response = $this->client->getResponse();
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
         {
460 460
             "name": "Monday promotion"
461 461
         }
462
-EOT;
462
+eot;
463 463
         $this->client->request('PUT', $this->getPromotionUrl($promotion), [], [], static::$authorizedHeaderWithContentType, $data);
464 464
         $response = $this->client->getResponse();
465 465
 
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
             "exclusive": true,
487 487
             "priority": 0
488 488
         }
489
-EOT;
489
+eot;
490 490
         $this->client->request('PATCH', $this->getPromotionUrl($promotion), [], [], static::$authorizedHeaderWithContentType, $data);
491 491
         $response = $this->client->getResponse();
492 492
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
Please login to merge, or discard this patch.
Sylius/Bundle/CoreBundle/Installer/Requirement/FilesystemRequirements.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $this
23 23
             ->add(new Requirement(
24 24
                 $translator->trans('sylius.installer.filesystem.vendors', []),
25
-                is_dir($root.'/../vendor')
25
+                is_dir($root . '/../vendor')
26 26
             ))
27 27
             ->add(new Requirement(
28 28
                 $translator->trans('sylius.installer.filesystem.cache.header', []),
Please login to merge, or discard this patch.