Skip to content

Commit 8e0d0af

Browse files
authored
[CLEANUP] Avoid Hungarian notation for oLocation (#864)
Part of #756
1 parent b584760 commit 8e0d0af

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/CSSList/CSSList.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ private static function parseAtRule(ParserState $parserState)
160160
$iIdentifierLineNum = $parserState->currentLine();
161161
$parserState->consumeWhiteSpace();
162162
if ($identifier === 'import') {
163-
$oLocation = URL::parse($parserState);
163+
$location = URL::parse($parserState);
164164
$parserState->consumeWhiteSpace();
165165
$mediaQuery = null;
166166
if (!$parserState->comes(';')) {
@@ -170,7 +170,7 @@ private static function parseAtRule(ParserState $parserState)
170170
}
171171
}
172172
$parserState->consumeUntil([';', ParserState::EOF], true, true);
173-
return new Import($oLocation, $mediaQuery, $iIdentifierLineNum);
173+
return new Import($location, $mediaQuery, $iIdentifierLineNum);
174174
} elseif ($identifier === 'charset') {
175175
$oCharsetString = CSSString::parse($parserState);
176176
$parserState->consumeWhiteSpace();

src/Property/Import.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Import implements AtRule
1616
/**
1717
* @var URL
1818
*/
19-
private $oLocation;
19+
private $location;
2020

2121
/**
2222
* @var string
@@ -37,9 +37,9 @@ class Import implements AtRule
3737
* @param string $mediaQuery
3838
* @param int $lineNumber
3939
*/
40-
public function __construct(URL $oLocation, $mediaQuery, $lineNumber = 0)
40+
public function __construct(URL $location, $mediaQuery, $lineNumber = 0)
4141
{
42-
$this->oLocation = $oLocation;
42+
$this->location = $location;
4343
$this->mediaQuery = $mediaQuery;
4444
$this->lineNumber = $lineNumber;
4545
$this->comments = [];
@@ -54,19 +54,19 @@ public function getLineNo()
5454
}
5555

5656
/**
57-
* @param URL $oLocation
57+
* @param URL $location
5858
*/
59-
public function setLocation($oLocation): void
59+
public function setLocation($location): void
6060
{
61-
$this->oLocation = $oLocation;
61+
$this->location = $location;
6262
}
6363

6464
/**
6565
* @return URL
6666
*/
6767
public function getLocation()
6868
{
69-
return $this->oLocation;
69+
return $this->location;
7070
}
7171

7272
public function __toString(): string
@@ -76,7 +76,7 @@ public function __toString(): string
7676

7777
public function render(OutputFormat $oOutputFormat): string
7878
{
79-
return $oOutputFormat->comments($this) . '@import ' . $this->oLocation->render($oOutputFormat)
79+
return $oOutputFormat->comments($this) . '@import ' . $this->location->render($oOutputFormat)
8080
. ($this->mediaQuery === null ? '' : ' ' . $this->mediaQuery) . ';';
8181
}
8282

@@ -90,7 +90,7 @@ public function atRuleName(): string
9090
*/
9191
public function atRuleArgs(): array
9292
{
93-
$aResult = [$this->oLocation];
93+
$aResult = [$this->location];
9494
if ($this->mediaQuery) {
9595
\array_push($aResult, $this->mediaQuery);
9696
}

0 commit comments

Comments
 (0)