@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Saxulum\ElasticSearchQueryBuilder\Node; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Saxulum\ElasticSearchQueryBuilder; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Saxulum\ElasticSearchQueryBuilder\Node; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Saxulum\ElasticSearchQueryBuilder\Node; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Saxulum\ElasticSearchQueryBuilder\Node; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Saxulum\ElasticSearchQueryBuilder\Node; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Saxulum\ElasticSearchQueryBuilder\Node; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Saxulum\ElasticSearchQueryBuilder; |
| 6 | 6 | |
@@ -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 | |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | $structuredLines = []; |
| 173 | 173 | |
| 174 | 174 | foreach ($lines as $i => $line) { |
| 175 | - $lastLine = $lines[$i-1] ?? ''; |
|
| 175 | + $lastLine = $lines[$i - 1] ?? ''; |
|
| 176 | 176 | $this->structuredLine($line, $lastLine, $position, $structuredLines); |
| 177 | 177 | } |
| 178 | 178 | |
@@ -197,14 +197,14 @@ discard block |
||
| 197 | 197 | * @param int $position |
| 198 | 198 | * @param array $structuredLines |
| 199 | 199 | */ |
| 200 | - private function structuredLine(string $line, string $lastLine, int &$position, array &$structuredLines) |
|
| 200 | + private function structuredLine(string $line, string $lastLine, int & $position, array &$structuredLines) |
|
| 201 | 201 | { |
| 202 | 202 | if (0 === strpos($line, '->add')) { |
| 203 | 203 | if (false === strpos($lastLine, '->end') && false === strpos($lastLine, '->scalarNode')) { |
| 204 | 204 | $position++; |
| 205 | 205 | } |
| 206 | 206 | |
| 207 | - $structuredLines[] = str_pad('', $position * 4) . $line; |
|
| 207 | + $structuredLines[] = str_pad('', $position * 4).$line; |
|
| 208 | 208 | |
| 209 | 209 | return; |
| 210 | 210 | } |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | |
| 219 | 219 | $position--; |
| 220 | 220 | |
| 221 | - $structuredLines[] = str_pad('', $position * 4) . $line; |
|
| 221 | + $structuredLines[] = str_pad('', $position * 4).$line; |
|
| 222 | 222 | |
| 223 | 223 | return; |
| 224 | 224 | } |