File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public function getLineNo(): int
101
101
return $ this ->lineNumber ;
102
102
}
103
103
104
- public function addRule (Rule $ rule , ?Rule $ oSibling = null ): void
104
+ public function addRule (Rule $ rule , ?Rule $ sibling = null ): void
105
105
{
106
106
$ sRule = $ rule ->getRule ();
107
107
if (!isset ($ this ->rules [$ sRule ])) {
@@ -110,11 +110,11 @@ public function addRule(Rule $rule, ?Rule $oSibling = null): void
110
110
111
111
$ position = \count ($ this ->rules [$ sRule ]);
112
112
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 );
115
115
if ($ iSiblingPos !== false ) {
116
116
$ position = $ iSiblingPos ;
117
- $ rule ->setPosition ($ oSibling ->getLineNo (), $ oSibling ->getColNo () - 1 );
117
+ $ rule ->setPosition ($ sibling ->getLineNo (), $ sibling ->getColNo () - 1 );
118
118
}
119
119
}
120
120
if ($ rule ->getLineNo () === 0 && $ rule ->getColNo () === 0 ) {
You can’t perform that action at this time.
0 commit comments