Skip to content

Commit d7be021

Browse files
authored
[CLEANUP] Avoid Hungarian notation for arguments (#916)
Part of #756
1 parent 915b094 commit d7be021

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/CSSList/AtRuleBlockList.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class AtRuleBlockList extends CSSBlockList implements AtRule
2020
/**
2121
* @var string
2222
*/
23-
private $sArgs;
23+
private $arguments;
2424

2525
/**
2626
* @param string $type
@@ -31,7 +31,7 @@ public function __construct($type, $arguments = '', $lineNumber = 0)
3131
{
3232
parent::__construct($lineNumber);
3333
$this->type = $type;
34-
$this->sArgs = $arguments;
34+
$this->arguments = $arguments;
3535
}
3636

3737
/**
@@ -47,7 +47,7 @@ public function atRuleName()
4747
*/
4848
public function atRuleArgs()
4949
{
50-
return $this->sArgs;
50+
return $this->arguments;
5151
}
5252

5353
public function __toString(): string
@@ -59,11 +59,11 @@ public function render(OutputFormat $outputFormat): string
5959
{
6060
$sResult = $outputFormat->comments($this);
6161
$sResult .= $outputFormat->sBeforeAtRuleBlock;
62-
$sArgs = $this->sArgs;
63-
if ($sArgs) {
64-
$sArgs = ' ' . $sArgs;
62+
$arguments = $this->arguments;
63+
if ($arguments) {
64+
$arguments = ' ' . $arguments;
6565
}
66-
$sResult .= "@{$this->type}$sArgs{$outputFormat->spaceBeforeOpeningBrace()}{";
66+
$sResult .= "@{$this->type}$arguments{$outputFormat->spaceBeforeOpeningBrace()}{";
6767
$sResult .= $this->renderListContents($outputFormat);
6868
$sResult .= '}';
6969
$sResult .= $outputFormat->sAfterAtRuleBlock;

src/RuleSet/AtRuleSet.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ class AtRuleSet extends RuleSet implements AtRule
2323
/**
2424
* @var string
2525
*/
26-
private $sArgs;
26+
private $arguments;
2727

2828
/**
2929
* @param string $sType
30-
* @param string $sArgs
30+
* @param string $arguments
3131
* @param int<0, max> $lineNumber
3232
*/
33-
public function __construct($sType, $sArgs = '', $lineNumber = 0)
33+
public function __construct($sType, $arguments = '', $lineNumber = 0)
3434
{
3535
parent::__construct($lineNumber);
3636
$this->sType = $sType;
37-
$this->sArgs = $sArgs;
37+
$this->arguments = $arguments;
3838
}
3939

4040
/**
@@ -50,7 +50,7 @@ public function atRuleName()
5050
*/
5151
public function atRuleArgs()
5252
{
53-
return $this->sArgs;
53+
return $this->arguments;
5454
}
5555

5656
public function __toString(): string
@@ -61,11 +61,11 @@ public function __toString(): string
6161
public function render(OutputFormat $outputFormat): string
6262
{
6363
$sResult = $outputFormat->comments($this);
64-
$sArgs = $this->sArgs;
65-
if ($sArgs) {
66-
$sArgs = ' ' . $sArgs;
64+
$arguments = $this->arguments;
65+
if ($arguments) {
66+
$arguments = ' ' . $arguments;
6767
}
68-
$sResult .= "@{$this->sType}$sArgs{$outputFormat->spaceBeforeOpeningBrace()}{";
68+
$sResult .= "@{$this->sType}$arguments{$outputFormat->spaceBeforeOpeningBrace()}{";
6969
$sResult .= $this->renderRules($outputFormat);
7070
$sResult .= '}';
7171
return $sResult;

0 commit comments

Comments
 (0)