@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | /** @param array<string, AbstractSqlToken> $keywords */ |
23 | 23 | public function __construct(array $keywords) |
24 | 24 | { |
25 | - array_map(function ($keyword) { |
|
25 | + array_map(function($keyword) { |
|
26 | 26 | /** @psalm-suppress RedundantConditionGivenDocblockType */ |
27 | 27 | Assert::isInstanceOf($keyword, AbstractSqlToken::class); |
28 | 28 | }, $keywords); |
@@ -105,10 +105,10 @@ discard block |
||
105 | 105 | 'ON' => SqlToken::ON(), |
106 | 106 | 'IN' => SqlToken::IN(), |
107 | 107 | 'IS' => SqlToken::IS(), |
108 | - 'AND' => SqlToken::AND(), |
|
108 | + 'AND' => SqlToken:: AND (), |
|
109 | 109 | 'ORDER' => SqlToken::ORDER(), |
110 | 110 | 'BY' => SqlToken::BY(), |
111 | - 'OR' => SqlToken::OR(), |
|
111 | + 'OR' => SqlToken:: OR (), |
|
112 | 112 | 'LIKE' => SqlToken::LIKE(), |
113 | 113 | 'USING' => SqlToken::USING(), |
114 | 114 | 'WHERE' => SqlToken::WHERE(), |
@@ -60,8 +60,8 @@ |
||
60 | 60 | if ($nextNode instanceof SqlAstTokenNode) { |
61 | 61 | /** @var bool $isConjunction */ |
62 | 62 | $isConjunction = max( |
63 | - $nextNode->is(SqlToken::AND()), |
|
64 | - $nextNode->is(SqlToken::OR()) |
|
63 | + $nextNode->is(SqlToken:: AND ()), |
|
64 | + $nextNode->is(SqlToken:: OR ()) |
|
65 | 65 | ); |
66 | 66 | |
67 | 67 | if ($isConjunction) { |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | public function shouldWalkChildren(): void |
72 | 72 | { |
73 | 73 | $mutatorAExpectedChilds = [$this->childA, $this->childB, $this->childC]; |
74 | - $mutatorA = function (SqlAstNode $child, int $offset, SqlAstMutableNode $subject) use (&$mutatorAExpectedChilds): void { |
|
74 | + $mutatorA = function(SqlAstNode $child, int $offset, SqlAstMutableNode $subject) use (&$mutatorAExpectedChilds): void { |
|
75 | 75 | $this->assertSame($this->subject, $subject); |
76 | 76 | $this->assertNotEmpty($mutatorAExpectedChilds); |
77 | 77 | $this->assertEquals(3 - count($mutatorAExpectedChilds), $offset); |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | }; |
80 | 80 | |
81 | 81 | $mutatorBExpectedChilds = [$this->childA, $this->childB, $this->childC]; |
82 | - $mutatorB = function (SqlAstNode $child, int $offset, SqlAstMutableNode $subject) use (&$mutatorBExpectedChilds): void { |
|
82 | + $mutatorB = function(SqlAstNode $child, int $offset, SqlAstMutableNode $subject) use (&$mutatorBExpectedChilds): void { |
|
83 | 83 | $this->assertSame($this->subject, $subject); |
84 | 84 | $this->assertNotEmpty($mutatorBExpectedChilds); |
85 | 85 | $this->assertEquals(3 - count($mutatorBExpectedChilds), $offset); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | { |
104 | 104 | $this->subject->replace($offset, $length, $newNode); |
105 | 105 | |
106 | - $expectedChilds = array_map(function ($input) { |
|
106 | + $expectedChilds = array_map(function($input) { |
|
107 | 107 | if (is_string($input) && isset($this->{$input})) { |
108 | 108 | $input = $this->{$input}; |
109 | 109 | } |