Completed
Push — master ( 00431d...7ae81a )
by Dominik
02:16
created
src/Generator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Saxulum\ElasticSearchQueryBuilder;
6 6
 
@@ -73,15 +73,15 @@  discard block
 block discarded – undo
73 73
         $structuredLines = [];
74 74
 
75 75
         foreach ($lines as $i => $line) {
76
-            $lastLine = $lines[$i-1] ?? '';
76
+            $lastLine = $lines[$i - 1] ?? '';
77 77
             if (0 === strpos($line, '->add')) {
78 78
                 if (false === strpos($lastLine, '->end') && false === strpos($lastLine, '->scalarNode')) {
79 79
                     $position++;
80 80
                 }
81
-                $structuredLines[] = str_pad('', $position * 4) . $line;
81
+                $structuredLines[] = str_pad('', $position * 4).$line;
82 82
             } elseif (0 === strpos($line, '->end')) {
83 83
                 $position--;
84
-                $structuredLines[] = str_pad('', $position * 4) . $line;
84
+                $structuredLines[] = str_pad('', $position * 4).$line;
85 85
             } else {
86 86
                 $structuredLines[] = $line;
87 87
             }
Please login to merge, or discard this patch.