Skip to content

Commit 4ffccdb

Browse files
exaby73transistive
authored andcommitted
fix: Run CS
1 parent 42a4724 commit 4ffccdb

File tree

5 files changed

+10
-19
lines changed

5 files changed

+10
-19
lines changed

src/Bolt/BoltConnection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
use Laudis\Neo4j\Contracts\FormatterInterface;
2929
use Laudis\Neo4j\Databags\BookmarkHolder;
3030
use Laudis\Neo4j\Databags\DatabaseInfo;
31-
use Laudis\Neo4j\Databags\Neo4jError;
3231
use Laudis\Neo4j\Enum\AccessMode;
3332
use Laudis\Neo4j\Enum\ConnectionProtocol;
3433
use Laudis\Neo4j\Exception\Neo4jException;
@@ -153,6 +152,7 @@ public function consumeResults(): void
153152
{
154153
if ($this->protocol()->serverState !== ServerState::STREAMING && $this->protocol()->serverState !== ServerState::TX_STREAMING) {
155154
$this->subscribedResults = [];
155+
156156
return;
157157
}
158158

src/Bolt/BoltResult.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
namespace Laudis\Neo4j\Bolt;
1515

16-
use Bolt\enum\ServerState;
1716
use function array_splice;
1817
use function count;
1918

src/Bolt/BoltUnmanagedTransaction.php

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ public function __construct(
6060
private readonly SessionConfiguration $config,
6161
private readonly TransactionConfiguration $tsxConfig,
6262
private readonly BookmarkHolder $bookmarkHolder
63-
) {
64-
}
63+
) {}
6564

6665
/**
6766
* @throws ClientException|Throwable
@@ -174,11 +173,7 @@ public function runStatements(iterable $statements): CypherList
174173
}
175174

176175
/**
177-
* @param Neo4jException $e
178-
*
179-
* @return never
180176
* @throws Neo4jException
181-
*
182177
*/
183178
private function handleMessageException(Neo4jException $e): never
184179
{
@@ -187,9 +182,9 @@ private function handleMessageException(Neo4jException $e): never
187182
$this->connection->reset();
188183
}
189184
if (!$this->isFinished() && in_array(
190-
$exception->getClassification(),
191-
TransactionHelper::ROLLBACK_CLASSIFICATIONS
192-
)) {
185+
$exception->getClassification(),
186+
TransactionHelper::ROLLBACK_CLASSIFICATIONS
187+
)) {
193188
$this->state = TransactionState::ROLLED_BACK;
194189
}
195190

src/Enum/TransactionState.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
/**
1717
* The state of a transaction.
1818
*/
19-
enum TransactionState {
19+
enum TransactionState
20+
{
2021
/**
21-
* The transaction is running with no explicit success or failure marked
22+
* The transaction is running with no explicit success or failure marked.
2223
*/
2324
case ACTIVE;
2425

@@ -28,12 +29,12 @@ enum TransactionState {
2829
case TERMINATED;
2930

3031
/**
31-
* This transaction has successfully committed
32+
* This transaction has successfully committed.
3233
*/
3334
case COMMITTED;
3435

3536
/**
36-
* This transaction has been rolled back
37+
* This transaction has been rolled back.
3738
*/
3839
case ROLLED_BACK;
3940
}

src/Exception/ClientException.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@
2525
*/
2626
final class ClientException extends RuntimeException
2727
{
28-
/**
29-
* @param string $message
30-
* @param Throwable|null $previous
31-
*/
3228
public function __construct(string $message, ?Throwable $previous = null)
3329
{
3430
parent::__construct($message, 0, $previous);

0 commit comments

Comments
 (0)