Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizen-ci committed Mar 2, 2021
1 parent ffd50c7 commit 0132ff5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rules/dead-code/src/ConditionEvaluator.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,12 @@ public function evaluate(ConditionInterface $condition)
/**
* @return bool|int
*/
private function evaluateVersionCompareCondition(VersionCompareCondition $versionCompareCondition)
private function evaluateVersionCompareCondition(VersionCompareCondition $versionCompareCondition): bool
{
$compareSign = $versionCompareCondition->getCompareSign();
return version_compare(
(string) $versionCompareCondition->getFirstVersion(),
(string) $versionCompareCondition->getSecondVersion(),
$compareSign
(string) $versionCompareCondition->getSecondVersion()
);
}

Expand Down

0 comments on commit 0132ff5

Please sign in to comment.