Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb6d604

Browse files
committed
[Behat] Fix CS after introducing PHP 8.0 syntax
1 parent 3acaac2 commit cb6d604

165 files changed

Lines changed: 1016 additions & 331 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Sylius/Behat/Client/ApiPlatformClient.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@ final class ApiPlatformClient implements ApiClientInterface
2323
{
2424
private ?RequestInterface $request = null;
2525

26-
public function __construct(private AbstractBrowser $client, private SharedStorageInterface $sharedStorage, private string $authorizationHeader, private string $resource, private ?string $section = null)
27-
{
26+
public function __construct(
27+
private AbstractBrowser $client,
28+
private SharedStorageInterface $sharedStorage,
29+
private string $authorizationHeader,
30+
private string $resource,
31+
private ?string $section = null
32+
) {
2833
}
2934

3035
public function index(): Response

src/Sylius/Behat/Client/ApiPlatformIriClient.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@
2020

2121
final class ApiPlatformIriClient implements ApiIriClientInterface
2222
{
23-
public function __construct(private AbstractBrowser $client, private SharedStorageInterface $sharedStorage, private string $authorizationHeader)
24-
{
23+
public function __construct(
24+
private AbstractBrowser $client,
25+
private SharedStorageInterface $sharedStorage,
26+
private string $authorizationHeader
27+
) {
2528
}
2629

2730
public function showByIri(string $iri): Response

src/Sylius/Behat/Client/ApiPlatformSecurityClient.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ final class ApiPlatformSecurityClient implements ApiSecurityClientInterface
2121
{
2222
private array $request = [];
2323

24-
public function __construct(private AbstractBrowser $client, private string $section, private SharedStorageInterface $sharedStorage)
25-
{
24+
public function __construct(
25+
private AbstractBrowser $client,
26+
private string $section,
27+
private SharedStorageInterface $sharedStorage
28+
) {
2629
}
2730

2831
public function prepareLoginRequest(): void

src/Sylius/Behat/Client/Request.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ final class Request implements RequestInterface
2525

2626
private array $files = [];
2727

28-
private function __construct(private string $url, private string $method, array $headers = [])
29-
{
28+
private function __construct(
29+
private string $url,
30+
private string $method,
31+
array $headers = []
32+
) {
3033
$this->headers = array_merge($this->headers, $headers);
3134
}
3235

src/Sylius/Behat/Context/Api/Admin/AjaxContext.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@
2222

2323
final class AjaxContext implements Context
2424
{
25-
public function __construct(private AbstractBrowser $client, private SessionInterface $session)
26-
{
25+
public function __construct(
26+
private AbstractBrowser $client,
27+
private SessionInterface $session
28+
) {
2729
}
2830

2931
/**

src/Sylius/Behat/Context/Api/Admin/ManagingAdministratorsContext.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@
2525

2626
final class ManagingAdministratorsContext implements Context
2727
{
28-
public function __construct(private ApiClientInterface $client, private ApiClientInterface $avatarImagesClient, private ResponseCheckerInterface $responseChecker, private IriConverterInterface $iriConverter, private SharedStorageInterface $sharedStorage, private \ArrayAccess $minkParameters)
29-
{
28+
public function __construct(
29+
private ApiClientInterface $client,
30+
private ApiClientInterface $avatarImagesClient,
31+
private ResponseCheckerInterface $responseChecker,
32+
private IriConverterInterface $iriConverter,
33+
private SharedStorageInterface $sharedStorage,
34+
private \ArrayAccess $minkParameters
35+
) {
3036
}
3137

3238
/**

src/Sylius/Behat/Context/Api/Admin/ManagingCatalogPromotionsContext.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,13 @@
3535

3636
final class ManagingCatalogPromotionsContext implements Context
3737
{
38-
public function __construct(private ApiClientInterface $client, private ResponseCheckerInterface $responseChecker, private MessageBusInterface $messageBus, private IriConverterInterface $iriConverter, private SharedStorageInterface $sharedStorage)
39-
{
38+
public function __construct(
39+
private ApiClientInterface $client,
40+
private ResponseCheckerInterface $responseChecker,
41+
private MessageBusInterface $messageBus,
42+
private IriConverterInterface $iriConverter,
43+
private SharedStorageInterface $sharedStorage
44+
) {
4045
}
4146

4247
/**

src/Sylius/Behat/Context/Api/Admin/ManagingChannelsContext.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ final class ManagingChannelsContext implements Context
2929
{
3030
private array $shopBillingData = [];
3131

32-
public function __construct(private ApiClientInterface $client, private ResponseCheckerInterface $responseChecker, private IriConverterInterface $iriConverter)
33-
{
32+
public function __construct(
33+
private ApiClientInterface $client,
34+
private ResponseCheckerInterface $responseChecker,
35+
private IriConverterInterface $iriConverter
36+
) {
3437
}
3538

3639
/**

src/Sylius/Behat/Context/Api/Admin/ManagingCountriesContext.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@
2525

2626
final class ManagingCountriesContext implements Context
2727
{
28-
public function __construct(private ApiClientInterface $client, private ApiClientInterface $provincesClient, private ResponseCheckerInterface $responseChecker, private SharedStorageInterface $sharedStorage, private IriConverterInterface $iriConverter)
29-
{
28+
public function __construct(
29+
private ApiClientInterface $client,
30+
private ApiClientInterface $provincesClient,
31+
private ResponseCheckerInterface $responseChecker,
32+
private SharedStorageInterface $sharedStorage,
33+
private IriConverterInterface $iriConverter
34+
) {
3035
}
3136

3237
/**

src/Sylius/Behat/Context/Api/Admin/ManagingCurrenciesContext.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020

2121
final class ManagingCurrenciesContext implements Context
2222
{
23-
public function __construct(private ApiClientInterface $client, private ResponseCheckerInterface $responseChecker)
24-
{
23+
public function __construct(
24+
private ApiClientInterface $client,
25+
private ResponseCheckerInterface $responseChecker
26+
) {
2527
}
2628

2729
/**

0 commit comments

Comments
 (0)