@@ -21,7 +21,8 @@ |
||
| 21 | 21 | |
| 22 | 22 | final class ProductReviewStateMachineTransitionApplicatorSpec extends ObjectBehavior |
| 23 | 23 | { |
| 24 | - function let(StateMachineFactoryInterface $stateMachineFactory) { |
|
| 24 | + function let(StateMachineFactoryInterface $stateMachineFactory) |
|
| 25 | + { |
|
| 25 | 26 | $this->beConstructedWith($stateMachineFactory); |
| 26 | 27 | } |
| 27 | 28 | |
@@ -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 | |
@@ -316,8 +316,7 @@ |
||
| 316 | 316 | $this->client->index('exchange_rates'); |
| 317 | 317 | |
| 318 | 318 | /** @var array $item */ |
| 319 | - foreach ($this->client->getCollectionItems() as $item) |
|
| 320 | - { |
|
| 319 | + foreach ($this->client->getCollectionItems() as $item) { |
|
| 321 | 320 | if ( |
| 322 | 321 | $item['sourceCurrency'] === '/new-api/currencies/' . $sourceCurrency->getCode() && |
| 323 | 322 | $item['targetCurrency'] === '/new-api/currencies/' . $targetCurrency->getCode() |