Skip to content

Commit 7c6845f

Browse files
authored
[CLEANUP] Avoid Hungarian notation in AtRuleBlockList (#812)
Part of #756.
1 parent 0742acc commit 7c6845f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/CSSList/AtRuleBlockList.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,31 @@ class AtRuleBlockList extends CSSBlockList implements AtRule
1515
/**
1616
* @var string
1717
*/
18-
private $sType;
18+
private $type;
1919

2020
/**
2121
* @var string
2222
*/
2323
private $sArgs;
2424

2525
/**
26-
* @param string $sType
27-
* @param string $sArgs
28-
* @param int $iLineNo
26+
* @param string $type
27+
* @param string $arguments
28+
* @param int $lineNumber
2929
*/
30-
public function __construct($sType, $sArgs = '', $iLineNo = 0)
30+
public function __construct($type, $arguments = '', $lineNumber = 0)
3131
{
32-
parent::__construct($iLineNo);
33-
$this->sType = $sType;
34-
$this->sArgs = $sArgs;
32+
parent::__construct($lineNumber);
33+
$this->type = $type;
34+
$this->sArgs = $arguments;
3535
}
3636

3737
/**
3838
* @return string
3939
*/
4040
public function atRuleName()
4141
{
42-
return $this->sType;
42+
return $this->type;
4343
}
4444

4545
/**
@@ -63,7 +63,7 @@ public function render(OutputFormat $oOutputFormat): string
6363
if ($sArgs) {
6464
$sArgs = ' ' . $sArgs;
6565
}
66-
$sResult .= "@{$this->sType}$sArgs{$oOutputFormat->spaceBeforeOpeningBrace()}{";
66+
$sResult .= "@{$this->type}$sArgs{$oOutputFormat->spaceBeforeOpeningBrace()}{";
6767
$sResult .= $this->renderListContents($oOutputFormat);
6868
$sResult .= '}';
6969
$sResult .= $oOutputFormat->sAfterAtRuleBlock;

0 commit comments

Comments
 (0)