Completed
Push — master ( 39887f...25839e )
by Dominik
02:21
created
src/NodeGenerator.php 1 patch
Spacing   +6 added lines, -6 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
 
@@ -125,21 +125,21 @@  discard block
 block discarded – undo
125 125
             if (0 === strpos($line, '->add') && false === strpos($structuredLines[count($structuredLines) - 1], ' )') && false === strpos($structuredLines[count($structuredLines) - 1], 'ScalarNode')) {
126 126
                 $position++;
127 127
             }
128
-            $lineLength = count($lines) - 1 !== $i ? strlen($line) -1 : strlen($line) - 2;
128
+            $lineLength = count($lines) - 1 !== $i ? strlen($line) - 1 : strlen($line) - 2;
129 129
             $braceCount = 0;
130
-            while(')' === $line[$lineLength--]) {
130
+            while (')' === $line[$lineLength--]) {
131 131
                 $braceCount++;
132 132
             }
133 133
             $prefix = str_pad('', $position * 4);
134 134
             if ($braceCount > 2) {
135
-                $structuredLines[] = $prefix . substr($line, 0, - ($braceCount - 2));
135
+                $structuredLines[] = $prefix.substr($line, 0, - ($braceCount - 2));
136 136
             } else {
137
-                $structuredLines[] = $prefix . $line;
137
+                $structuredLines[] = $prefix.$line;
138 138
             }
139 139
 
140 140
             while ($braceCount-- > 2) {
141 141
                 $position--;
142
-                $structuredLines[] = str_pad('', $position * 4) . ')';
142
+                $structuredLines[] = str_pad('', $position * 4).')';
143 143
             }
144 144
         }
145 145
 
Please login to merge, or discard this patch.