Skip to content

Commit 61735d9

Browse files
committed
add spaced
1 parent 5b4d773 commit 61735d9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

rules-tests/DeadCode/Rector/Plus/RemoveDeadZeroAndOneOperationRector/Fixture/with_parentheses.php.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class WithParentheses
77
public function run()
88
{
99
$a = 1 * (2 + 3) * 4;
10+
$a = 1 * ( 2 + 3 ) * 4;
1011
}
1112
}
1213

@@ -21,6 +22,7 @@ class WithParentheses
2122
public function run()
2223
{
2324
$a = (2 + 3) * 4;
25+
$a = (2 + 3) * 4;
2426
}
2527
}
2628

rules/DeadCode/Rector/Plus/RemoveDeadZeroAndOneOperationRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private function isMulParenthesized(File $file, Mul $mul): bool
201201
return (string) $oldTokens[$startTokenPos] === '(';
202202
}
203203

204-
return true;
204+
return false;
205205
}
206206

207207
return false;

0 commit comments

Comments
 (0)