Passed
Push — master ( 458589...f1a1e2 )
by Dominik
02:27
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 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/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   +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\Generator;
6 6
 
@@ -69,18 +69,18 @@  discard block
 block discarded – undo
69 69
         $structuredLines = [];
70 70
 
71 71
         foreach ($lines as $i => $line) {
72
-            $lastLine = $lines[$i-1] ?? '';
72
+            $lastLine = $lines[$i - 1] ?? '';
73 73
             if (0 === strpos($line, '->add')) {
74 74
                 if (false === strpos($lastLine, '->end') && false === strpos($lastLine, '->scalarNode')) {
75 75
                     $position++;
76 76
                 }
77
-                $structuredLines[] = str_pad('', $position * 4) . $line;
77
+                $structuredLines[] = str_pad('', $position * 4).$line;
78 78
             } elseif (0 === strpos($line, '->end')) {
79 79
                 if (strpos($lastLine, '->objectNode') || strpos($lastLine, '->arrayNode')) {
80 80
                     $structuredLines[count($structuredLines) - 1] .= '->end()';
81 81
                 } else {
82 82
                     $position--;
83
-                    $structuredLines[] = str_pad('', $position * 4) . $line;
83
+                    $structuredLines[] = str_pad('', $position * 4).$line;
84 84
                 }
85 85
             } else {
86 86
                 $structuredLines[] = $line;
Please login to merge, or discard this patch.