From 02e997b031db79c2311bb2db522abb901c5fa104 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sat, 25 Jan 2025 12:45:56 +0100 Subject: [PATCH] [CLEANUP] Avoid Hungarian notation in `AtRuleBlockList` Part of #756. --- src/CSSList/AtRuleBlockList.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/CSSList/AtRuleBlockList.php b/src/CSSList/AtRuleBlockList.php index 2ac5776b..af0adf31 100644 --- a/src/CSSList/AtRuleBlockList.php +++ b/src/CSSList/AtRuleBlockList.php @@ -15,7 +15,7 @@ class AtRuleBlockList extends CSSBlockList implements AtRule /** * @var string */ - private $sType; + private $type; /** * @var string @@ -23,15 +23,15 @@ class AtRuleBlockList extends CSSBlockList implements AtRule 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; } /** @@ -39,7 +39,7 @@ public function __construct($sType, $sArgs = '', $iLineNo = 0) */ public function atRuleName() { - return $this->sType; + return $this->type; } /** @@ -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;