Skip to content

Commit

Permalink
chore: autofix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Dec 19, 2023
1 parent daa0e9e commit 5f37f7a
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 28 deletions.
4 changes: 1 addition & 3 deletions src/Contract/Configuration/PropertiesInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@

use JsonSerializable;

interface PropertiesInterface extends JsonSerializable
{
}
interface PropertiesInterface extends JsonSerializable {}
4 changes: 1 addition & 3 deletions src/Contract/Handler/ServiceValidateHandlerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,4 @@

namespace EcPhp\CasLib\Contract\Handler;

interface ServiceValidateHandlerInterface extends HandlerInterface
{
}
interface ServiceValidateHandlerInterface extends HandlerInterface {}
4 changes: 1 addition & 3 deletions src/Contract/Response/Type/AuthenticationFailure.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@

use EcPhp\CasLib\Contract\Response\CasResponseInterface;

interface AuthenticationFailure extends CasResponseInterface
{
}
interface AuthenticationFailure extends CasResponseInterface {}
4 changes: 1 addition & 3 deletions src/Exception/CasExceptionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@

use Throwable;

interface CasExceptionInterface extends Throwable
{
}
interface CasExceptionInterface extends Throwable {}
3 changes: 1 addition & 2 deletions src/Handler/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ public function __construct(
private readonly ClientInterface $client,
private readonly PropertiesInterface $properties,
private readonly Psr17Interface $psr17
) {
}
) {}

/**
* This function will aggregate all the input arrays into a single array.
Expand Down
3 changes: 1 addition & 2 deletions src/Middleware/StringBodyResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ final class StringBodyResponse implements Plugin
{
public function __construct(
private readonly Psr17Interface $psr17
) {
}
) {}

public function handleRequest(RequestInterface $request, callable $next, callable $first): Promise
{
Expand Down
3 changes: 1 addition & 2 deletions src/Response/CasResponseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ public function __construct(
private readonly ProxyFactory $proxyFactory = new FactoryProxyFactory(),
private readonly ProxyFailureFactory $proxyFailureFactory = new FactoryProxyFailureFactory(),
private readonly ServiceValidateFactory $serviceValidateFactory = new FactoryServiceValidateFactory()
) {
}
) {}

public function fromResponse(ResponseInterface $response): CasResponseInterface
{
Expand Down
4 changes: 1 addition & 3 deletions src/Response/Type/AuthenticationFailure.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,4 @@

use EcPhp\CasLib\Contract\Response\Type\AuthenticationFailure as AuthenticationFailureInterface;

final class AuthenticationFailure extends CasResponse implements AuthenticationFailureInterface
{
}
final class AuthenticationFailure extends CasResponse implements AuthenticationFailureInterface {}
3 changes: 1 addition & 2 deletions src/Response/Type/CasResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ abstract class CasResponse implements CasResponseInterface
{
public function __construct(
private ResponseInterface $response
) {
}
) {}

public function getBody(): StreamInterface
{
Expand Down
3 changes: 1 addition & 2 deletions tests/Cas.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ final class Cas implements CasInterface
{
public function __construct(
private readonly CasInterface $cas
) {
}
) {}

public function authenticate(ServerRequestInterface $request, array $parameters = []): array
{
Expand Down
4 changes: 1 addition & 3 deletions tests/Exception/TestClientException.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@
use Exception;
use Psr\Http\Client\ClientExceptionInterface;

class TestClientException extends Exception implements ClientExceptionInterface
{
}
class TestClientException extends Exception implements ClientExceptionInterface {}

0 comments on commit 5f37f7a

Please sign in to comment.