src/NodeGenerator.php 1 location
|
@@ 162-165 (lines=4) @@
|
| 159 |
|
|
| 160 |
|
$structuredLines = []; |
| 161 |
|
|
| 162 |
|
foreach ($lines as $i => $line) { |
| 163 |
|
$lastStructuredLine = $structuredLines[count($structuredLines) - 1] ?? ''; |
| 164 |
|
$this->structuredLine($line, $lastStructuredLine, $position, $structuredLines); |
| 165 |
|
} |
| 166 |
|
|
| 167 |
|
$structuredLines[count($structuredLines) - 1] .= ';'; |
| 168 |
|
|
src/QueryBuilderGenerator.php 1 location
|
@@ 183-186 (lines=4) @@
|
| 180 |
|
|
| 181 |
|
$structuredLines = []; |
| 182 |
|
|
| 183 |
|
foreach ($lines as $i => $line) { |
| 184 |
|
$lastLine = $lines[$i-1] ?? ''; |
| 185 |
|
$this->structuredLine($line, $lastLine, $position, $structuredLines); |
| 186 |
|
} |
| 187 |
|
|
| 188 |
|
return implode("\n", $structuredLines); |
| 189 |
|
} |