@@ -102,7 +102,7 @@ |
||
| 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 | } |
@@ -40,7 +40,7 @@ |
||
| 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 |
@@ -181,8 +181,8 @@ |
||
| 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 | |