Completed
Push — api ( cecea0...116a36 )
by Kamil
29:57 queued 30s
created
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/Client/ApiPlatformClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
     public function index(string $resource): void
42 42
     {
43
-        $this->request('GET', '/new-api/'.$resource, ['HTTP_ACCEPT' => 'application/ld+json']);
43
+        $this->request('GET', '/new-api/' . $resource, ['HTTP_ACCEPT' => 'application/ld+json']);
44 44
     }
45 45
 
46 46
     public function show(string $resource, string $id): void
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
@@ -181,8 +181,8 @@
 block discarded – undo
181 181
         $count = $this->client->countCollectionItems();
182 182
 
183 183
         Assert::true(
184
-            $this->client->hasItemOnPositionWithValue($count-1, $field, $value),
185
-            sprintf('There should be product option with %s "%s" on position %d, but it does not.', $field, $value, $count-1)
184
+            $this->client->hasItemOnPositionWithValue($count - 1, $field, $value),
185
+            sprintf('There should be product option with %s "%s" on position %d, but it does not.', $field, $value, $count - 1)
186 186
         );
187 187
     }
188 188
 
Please login to merge, or discard this patch.