Completed
Push — travis-xenial ( 7a72dd...c18ce8 )
by Kamil
12:54 queued 05:28
created
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/InventoryBundle/Twig/InventoryExtension.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
     public function getFunctions(): array
34 34
     {
35 35
         return [
36
-             new TwigFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']),
37
-             new TwigFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']),
36
+                new TwigFunction('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']),
37
+                new TwigFunction('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']),
38 38
         ];
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/OptionsResolver/LazyOption.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 
103 103
     public static function findBy(RepositoryInterface $repository, string $field, array $criteria = []): \Closure
104 104
     {
105
-        return function (Options $options, ?array $previousValues) use ($repository, $field, $criteria): ?iterable {
105
+        return function (Options $options, ?array $previousValues) use ($repository, $field, $criteria) : ?iterable {
106 106
             if (null === $previousValues || [] === $previousValues) {
107 107
                 return $previousValues;
108 108
             }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Api/Admin/ManagingProductReviewsContext.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -170,9 +170,9 @@
 block discarded – undo
170 170
     {
171 171
         $id = (string) $this->sharedStorage->get('product_review_id');
172 172
         Assert::false(
173
-           $this->isItemOnIndex('id', $id),
174
-           sprintf('Product review with id %s exist', $id)
175
-       );
173
+            $this->isItemOnIndex('id', $id),
174
+            sprintf('Product review with id %s exist', $id)
175
+        );
176 176
     }
177 177
 
178 178
     /**
Please login to merge, or discard this patch.
Sylius/Behat/Context/Api/Admin/ManagingProductAssociationTypesContext.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,10 +65,10 @@
 block discarded – undo
65 65
     {
66 66
         $this->client->updateRequestData([
67 67
             'translations' => [
68
-                 $localeCode => [
69
-                      'name' => $productAssociationTypeName,
70
-                      'locale' => $localeCode,
71
-                 ],
68
+                    $localeCode => [
69
+                        'name' => $productAssociationTypeName,
70
+                        'locale' => $localeCode,
71
+                    ],
72 72
             ],
73 73
         ]);
74 74
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Api/Admin/ManagingShipmentsContext.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -150,10 +150,10 @@
 block discarded – undo
150 150
     public function iShouldSeeTheShippingDateAs(OrderInterface $order, string $dateTime): void
151 151
     {
152 152
         Assert::eq(
153
-             new \DateTime($this->responseChecker->getValue($this->client->show((string) $order->getShipments()->first()->getId()), 'shippedAt')),
154
-             new \DateTime($dateTime),
155
-             'Shipment was shipped in different date'
156
-         );
153
+                new \DateTime($this->responseChecker->getValue($this->client->show((string) $order->getShipments()->first()->getId()), 'shippedAt')),
154
+                new \DateTime($dateTime),
155
+                'Shipment was shipped in different date'
156
+            );
157 157
     }
158 158
 
159 159
     /**
Please login to merge, or discard this patch.
Bundle/ApiBundle/spec/SerializerContextBuilder/LocaleContextBuilderSpec.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,17 +21,17 @@
 block discarded – undo
21 21
 final class LocaleContextBuilderSpec extends ObjectBehavior
22 22
 {
23 23
     function let(
24
-       SerializerContextBuilderInterface $decoratedSerializerContextBuilder,
25
-       LocaleContextInterface $localeContext
26
-   ): void {
24
+        SerializerContextBuilderInterface $decoratedSerializerContextBuilder,
25
+        LocaleContextInterface $localeContext
26
+    ): void {
27 27
         $this->beConstructedWith($decoratedSerializerContextBuilder, $localeContext);
28 28
     }
29 29
 
30 30
     function it_updates_an_context_when_locale_context_has_locale(
31
-       Request $request,
32
-       SerializerContextBuilderInterface $decoratedSerializerContextBuilder,
33
-       LocaleContextInterface $localeContext
34
-   ): void {
31
+        Request $request,
32
+        SerializerContextBuilderInterface $decoratedSerializerContextBuilder,
33
+        LocaleContextInterface $localeContext
34
+    ): void {
35 35
         $decoratedSerializerContextBuilder->createFromRequest($request, true, [])->shouldBeCalled();
36 36
         $localeContext->getLocaleCode()->willReturn('en_US');
37 37
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/Factory/PromotionExampleFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
 
167 167
     private static function getCouponNormalizer(?FactoryInterface $couponFactory): \Closure
168 168
     {
169
-        return function (Options $options, array $couponDefinitions) use ($couponFactory): array {
169
+        return function (Options $options, array $couponDefinitions) use ($couponFactory) : array {
170 170
             if (null === $couponFactory) {
171 171
                 throw new \RuntimeException('You must configure a $couponFactory');
172 172
             }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Installer/Setup/LocaleSetup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
 
107 107
         try {
108 108
             return Languages::getName($language, $region);
109
-        } catch(MissingResourceException $exception) {
109
+        } catch (MissingResourceException $exception) {
110 110
             return null;
111 111
         }
112 112
     }
Please login to merge, or discard this patch.