Skip to content

Commit

Permalink
[CLEANUP] Avoid Hungarian notation in AtRuleBlockList (#812)
Browse files Browse the repository at this point in the history
Part of #756.
  • Loading branch information
oliverklee authored Jan 26, 2025
1 parent 0742acc commit 7c6845f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/CSSList/AtRuleBlockList.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,31 @@ class AtRuleBlockList extends CSSBlockList implements AtRule
/**
* @var string
*/
private $sType;
private $type;

/**
* @var string
*/
private $sArgs;

/**
* @param string $sType
* @param string $sArgs
* @param int $iLineNo
* @param string $type
* @param string $arguments
* @param int $lineNumber
*/
public function __construct($sType, $sArgs = '', $iLineNo = 0)
public function __construct($type, $arguments = '', $lineNumber = 0)
{
parent::__construct($iLineNo);
$this->sType = $sType;
$this->sArgs = $sArgs;
parent::__construct($lineNumber);
$this->type = $type;
$this->sArgs = $arguments;
}

/**
* @return string
*/
public function atRuleName()
{
return $this->sType;
return $this->type;
}

/**
Expand All @@ -63,7 +63,7 @@ public function render(OutputFormat $oOutputFormat): string
if ($sArgs) {
$sArgs = ' ' . $sArgs;
}
$sResult .= "@{$this->sType}$sArgs{$oOutputFormat->spaceBeforeOpeningBrace()}{";
$sResult .= "@{$this->type}$sArgs{$oOutputFormat->spaceBeforeOpeningBrace()}{";
$sResult .= $this->renderListContents($oOutputFormat);
$sResult .= '}';
$sResult .= $oOutputFormat->sAfterAtRuleBlock;
Expand Down

0 comments on commit 7c6845f

Please sign in to comment.