Skip to content

Commit e775602

Browse files
committed
Code style fix
1 parent 630ba51 commit e775602

File tree

13 files changed

+13
-30
lines changed

13 files changed

+13
-30
lines changed

contracts/Authenticator/Exceptions/AuthenticationException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@
1515

1616
use Cog\Contracts\YouTrack\Rest\Client\Exceptions\ClientException;
1717

18-
class AuthenticationException extends ClientException
19-
{
20-
}
18+
class AuthenticationException extends ClientException {}

contracts/Authorizer/Exceptions/AuthorizationException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@
1515

1616
use Cog\Contracts\YouTrack\Rest\Client\Exceptions\ClientException;
1717

18-
class AuthorizationException extends ClientException
19-
{
20-
}
18+
class AuthorizationException extends ClientException {}

contracts/Authorizer/Exceptions/InvalidAuthorizationToken.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,4 @@
1313

1414
namespace Cog\Contracts\YouTrack\Rest\Authorizer\Exceptions;
1515

16-
class InvalidAuthorizationToken extends AuthorizationException
17-
{
18-
}
16+
class InvalidAuthorizationToken extends AuthorizationException {}

contracts/Client/Exceptions/ClientException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@
1515

1616
use RuntimeException;
1717

18-
class ClientException extends RuntimeException
19-
{
20-
}
18+
class ClientException extends RuntimeException {}

contracts/HttpClient/Exceptions/HttpClientException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@
1515

1616
use RuntimeException;
1717

18-
class HttpClientException extends RuntimeException
19-
{
20-
}
18+
class HttpClientException extends RuntimeException {}

src/Authenticator/CookieAuthenticator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ class CookieAuthenticator implements
2929
public function __construct(
3030
private readonly string $username,
3131
private readonly string $password,
32-
) {
33-
}
32+
) {}
3433

3534
/**
3635
* Authenticate client and returns cookie on success login.

src/Authorizer/CookieAuthorizer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ class CookieAuthorizer implements
2222
{
2323
public function __construct(
2424
private readonly AuthenticatorInterface $authenticator,
25-
) {
26-
}
25+
) {}
2726

2827
/**
2928
* Append authorization headers to REST client.

src/Authorizer/TokenAuthorizer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ class TokenAuthorizer implements
2424
{
2525
public function __construct(
2626
private readonly string $token,
27-
) {
28-
}
27+
) {}
2928

3029
/**
3130
* Append authorization headers to REST client.

src/HttpClient/GuzzleHttpClient.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ class GuzzleHttpClient implements
2727
{
2828
public function __construct(
2929
private readonly ClientInterface $httpClient,
30-
) {
31-
}
30+
) {}
3231

3332
/**
3433
* Send request to the server and fetch the raw response.

src/Response/YouTrackResponse.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ class YouTrackResponse implements
2121
{
2222
public function __construct(
2323
private readonly PsrResponseInterface $response,
24-
) {
25-
}
24+
) {}
2625

2726
/**
2827
* Returns original HTTP client response.

0 commit comments

Comments
 (0)