Completed
Push — 1.6 ( 67e349...c7697d )
by Kamil
19:54 queued 14:22
created
src/Sylius/Bundle/InventoryBundle/Twig/InventoryExtension.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@
 block discarded – undo
39 39
     public function getFunctions(): array
40 40
     {
41 41
         return [
42
-             new \Twig_Function('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']),
43
-             new \Twig_Function('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']),
42
+                new \Twig_Function('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']),
43
+                new \Twig_Function('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']),
44 44
         ];
45 45
     }
46 46
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/spec/Updater/UnpaidOrdersStateUpdaterSpec.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
46 46
         StateMachineInterface $secondOrderStateMachine
47 47
     ): void {
48 48
         $orderRepository->findOrdersUnpaidSince(Argument::type(\DateTimeInterface::class))->willReturn([
49
-           $firstOrder,
50
-           $secondOrder,
49
+            $firstOrder,
50
+            $secondOrder,
51 51
         ]);
52 52
 
53 53
         $stateMachineFactory->get($firstOrder, 'sylius_order')->willReturn($firstOrderStateMachine);
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Doctrine/ORM/ProductRepository.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,10 +105,10 @@
 block discarded – undo
105 105
         if (isset($sorting['price'])) {
106 106
             // Another hack, the subquery to get the first position variant
107 107
             $subQuery = $this->createQueryBuilder('m')
108
-                 ->select('min(v.position)')
109
-                 ->innerJoin('m.variants', 'v')
110
-                 ->andWhere('m.id = :product_id')
111
-             ;
108
+                    ->select('min(v.position)')
109
+                    ->innerJoin('m.variants', 'v')
110
+                    ->andWhere('m.id = :product_id')
111
+                ;
112 112
 
113 113
             $queryBuilder
114 114
                 ->addSelect('variant')
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/Factory/ProductExampleFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -414,7 +414,7 @@
 block discarded – undo
414 414
     {
415 415
         return trim(array_reduce(
416 416
             $variant->getOptionValues()->toArray(),
417
-            static function(?string $variantName, ProductOptionValueInterface $variantOption) {
417
+            static function (?string $variantName, ProductOptionValueInterface $variantOption) {
418 418
                 return $variantName . sprintf('%s ', $variantOption->getValue());
419 419
             },
420 420
             ''
Please login to merge, or discard this patch.
src/Sylius/Component/Core/spec/Generator/UploadedImagePathGeneratorSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
     function it_generates_random_hashed_path_for_the_image(ImageInterface $image): void
29 29
     {
30
-        $file = new UploadedFile(__DIR__.'/ford.jpg', 'ford.jpg', null, null, true);
30
+        $file = new UploadedFile(__DIR__ . '/ford.jpg', 'ford.jpg', null, null, true);
31 31
 
32 32
         $image->getFile()->willReturn($file);
33 33
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingPaymentsContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
     /**
154 154
      * @Then /^I should see payment for (the "[^"]+" order) as (\d+)(?:|st|nd|rd|th) in the list$/
155 155
      */
156
-    public function iShouldSeePaymentForTheOrderInTheList(string $orderNumber,int $position): void
156
+    public function iShouldSeePaymentForTheOrderInTheList(string $orderNumber, int $position): void
157 157
     {
158 158
         Assert::true($this->indexPage->isPaymentWithOrderNumberInPosition($orderNumber, $position));
159 159
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/spec/Service/Generator/UploadedImagePathGeneratorSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
     function it_generates_random_hashed_path_keeping_the_image_name(ImageInterface $image): void
29 29
     {
30
-        $file = new UploadedFile(__DIR__.'/ford.jpg', 'ford.jpg', null, null, true);
30
+        $file = new UploadedFile(__DIR__ . '/ford.jpg', 'ford.jpg', null, null, true);
31 31
 
32 32
         $image->getFile()->willReturn($file);
33 33
 
Please login to merge, or discard this patch.