Skip to content

Commit

Permalink
chore: Run fix-cs
Browse files Browse the repository at this point in the history
  • Loading branch information
exaby73 committed Sep 16, 2024
1 parent 06da73c commit 5298dce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/SymfonyClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function run(string $statement, iterable $parameters = [], ?string $alias
public function runStatement(Statement $statement, ?string $alias = null): ?SummarizedResult
{
return $this->handler->handle(
fn(Statement $statement) => $this->client->runStatement($statement, $alias),
fn (Statement $statement) => $this->client->runStatement($statement, $alias),
$statement,
$alias,
null
Expand All @@ -62,7 +62,7 @@ public function beginTransaction(
): UnmanagedTransactionInterface {
$tsx = new SymfonyTransaction($this->client->beginTransaction(null, $alias, $config), $this->handler, $alias);

$runHandler = fn(Statement $statement): CypherList => $tsx->runStatement($statement);
$runHandler = fn (Statement $statement): CypherList => $tsx->runStatement($statement);

foreach (($statements ?? []) as $statement) {
$this->handler->handle($runHandler, $statement, $alias, null);
Expand All @@ -85,7 +85,7 @@ public function writeTransaction(
$session = $this->client->getDriver($alias)->createSession($sessionConfig);

return TransactionHelper::retry(
fn() => new SymfonyTransaction($session->beginTransaction([], $config), $this->handler, $alias),
fn () => new SymfonyTransaction($session->beginTransaction([], $config), $this->handler, $alias),
$tsxHandler
);
}
Expand All @@ -99,7 +99,7 @@ public function readTransaction(
$session = $this->client->getDriver($alias)->createSession($sessionConfig);

return TransactionHelper::retry(
fn() => new SymfonyTransaction($session->beginTransaction([], $config), $this->handler, $alias),
fn () => new SymfonyTransaction($session->beginTransaction([], $config), $this->handler, $alias),
$tsxHandler
);
}
Expand Down

0 comments on commit 5298dce

Please sign in to comment.