Completed
Push — phpunit-8 ( 941c21...f44718 )
by Kamil
09:26
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/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/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   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -162,11 +162,11 @@
 block discarded – undo
162 162
      */
163 163
     public function thisProductReviewShouldNoLongerExistInTheRegistry(): void
164 164
     {
165
-       $id = (string) $this->sharedStorage->get('product_review_id');
166
-       Assert::false(
167
-           $this->isItemOnIndex('id', $id),
168
-           sprintf('Product review with id %s exist', $id)
169
-       );
165
+        $id = (string) $this->sharedStorage->get('product_review_id');
166
+        Assert::false(
167
+            $this->isItemOnIndex('id', $id),
168
+            sprintf('Product review with id %s exist', $id)
169
+        );
170 170
     }
171 171
 
172 172
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Api/Admin/ManagingProductOptionsContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -187,8 +187,8 @@
 block discarded – undo
187 187
         $count = $this->responseChecker->countCollectionItems($this->client->getLastResponse());
188 188
 
189 189
         Assert::true(
190
-            $this->responseChecker->hasItemOnPositionWithValue($this->client->getLastResponse(), $count-1, $field, $value),
191
-            sprintf('There should be product option with %s "%s" on position %d, but it does not.', $field, $value, $count-1)
190
+            $this->responseChecker->hasItemOnPositionWithValue($this->client->getLastResponse(), $count - 1, $field, $value),
191
+            sprintf('There should be product option with %s "%s" on position %d, but it does not.', $field, $value, $count - 1)
192 192
         );
193 193
     }
194 194
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Api/Admin/ManagingShipmentsContext.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -149,11 +149,11 @@  discard block
 block discarded – undo
149 149
      */
150 150
     public function iShouldSeeTheShippingDateAs(OrderInterface $order, string $dateTime): void
151 151
     {
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
-         );
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
+            );
157 157
     }
158 158
 
159 159
     /**
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
 
214 214
     private function isShipmentForOrder(OrderInterface $order): bool
215 215
     {
216
-         return $this->responseChecker->hasItemWithValue(
216
+            return $this->responseChecker->hasItemWithValue(
217 217
             $this->client->getLastResponse(),
218 218
             'order',
219 219
             $this->iriConverter->getIriFromItem($order)
Please login to merge, or discard this patch.
Doctrine/QueryCollectionExtension/HideArchivedShippingMethodExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
             return;
43 43
         }
44 44
 
45
-        $rootAlias  = $queryBuilder->getRootAliases()[0];
45
+        $rootAlias = $queryBuilder->getRootAliases()[0];
46 46
 
47 47
         $queryBuilder->andWhere(sprintf('%s.archivedAt IS NULL', $rootAlias));
48 48
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Client/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 
95 95
     public static function transition(string $resource, string $id, string $transition, string $token): RequestInterface
96 96
     {
97
-        return self::customItemAction($resource, $id, HttpRequest::METHOD_PATCH,  $transition, $token);
97
+        return self::customItemAction($resource, $id, HttpRequest::METHOD_PATCH, $transition, $token);
98 98
     }
99 99
 
100 100
     public static function customItemAction(string $resource, string $id, string $type, string $action, string $token): RequestInterface
Please login to merge, or discard this patch.