Test Failed
Push — master ( af56a4...a412f3 )
by Gerrit
09:47
created
Category
php/AbstractSyntaxTree/SqlAstColumn.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
     public function hash(): string
107 107
     {
108
-        return md5(implode('.', array_map(function (SqlAstNode $node) {
108
+        return md5(implode('.', array_map(function(SqlAstNode $node) {
109 109
             return $node->hash();
110 110
         }, $this->children())));
111 111
     }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
     public function toSql(): string
134 134
     {
135
-        return implode('.', array_map(function (SqlAstNode $node) {
135
+        return implode('.', array_map(function(SqlAstNode $node) {
136 136
             return $node->toSql();
137 137
         }, $this->children()));
138 138
     }
Please login to merge, or discard this patch.
php/AbstractSyntaxTree/SqlAstBranch.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     public function hash(): string
43 43
     {
44 44
         /** @var array<string> $childHashes */
45
-        $childHashes = array_map(function (SqlAstNode $child) {
45
+        $childHashes = array_map(function(SqlAstNode $child) {
46 46
             return $child->hash();
47 47
         }, $this->children);
48 48
 
Please login to merge, or discard this patch.
tests/php/unit/AbstractSyntaxTree/SqlAstBranchTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
tests/php/unit/Parsing/SqlParserClassTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     public function setUp(): void
49 49
     {
50 50
         $this->tokenizer = $this->createMock(SqlTokenizer::class);
51
-        $this->mutators = array(function () {});
51
+        $this->mutators = array(function() {});
52 52
 
53 53
         $this->subject = new SqlParserClass($this->tokenizer, $this->mutators);
54 54
     }
@@ -155,13 +155,13 @@  discard block
 block discarded – undo
155 155
             /** @var string $expectedNodeType */
156 156
             $expectedNodeType = $matches[2];
157 157
 
158
-            $this->assertNotEmpty($childrensStack[$level-1], sprintf(
158
+            $this->assertNotEmpty($childrensStack[$level - 1], sprintf(
159 159
                 'Expected node-type "%s" at line %d, was end of nodes instead!',
160 160
                 $expectedNodeType,
161 161
                 $lineNumber
162 162
             ));
163 163
 
164
-            $stack[$level] = array_shift($childrensStack[$level-1]);
164
+            $stack[$level] = array_shift($childrensStack[$level - 1]);
165 165
             $childrensStack[$level] = $stack[$level]->children();
166 166
 
167 167
             /** @var string $actualNodeType */
Please login to merge, or discard this patch.
tests/php/unit/Lexing/SqlTokenizerClassTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@
 block discarded – undo
114 114
     /** @param array<int, AbstractSqlToken> $tokens */
115 115
     private function tokenListToString(array $tokens): string
116 116
     {
117
-        return implode("\n", array_map(function (AbstractSqlToken $token) {
117
+        return implode("\n", array_map(function(AbstractSqlToken $token) {
118 118
             return $token->name();
119 119
         }, $tokens));
120 120
     }
Please login to merge, or discard this patch.