Completed
Push — master ( 97cc8f...d591e6 )
by Kamil
50:22 queued 30:01
created
ReviewBundle/DependencyInjection/Compiler/RegisterReviewFactoryPass.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@
 block discarded – undo
27 27
     public function process(ContainerBuilder $container)
28 28
     {
29 29
         foreach ($container->getParameter('sylius.review.subjects') as $subject => $configuration) {
30
-            $factory = $container->findDefinition('sylius.factory.'.$subject.'_review');
30
+            $factory = $container->findDefinition('sylius.factory.' . $subject . '_review');
31 31
             $reviewFactoryDefinition = new Definition(ReviewFactory::class);
32 32
 
33
-            $reviewFactory = $container->setDefinition(sprintf('sylius.factory.'.$subject.'_review'), $reviewFactoryDefinition);
33
+            $reviewFactory = $container->setDefinition(sprintf('sylius.factory.' . $subject . '_review'), $reviewFactoryDefinition);
34 34
             $reviewFactory->addArgument($factory);
35 35
         }
36 36
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Account/AddressBook/UpdatePage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     public function fillField($field, $value)
34 34
     {
35
-        $field = $this->getElement(str_replace(' ', '_',strtolower($field)));
35
+        $field = $this->getElement(str_replace(' ', '_', strtolower($field)));
36 36
         $field->setValue($value);
37 37
     }
38 38
 
Please login to merge, or discard this patch.
src/Sylius/Component/Taxonomy/Generator/TaxonSlugGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,6 +50,6 @@
 block discarded – undo
50 50
         $parent = $this->taxonRepository->find($parentId);
51 51
         Assert::notNull($parent, sprintf('There is no parent taxon with id %d.', $parentId));
52 52
 
53
-        return $parent->getSlug().self::SLUG_SEPARATOR.$taxonSlug;
53
+        return $parent->getSlug() . self::SLUG_SEPARATOR . $taxonSlug;
54 54
     }
55 55
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Taxonomy/spec/Generator/TaxonSlugGeneratorSpec.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,12 +44,12 @@
 block discarded – undo
44 44
         $taxonRepository->find(1)->willReturn($parent);
45 45
         $parent->getSlug()->willReturn('board-games');
46 46
 
47
-        $this->generate('Battle games', 1)->shouldReturn('board-games/battle-games');;
47
+        $this->generate('Battle games', 1)->shouldReturn('board-games/battle-games'); ;
48 48
     }
49 49
 
50 50
     function it_generates_slug_based_on_new_taxon_name_if_this_taxon_has_no_parent()
51 51
     {
52
-        $this->generate('Board games')->shouldReturn('board-games');;
52
+        $this->generate('Board games')->shouldReturn('board-games'); ;
53 53
     }
54 54
 
55 55
     function it_throws_exception_if_parent_taxon_with_given_id_does_not_exist(
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Domain/ManagingOrdersContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
      */
168 168
     public function thisOrderHasNotBeenPaidForDays(OrderInterface $order, $amount, $time)
169 169
     {
170
-        $order->setCheckoutCompletedAt(new \DateTime('-'.$amount.' '.$time));
170
+        $order->setCheckoutCompletedAt(new \DateTime('-' . $amount . ' ' . $time));
171 171
         $this->orderManager->flush();
172 172
 
173 173
         $this->unpaidOrdersStateUpdater->cancel();
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Transform/AddressContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @Transform /^address is "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)" for "([^"]+)"$/
70 70
      * @Transform /^address to "([^"]+)", "([^"]+)", "([^"]+)", "([^"]+)" for "([^"]+)"$/
71 71
      */
72
-    public function createNewAddressWith($cityName, $street, $postcode, $countryName, $customerName,  $provinceName = null)
72
+    public function createNewAddressWith($cityName, $street, $postcode, $countryName, $customerName, $provinceName = null)
73 73
     {
74 74
         $countryCode = $this->countryNameConverter->convertToCode($countryName);
75 75
         $customerName = explode(' ', $customerName);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     public function getByStreet($street)
108 108
     {
109 109
         $address = $this->addressRepository->findOneBy(['street' => $street]);
110
-        Assert::notNull($address, sprintf('Cannot find address by %s street' , $street));
110
+        Assert::notNull($address, sprintf('Cannot find address by %s street', $street));
111 111
 
112 112
         return $address;
113 113
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/ProductContext.php 1 patch
Spacing   +7 added lines, -7 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);
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
         $product->setCode(StringInflector::nameToUppercaseCode($productName));
251 251
         $product->setSlug($this->slugGenerator->generate($productName));
252 252
 
253
-        $product->setDescription('Awesome '.$productName);
253
+        $product->setDescription('Awesome ' . $productName);
254 254
 
255 255
         if ($this->sharedStorage->has('channel')) {
256 256
             $channel = $this->sharedStorage->get('channel');
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
      */
356 356
     public function thisProductHasAttributeWithValue(ProductInterface $product, $productAttributeType, $productAttributeName, $value)
357 357
     {
358
-        $attribute = $this->createProductAttribute($productAttributeType,$productAttributeName);
358
+        $attribute = $this->createProductAttribute($productAttributeType, $productAttributeName);
359 359
         $attributeValue = $this->createProductAttributeValue($value, $attribute);
360 360
         $product->addAttribute($attributeValue);
361 361
 
@@ -367,8 +367,8 @@  discard block
 block discarded – undo
367 367
      */
368 368
     public function thisProductHasPercentAttributeWithValue(ProductInterface $product, $productAttributeName, $value)
369 369
     {
370
-        $attribute = $this->createProductAttribute('percent',$productAttributeName);
371
-        $attributeValue = $this->createProductAttributeValue($value/100, $attribute);
370
+        $attribute = $this->createProductAttribute('percent', $productAttributeName);
371
+        $attributeValue = $this->createProductAttributeValue($value / 100, $attribute);
372 372
         $product->addAttribute($attributeValue);
373 373
 
374 374
         $this->objectManager->flush();
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
551 551
 
552 552
         /** @var ImageInterface $productImage */
553 553
         $productImage = $this->productImageFactory->createNew();
554
-        $productImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath)));
554
+        $productImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath)));
555 555
         $productImage->setCode($imageCode);
556 556
         $this->imageUploader->upload($productImage);
557 557
 
Please login to merge, or discard this patch.