@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace Saxulum\ElasticSearchQueryBuilder\Generator; |
6 | 6 | |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | * @param int $position |
189 | 189 | * @param array $structuredLines |
190 | 190 | */ |
191 | - private function structuredLine(string $line, string $lastStructuredLine, int &$position, array &$structuredLines) |
|
191 | + private function structuredLine(string $line, string $lastStructuredLine, int & $position, array &$structuredLines) |
|
192 | 192 | { |
193 | 193 | if (0 === strpos($line, '->add') && |
194 | 194 | false === strpos($lastStructuredLine, ' )') && |
@@ -206,14 +206,14 @@ discard block |
||
206 | 206 | $prefix = str_pad('', $position * 4); |
207 | 207 | |
208 | 208 | if ($braceCount > 2) { |
209 | - $structuredLines[] = $prefix . substr($line, 0, - ($braceCount - 2)); |
|
209 | + $structuredLines[] = $prefix.substr($line, 0, - ($braceCount - 2)); |
|
210 | 210 | } else { |
211 | - $structuredLines[] = $prefix . $line; |
|
211 | + $structuredLines[] = $prefix.$line; |
|
212 | 212 | } |
213 | 213 | |
214 | 214 | while ($braceCount-- > 2) { |
215 | 215 | $position--; |
216 | - $structuredLines[] = str_pad('', $position * 4) . ')'; |
|
216 | + $structuredLines[] = str_pad('', $position * 4).')'; |
|
217 | 217 | } |
218 | 218 | } |
219 | 219 | } |