Completed
Push — master ( 25839e...4857c1 )
by Dominik
02:15
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/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;
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.