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
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 ) {
You can’t perform that action at this time.
0 commit comments