Skip to content

Commit 2f81215

Browse files
VincentBeangithub-actions[bot]
authored andcommitted
Fix styling changes
1 parent 178cc9a commit 2f81215

File tree

8 files changed

+9
-12
lines changed

8 files changed

+9
-12
lines changed

src/Actions/BuildRequest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ class BuildRequest implements BuildsRequest
1111
{
1212
public function __construct(
1313
protected AuthenticatesRequest $request
14-
) {
15-
}
14+
) {}
1615

1716
public function build(string $connection): PendingRequest
1817
{

src/Actions/OAuth/RequestAccessToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function request(string $connection, string $key): void
2727
abort(403);
2828
}
2929

30-
$credentials = new ClientCredentials();
30+
$credentials = new ClientCredentials;
3131
$credentials->setIdentifier($callback['oauth_consumer_key']);
3232
$credentials->setSecret($callback['oauth_consumer_secret']);
3333
$credentials->setCallbackUri(route('magento.oauth.callback', ['connection' => $connection]));

src/Events/MagentoResponseEvent.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ class MagentoResponseEvent
1212
public function __construct(
1313
public Response $response,
1414
public string $connection,
15-
) {
16-
}
15+
) {}
1716
}

src/OAuth/MagentoServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected function createTemporaryCredentials($body): TemporaryCredentials
5858
/** @var string $secret */
5959
$secret = $data['oauth_token_secret'];
6060

61-
$temporaryCredentials = new TemporaryCredentials();
61+
$temporaryCredentials = new TemporaryCredentials;
6262
$temporaryCredentials->setIdentifier($token);
6363
$temporaryCredentials->setSecret($secret);
6464

src/Providers/OAuthProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ public function authenticate(PendingRequest $request, string $connection): Pendi
3131

3232
return $request->withMiddleware(
3333
Middleware::mapRequest(function (RequestInterface $request) use ($keys) {
34-
$credentials = new ClientCredentials();
34+
$credentials = new ClientCredentials;
3535
$credentials->setIdentifier($keys['oauth_consumer_key']);
3636
$credentials->setSecret($keys['oauth_consumer_secret']);
3737

3838
$server = new MagentoServer($credentials, new HmacSha256Signature($credentials));
3939
$server->verifier = $keys['oauth_verifier'];
4040

41-
$tokenCredentials = new TokenCredentials();
41+
$tokenCredentials = new TokenCredentials;
4242
$tokenCredentials->setIdentifier($keys['access_token']);
4343
$tokenCredentials->setSecret($keys['access_token_secret']);
4444

src/Query/SearchCriteria.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ class SearchCriteria
1818

1919
public function __construct(
2020
protected Grammar $grammar
21-
) {
22-
}
21+
) {}
2322

2423
public function paginate(int $page, int $pageSize): static
2524
{

tests/OAuth/HmacSha256SignatureTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class HmacSha256SignatureTest extends TestCase
1111
/** @test */
1212
public function it_can_create_signatures(): void
1313
{
14-
$clientCredentials = new ClientCredentials();
14+
$clientCredentials = new ClientCredentials;
1515
$clientCredentials->setIdentifier('::oauth-consumer-key::');
1616
$clientCredentials->setSecret('::oauth-consumer-secret::');
1717

tests/Query/SearchCriteriaTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function test_it_can_dd(): void
193193
'fields' => 'sku,price',
194194
], $data);
195195

196-
throw new Exception();
196+
throw new Exception;
197197
});
198198

199199
$searchCriteria->dd();

0 commit comments

Comments
 (0)