Skip to content

Commit 0fe961b

Browse files
author
Wout Gevaert
committed
Fix codestyle using FriendsOfPHP/PHP-CS-Fixer
I did not enforce the 120 char softlimit everywhere, but I did in most files in `./src`
1 parent f7167c8 commit 0fe961b

File tree

156 files changed

+693
-535
lines changed

Some content is hidden

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

156 files changed

+693
-535
lines changed

src/Addition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ protected function getOperator(): string
4848
{
4949
return "+";
5050
}
51-
}
51+
}

src/AndOperator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ protected function getOperator(): string
4848
{
4949
return "AND";
5050
}
51-
}
51+
}

src/BinaryOperator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ public function toQuery(): string
7676
* @return string
7777
*/
7878
abstract protected function getOperator(): string;
79-
}
79+
}

src/Clauses/CallProcedureClause.php

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

135135
$arguments = implode(
136136
", ",
137-
array_map(fn(AnyType $pattern): string => $pattern->toQuery(), $this->arguments)
137+
array_map(fn (AnyType $pattern): string => $pattern->toQuery(), $this->arguments)
138138
);
139139

140140
if (count($this->yieldVariables) > 0) {
141141
$yieldParameters = implode(
142142
", ",
143-
array_map(fn(Variable $variable): string => $variable->toQuery(), $this->yieldVariables)
143+
array_map(fn (Variable $variable): string => $variable->toQuery(), $this->yieldVariables)
144144
);
145145

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

src/Clauses/Clause.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ public function canBeEmpty(): bool
6868
* @return string
6969
*/
7070
abstract protected function getClause(): string;
71-
}
71+
}

src/Clauses/CreateClause.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CreateClause extends Clause
4545
* @param StructuralType|Assignment $pattern The pattern to create
4646
* @return CreateClause
4747
*/
48-
public function addPattern( $pattern ): self
48+
public function addPattern($pattern): self
4949
{
5050
$this->assertClass('pattern', [StructuralType::class, Assignment::class], $pattern);
5151

@@ -69,7 +69,7 @@ protected function getSubject(): string
6969
{
7070
return implode(
7171
", ",
72-
array_map(fn($pattern): string => $pattern->toQuery(), $this->patterns)
72+
array_map(fn ($pattern): string => $pattern->toQuery(), $this->patterns)
7373
);
7474
}
7575
}

src/Clauses/DeleteClause.php

Lines changed: 2 additions & 2 deletions
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
}
97-
}
97+
}

src/Clauses/LimitClause.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ protected function getSubject(): string
6969

7070
return "";
7171
}
72-
}
72+
}

src/Clauses/MatchClause.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class MatchClause extends Clause
4545
* @param StructuralType|Assignment $pattern
4646
* @return MatchClause
4747
*/
48-
public function addPattern( $pattern ): self
48+
public function addPattern($pattern): self
4949
{
5050
$this->assertClass('pattern', [StructuralType::class, Assignment::class], $pattern);
5151

@@ -69,7 +69,7 @@ protected function getSubject(): string
6969
{
7070
return implode(
7171
", ",
72-
array_map(fn( $pattern ): string => $pattern->toQuery(), $this->patterns)
72+
array_map(fn ($pattern): string => $pattern->toQuery(), $this->patterns)
7373
);
7474
}
7575
}

src/Clauses/OptionalMatchClause.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class OptionalMatchClause extends Clause
4545
* @param StructuralType|Assignment $pattern
4646
* @return OptionalMatchClause
4747
*/
48-
public function addPattern( $pattern ): self
48+
public function addPattern($pattern): self
4949
{
5050
$this->assertClass('pattern', [StructuralType::class, Assignment::class], $pattern);
5151

@@ -69,7 +69,7 @@ protected function getSubject(): string
6969
{
7070
return implode(
7171
", ",
72-
array_map(fn( $pattern ): string => $pattern->toQuery(), $this->patterns)
72+
array_map(fn ($pattern): string => $pattern->toQuery(), $this->patterns)
7373
);
7474
}
7575
}

0 commit comments

Comments
 (0)