Skip to content

Commit fb1d648

Browse files
authored
[CLEANUP] Avoid Hungarian notation for oResult (#865)
Part of #756
1 parent 8e0d0af commit fb1d648

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

src/CSSList/CSSList.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,14 @@ private static function parseAtRule(ParserState $parserState)
177177
$parserState->consumeUntil([';', ParserState::EOF], true, true);
178178
return new Charset($oCharsetString, $iIdentifierLineNum);
179179
} elseif (self::identifierIs($identifier, 'keyframes')) {
180-
$oResult = new KeyFrame($iIdentifierLineNum);
181-
$oResult->setVendorKeyFrame($identifier);
182-
$oResult->setAnimationName(\trim($parserState->consumeUntil('{', false, true)));
183-
CSSList::parseList($parserState, $oResult);
180+
$result = new KeyFrame($iIdentifierLineNum);
181+
$result->setVendorKeyFrame($identifier);
182+
$result->setAnimationName(\trim($parserState->consumeUntil('{', false, true)));
183+
CSSList::parseList($parserState, $result);
184184
if ($parserState->comes('}')) {
185185
$parserState->consume('}');
186186
}
187-
return $oResult;
187+
return $result;
188188
} elseif ($identifier === 'namespace') {
189189
$sPrefix = null;
190190
$mUrl = Value::parsePrimitiveValue($parserState);

src/RuleSet/DeclarationBlock.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function __construct($lineNumber = 0)
4949
public static function parse(ParserState $parserState, $list = null)
5050
{
5151
$comments = [];
52-
$oResult = new DeclarationBlock($parserState->currentLine());
52+
$result = new DeclarationBlock($parserState->currentLine());
5353
try {
5454
$aSelectorParts = [];
5555
$sStringWrapperChar = false;
@@ -64,7 +64,7 @@ public static function parse(ParserState $parserState, $list = null)
6464
}
6565
}
6666
} while (!\in_array($parserState->peek(), ['{', '}'], true) || $sStringWrapperChar !== false);
67-
$oResult->setSelectors(\implode('', $aSelectorParts), $list);
67+
$result->setSelectors(\implode('', $aSelectorParts), $list);
6868
if ($parserState->comes('{')) {
6969
$parserState->consume(1);
7070
}
@@ -78,9 +78,9 @@ public static function parse(ParserState $parserState, $list = null)
7878
throw $e;
7979
}
8080
}
81-
$oResult->setComments($comments);
82-
RuleSet::parseRuleSet($parserState, $oResult);
83-
return $oResult;
81+
$result->setComments($comments);
82+
RuleSet::parseRuleSet($parserState, $result);
83+
return $result;
8484
}
8585

8686
/**

src/Value/CSSFunction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ public static function parse(ParserState $parserState, bool $bIgnoreCase = false
4646
$parserState->consume('(');
4747
$mArguments = self::parseArguments($parserState);
4848

49-
$oResult = new CSSFunction($sName, $mArguments, ',', $parserState->currentLine());
49+
$result = new CSSFunction($sName, $mArguments, ',', $parserState->currentLine());
5050
$parserState->consume(')');
5151

52-
return $oResult;
52+
return $result;
5353
}
5454

5555
/**

src/Value/URL.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ public static function parse(ParserState $parserState): URL
5353
$oAnchor->backtrack();
5454
}
5555
$parserState->consumeWhiteSpace();
56-
$oResult = new URL(CSSString::parse($parserState), $parserState->currentLine());
56+
$result = new URL(CSSString::parse($parserState), $parserState->currentLine());
5757
if ($bUseUrl) {
5858
$parserState->consumeWhiteSpace();
5959
$parserState->consume(')');
6060
}
61-
return $oResult;
61+
return $result;
6262
}
6363

6464
public function setURL(CSSString $oURL): void

0 commit comments

Comments
 (0)