Skip to content

Commit 7842530

Browse files
authored
[CLEANUP] Avoid Hungarian notation for sibling (#1031)
Part of #756
1 parent cd2cfde commit 7842530

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/RuleSet/RuleSet.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public function getLineNo(): int
101101
return $this->lineNumber;
102102
}
103103

104-
public function addRule(Rule $rule, ?Rule $oSibling = null): void
104+
public function addRule(Rule $rule, ?Rule $sibling = null): void
105105
{
106106
$sRule = $rule->getRule();
107107
if (!isset($this->rules[$sRule])) {
@@ -110,11 +110,11 @@ public function addRule(Rule $rule, ?Rule $oSibling = null): void
110110

111111
$position = \count($this->rules[$sRule]);
112112

113-
if ($oSibling !== null) {
114-
$iSiblingPos = \array_search($oSibling, $this->rules[$sRule], true);
113+
if ($sibling !== null) {
114+
$iSiblingPos = \array_search($sibling, $this->rules[$sRule], true);
115115
if ($iSiblingPos !== false) {
116116
$position = $iSiblingPos;
117-
$rule->setPosition($oSibling->getLineNo(), $oSibling->getColNo() - 1);
117+
$rule->setPosition($sibling->getLineNo(), $sibling->getColNo() - 1);
118118
}
119119
}
120120
if ($rule->getLineNo() === 0 && $rule->getColNo() === 0) {

0 commit comments

Comments
 (0)