@@ -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 | } |
@@ -187,8 +187,8 @@ |
||
| 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 | |
@@ -42,7 +42,7 @@ |
||
| 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 | } |
@@ -94,7 +94,7 @@ |
||
| 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 |