Skip to content

Commit f686e12

Browse files
Reformat code
1 parent 4aa5ab2 commit f686e12

12 files changed

+15
-15
lines changed

src/Clauses/CallProcedureClause.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ protected function getSubject(): string
136136

137137
$arguments = implode(
138138
", ",
139-
array_map(fn (AnyType $pattern): string => $pattern->toQuery(), $this->arguments)
139+
array_map(fn(AnyType $pattern): string => $pattern->toQuery(), $this->arguments)
140140
);
141141

142142
if (count($this->yieldVariables) > 0) {
143143
$yieldParameters = implode(
144144
", ",
145-
array_map(fn (Variable $variable): string => $variable->toQuery(), $this->yieldVariables)
145+
array_map(fn(Variable $variable): string => $variable->toQuery(), $this->yieldVariables)
146146
);
147147

148148
return sprintf("%s(%s) YIELD %s", $this->procedure, $arguments, $yieldParameters);

src/Clauses/CreateClause.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function getSubject(): string
6363
{
6464
return implode(
6565
", ",
66-
array_map(fn (StructuralType $pattern): string => $pattern->toQuery(), $this->patterns)
66+
array_map(fn(StructuralType $pattern): string => $pattern->toQuery(), $this->patterns)
6767
);
6868
}
6969
}

src/Clauses/DeleteClause.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ protected function getSubject(): string
9191
{
9292
return implode(
9393
", ",
94-
array_map(fn (NodeType $node) => $node->toQuery(), $this->nodes)
94+
array_map(fn(NodeType $node) => $node->toQuery(), $this->nodes)
9595
);
9696
}
9797
}

src/Clauses/MatchClause.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function getSubject(): string
6363
{
6464
return implode(
6565
", ",
66-
array_map(fn (StructuralType $pattern): string => $pattern->toQuery(), $this->patterns)
66+
array_map(fn(StructuralType $pattern): string => $pattern->toQuery(), $this->patterns)
6767
);
6868
}
6969
}

src/Clauses/OptionalMatchClause.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function getSubject(): string
6363
{
6464
return implode(
6565
", ",
66-
array_map(fn (StructuralType $pattern): string => $pattern->toQuery(), $this->patterns)
66+
array_map(fn(StructuralType $pattern): string => $pattern->toQuery(), $this->patterns)
6767
);
6868
}
6969
}

src/Clauses/OrderByClause.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function getClause(): string
8383
*/
8484
protected function getSubject(): string
8585
{
86-
$properties = array_map(fn (Property $property): string => $property->toQuery(), $this->properties);
86+
$properties = array_map(fn(Property $property): string => $property->toQuery(), $this->properties);
8787
$subject = implode(", ", $properties);
8888

8989
return $this->descending ? sprintf("%s DESCENDING", $subject) : $subject;

src/Clauses/RemoveClause.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function getSubject(): string
7070
{
7171
return implode(
7272
", ",
73-
array_map(fn (QueryConvertable $expression) => $expression->toQuery(), $this->expressions)
73+
array_map(fn(QueryConvertable $expression) => $expression->toQuery(), $this->expressions)
7474
);
7575
}
7676
}

src/Clauses/SetClause.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function getSubject(): string
7070
{
7171
return implode(
7272
", ",
73-
array_map(fn (QueryConvertable $expression): string => $expression->toQuery(), $this->expressions)
73+
array_map(fn(QueryConvertable $expression): string => $expression->toQuery(), $this->expressions)
7474
);
7575
}
7676
}

src/ExpressionList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function __construct(array $expressions)
6565
public function toQuery(): string
6666
{
6767
$expressions = array_map(
68-
fn (AnyType $expression): string => $expression->toQuery(),
68+
fn(AnyType $expression): string => $expression->toQuery(),
6969
$this->expressions
7070
);
7171

src/Functions/FunctionCall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function toQuery(): string
146146
{
147147
$signature = $this->getSignature();
148148
$parameters = array_map(
149-
fn (QueryConvertable $convertable): string => $convertable->toQuery(),
149+
fn(QueryConvertable $convertable): string => $convertable->toQuery(),
150150
$this->getParameters()
151151
);
152152

0 commit comments

Comments
 (0)