Skip to content

Commit 88d5b8c

Browse files
staabmondrejmirtes
authored andcommitted
Remove dead code in ConstantConditionRuleHelper
1 parent 6bd0a5f commit 88d5b8c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/Rules/Comparison/ConstantConditionRuleHelper.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@ public function __construct(
1818
{
1919
}
2020

21-
public function shouldReportAlwaysTrueByDefault(Expr $expr): bool
22-
{
23-
return $expr instanceof Expr\BooleanNot
24-
|| $expr instanceof Expr\BinaryOp\BooleanOr
25-
|| $expr instanceof Expr\BinaryOp\BooleanAnd
26-
|| $expr instanceof Expr\Ternary
27-
|| $expr instanceof Expr\Isset_
28-
|| $expr instanceof Expr\Empty_;
29-
}
30-
3121
public function shouldSkip(Scope $scope, Expr $expr): bool
3222
{
3323
if (

0 commit comments

Comments
 (0)