Skip to content

Commit a548ded

Browse files
authored
[CLEANUP] Avoid Hungarian notation for isColorComponent (#1090)
Part of #756
1 parent 1d2d5f3 commit a548ded

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Value/Size.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,31 +65,31 @@ class Size extends PrimitiveValue
6565
/**
6666
* @var bool
6767
*/
68-
private $bIsColorComponent;
68+
private $isColorComponent;
6969

7070
/**
7171
* @param float|int|string $size
7272
* @param string|null $unit
73-
* @param bool $bIsColorComponent
73+
* @param bool $isColorComponent
7474
* @param int<0, max> $lineNumber
7575
*/
76-
public function __construct($size, $unit = null, $bIsColorComponent = false, $lineNumber = 0)
76+
public function __construct($size, $unit = null, $isColorComponent = false, $lineNumber = 0)
7777
{
7878
parent::__construct($lineNumber);
7979
$this->size = (float) $size;
8080
$this->unit = $unit;
81-
$this->bIsColorComponent = $bIsColorComponent;
81+
$this->isColorComponent = $isColorComponent;
8282
}
8383

8484
/**
85-
* @param bool $bIsColorComponent
85+
* @param bool $isColorComponent
8686
*
8787
* @throws UnexpectedEOFException
8888
* @throws UnexpectedTokenException
8989
*
9090
* @internal since V8.8.0
9191
*/
92-
public static function parse(ParserState $parserState, $bIsColorComponent = false): Size
92+
public static function parse(ParserState $parserState, $isColorComponent = false): Size
9393
{
9494
$size = '';
9595
if ($parserState->comes('-')) {
@@ -121,7 +121,7 @@ public static function parse(ParserState $parserState, $bIsColorComponent = fals
121121
}
122122
}
123123
}
124-
return new Size((float) $size, $unit, $bIsColorComponent, $parserState->currentLine());
124+
return new Size((float) $size, $unit, $isColorComponent, $parserState->currentLine());
125125
}
126126

127127
/**
@@ -182,7 +182,7 @@ public function getSize()
182182
*/
183183
public function isColorComponent()
184184
{
185-
return $this->bIsColorComponent;
185+
return $this->isColorComponent;
186186
}
187187

188188
/**

0 commit comments

Comments
 (0)