Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/CSSList/CSSList.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private static function parseAtRule(ParserState $parserState)
$iIdentifierLineNum = $parserState->currentLine();
$parserState->consumeWhiteSpace();
if ($identifier === 'import') {
$oLocation = URL::parse($parserState);
$location = URL::parse($parserState);
$parserState->consumeWhiteSpace();
$mediaQuery = null;
if (!$parserState->comes(';')) {
Expand All @@ -170,7 +170,7 @@ private static function parseAtRule(ParserState $parserState)
}
}
$parserState->consumeUntil([';', ParserState::EOF], true, true);
return new Import($oLocation, $mediaQuery, $iIdentifierLineNum);
return new Import($location, $mediaQuery, $iIdentifierLineNum);
} elseif ($identifier === 'charset') {
$oCharsetString = CSSString::parse($parserState);
$parserState->consumeWhiteSpace();
Expand Down
18 changes: 9 additions & 9 deletions src/Property/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Import implements AtRule
/**
* @var URL
*/
private $oLocation;
private $location;

/**
* @var string
Expand All @@ -37,9 +37,9 @@ class Import implements AtRule
* @param string $mediaQuery
* @param int $lineNumber
*/
public function __construct(URL $oLocation, $mediaQuery, $lineNumber = 0)
public function __construct(URL $location, $mediaQuery, $lineNumber = 0)
{
$this->oLocation = $oLocation;
$this->location = $location;
$this->mediaQuery = $mediaQuery;
$this->lineNumber = $lineNumber;
$this->comments = [];
Expand All @@ -54,19 +54,19 @@ public function getLineNo()
}

/**
* @param URL $oLocation
* @param URL $location
*/
public function setLocation($oLocation): void
public function setLocation($location): void
{
$this->oLocation = $oLocation;
$this->location = $location;
}

/**
* @return URL
*/
public function getLocation()
{
return $this->oLocation;
return $this->location;
}

public function __toString(): string
Expand All @@ -76,7 +76,7 @@ public function __toString(): string

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

Expand All @@ -90,7 +90,7 @@ public function atRuleName(): string
*/
public function atRuleArgs(): array
{
$aResult = [$this->oLocation];
$aResult = [$this->location];
if ($this->mediaQuery) {
\array_push($aResult, $this->mediaQuery);
}
Expand Down