Skip to content

Commit abfe43f

Browse files
committed
feat: Update PHP CS Fixer and run fix
1 parent de60b32 commit abfe43f

Some content is hidden

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

76 files changed

+259
-209
lines changed

.php-cs-fixer.dist.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
MultilineCommentOpeningClosingAloneFixer::name() => true,
6464
MultilinePromotedPropertiesFixer::name() => true,
6565
PhpUnitAssertArgumentsOrderFixer::name() => true,
66-
PhpdocNoSuperfluousParamFixer::name() => true,
6766
PhpdocParamOrderFixer::name() => true,
6867
StringableInterfaceFixer::name() => true,
6968
])

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"nyholm/psr7-server": "^1.0",
5050
"kriswallsmith/buzz": "^1.2",
5151
"vimeo/psalm": "^5.0",
52-
"friendsofphp/php-cs-fixer": "3.15.0",
52+
"friendsofphp/php-cs-fixer": "3.68.5",
5353
"psalm/plugin-phpunit": "^0.18",
5454
"monolog/monolog": "^2.2",
5555
"symfony/uid": "^5.0",

src/Authentication/BasicAuth.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public function __construct(
3838
private readonly string $username,
3939
private readonly string $password,
4040
private readonly ?Neo4jLogger $logger,
41-
) {}
41+
) {
42+
}
4243

4344
/**
4445
* @throws Exception

src/Authentication/KerberosAuth.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ final class KerberosAuth implements AuthenticateInterface
4040
public function __construct(
4141
private readonly string $token,
4242
private readonly ?Neo4jLogger $logger,
43-
) {}
43+
) {
44+
}
4445

4546
public function authenticateHttp(RequestInterface $request, UriInterface $uri, string $userAgent): RequestInterface
4647
{
4748
$this->logger?->log(LogLevel::DEBUG, 'Authenticating using KerberosAuth');
49+
4850
/**
4951
* @psalm-suppress ImpureMethodCall Request is a pure object:
5052
*

src/Authentication/NoAuth.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,14 @@ final class NoAuth implements AuthenticateInterface
3838
* @pure
3939
*/
4040
public function __construct(
41-
private readonly ?Neo4jLogger $logger
42-
) {}
41+
private readonly ?Neo4jLogger $logger,
42+
) {
43+
}
4344

4445
public function authenticateHttp(RequestInterface $request, UriInterface $uri, string $userAgent): RequestInterface
4546
{
4647
$this->logger?->log(LogLevel::DEBUG, 'Authentication disabled');
48+
4749
/**
4850
* @psalm-suppress ImpureMethodCall Request is a pure object:
4951
*

src/Authentication/OpenIDConnectAuth.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,14 @@ final class OpenIDConnectAuth implements AuthenticateInterface
3636
*/
3737
public function __construct(
3838
private readonly string $token,
39-
private readonly ?Neo4jLogger $logger
40-
) {}
39+
private readonly ?Neo4jLogger $logger,
40+
) {
41+
}
4142

4243
public function authenticateHttp(RequestInterface $request, UriInterface $uri, string $userAgent): RequestInterface
4344
{
4445
$this->logger?->log(LogLevel::DEBUG, 'Authenticating using OpenIDConnectAuth');
46+
4547
/**
4648
* @psalm-suppress ImpureMethodCall Request is a pure object:
4749
*

src/Basic/Client.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ final class Client implements ClientInterface
2929
* @param ClientInterface<SummarizedResult<CypherMap>> $client
3030
*/
3131
public function __construct(
32-
private readonly ClientInterface $client
33-
) {}
32+
private readonly ClientInterface $client,
33+
) {
34+
}
3435

3536
public function run(string $statement, iterable $parameters = [], ?string $alias = null): SummarizedResult
3637
{

src/Basic/Driver.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ final class Driver implements DriverInterface
3434
* @psalm-external-mutation-free
3535
*/
3636
public function __construct(
37-
private readonly DriverInterface $driver
38-
) {}
37+
private readonly DriverInterface $driver,
38+
) {
39+
}
3940

4041
/**
4142
* @psalm-mutation-free

src/Basic/Session.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ final class Session implements SessionInterface
3030
* @param SessionInterface<SummarizedResult<CypherMap>> $session
3131
*/
3232
public function __construct(
33-
private readonly SessionInterface $session
34-
) {}
33+
private readonly SessionInterface $session,
34+
) {
35+
}
3536

3637
/**
3738
* @param iterable<Statement> $statements

src/Basic/UnmanagedTransaction.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ final class UnmanagedTransaction implements UnmanagedTransactionInterface
2828
* @param UnmanagedTransactionInterface<SummarizedResult<CypherMap>> $tsx
2929
*/
3030
public function __construct(
31-
private readonly UnmanagedTransactionInterface $tsx
32-
) {}
31+
private readonly UnmanagedTransactionInterface $tsx,
32+
) {
33+
}
3334

3435
/**
3536
* @param iterable<string, mixed> $parameters

0 commit comments

Comments
 (0)