Skip to content

Commit f807230

Browse files
committed
Fix style
1 parent 8275aa5 commit f807230

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Visitor/Php/BasePHPVisitor.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,20 @@ protected function getStringArgument(Node\Expr\MethodCall $node, $index)
4646
*
4747
* @return string|null
4848
*/
49-
private function getStringValue(Node $node) {
49+
private function getStringValue(Node $node)
50+
{
5051
if ($node instanceof Node\Scalar\String_) {
5152
return $node->value;
5253
}
5354

5455
if ($node instanceof Node\Expr\BinaryOp\Concat) {
5556
$left = $this->getStringValue($node->left);
56-
if ($left === null) {
57+
if (null === $left) {
5758
return;
5859
}
5960

6061
$right = $this->getStringValue($node->right);
61-
if ($right === null) {
62+
if (null === $right) {
6263
return;
6364
}
6465

0 commit comments

Comments
 (0)