Passed
Push — master ( 9f8f58...ee41e9 )
by Dominik
05:46 queued 03:00
created
src/Node/ArrayNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Node;
6 6
 
Please login to merge, or discard this patch.
src/QueryBuilder.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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
 
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -105,9 +105,9 @@
 block discarded – undo
105 105
     }
106 106
 
107 107
         /**
108
-     * @param bool|null
109
-     * @return BoolNode
110
-     */
108
+         * @param bool|null
109
+         * @return BoolNode
110
+         */
111 111
     public function boolNode($value = null): BoolNode
112 112
     {
113 113
         return new BoolNode($value);
Please login to merge, or discard this patch.
src/Node/AbstractNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Node;
6 6
 
Please login to merge, or discard this patch.
src/Node/AbstractParentNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Node;
6 6
 
Please login to merge, or discard this patch.
src/Node/ObjectNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Node;
6 6
 
Please login to merge, or discard this patch.
src/Node/NodeChildRelation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Node;
6 6
 
Please login to merge, or discard this patch.
src/Node/ScalarNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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\Node;
6 6
 
Please login to merge, or discard this patch.
src/QueryBuilderInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 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
 
Please login to merge, or discard this patch.
src/Generator/QueryBuilderGenerator.php 1 patch
Spacing   +5 added lines, -5 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\Generator;
6 6
 
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.