Skip to content

Commit bfea948

Browse files
committed
Merge branch 'main' of github.com:permafrost-dev/php-code-search into main
2 parents 3ab1bd3 + cb7502b commit bfea948

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/Results/Nodes/BinaryOperationNode.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Permafrost\PhpCodeSearch\Results\Nodes;
44

5-
use Permafrost\PhpCodeSearch\Results\Nodes\Scalar\StringNode;
65
use Permafrost\PhpCodeSearch\Support\Transformer;
76
use PhpParser\Node\Expr\BinaryOp;
87

@@ -28,10 +27,10 @@ public function __construct(BinaryOp $node)
2827

2928
// $this->value = '';
3029
// if (property_exists($this->left, 'value') && property_exists($this->right, 'value')) {
31-
$leftValue = '';
32-
$rightValue = '';
30+
$leftValue = '';
31+
$rightValue = '';
3332

34-
$this->value = Transformer::binaryOperationNodeToValue($this);
33+
$this->value = Transformer::binaryOperationNodeToValue($this);
3534
}
3635

3736
public function symbol(): string

src/Support/Transformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public static function binaryOperationNodeToValue(BinaryOperationNode $node)
115115
'right' => '',
116116
];
117117

118-
foreach($nodeMap as $name => &$value) {
118+
foreach ($nodeMap as $name => &$value) {
119119
$sideNode = $node->$name;
120120

121121
if ($sideNode instanceof BinaryOperationNode) {

0 commit comments

Comments
 (0)