Skip to content

Commit cff67f0

Browse files
authored
[CLEANUP] Avoid Hungarian notation for ignoreCase (#955)
Part of #756
1 parent d71ff28 commit cff67f0

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/Parsing/ParserState.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ public function setPosition($position): void
118118
}
119119

120120
/**
121-
* @param bool $bIgnoreCase
121+
* @param bool $ignoreCase
122122
*
123123
* @return string
124124
*
125125
* @throws UnexpectedTokenException
126126
*/
127-
public function parseIdentifier($bIgnoreCase = true)
127+
public function parseIdentifier($ignoreCase = true)
128128
{
129129
if ($this->isEnd()) {
130130
throw new UnexpectedEOFException('', '', 'identifier', $this->lineNumber);
@@ -141,7 +141,7 @@ public function parseIdentifier($bIgnoreCase = true)
141141
$result .= '\\' . $sCharacter;
142142
}
143143
}
144-
if ($bIgnoreCase) {
144+
if ($ignoreCase) {
145145
$result = $this->strtolower($result);
146146
}
147147
return $result;

src/Value/CSSFunction.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ public function __construct($sName, $aArguments, $sSeparator = ',', $lineNumber
4747
*
4848
* @internal since V8.8.0
4949
*/
50-
public static function parse(ParserState $parserState, bool $bIgnoreCase = false): CSSFunction
50+
public static function parse(ParserState $parserState, bool $ignoreCase = false): CSSFunction
5151
{
52-
$sName = self::parseName($parserState, $bIgnoreCase);
52+
$sName = self::parseName($parserState, $ignoreCase);
5353
$parserState->consume('(');
5454
$mArguments = self::parseArguments($parserState);
5555

@@ -64,9 +64,9 @@ public static function parse(ParserState $parserState, bool $bIgnoreCase = false
6464
* @throws UnexpectedEOFException
6565
* @throws UnexpectedTokenException
6666
*/
67-
private static function parseName(ParserState $parserState, bool $bIgnoreCase = false): string
67+
private static function parseName(ParserState $parserState, bool $ignoreCase = false): string
6868
{
69-
return $parserState->parseIdentifier($bIgnoreCase);
69+
return $parserState->parseIdentifier($ignoreCase);
7070
}
7171

7272
/**

src/Value/CalcFunction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class CalcFunction extends CSSFunction
2626
*
2727
* @internal since V8.8.0
2828
*/
29-
public static function parse(ParserState $parserState, bool $bIgnoreCase = false): CSSFunction
29+
public static function parse(ParserState $parserState, bool $ignoreCase = false): CSSFunction
3030
{
3131
$aOperators = ['+', '-', '*', '/'];
3232
$sFunction = $parserState->parseIdentifier();

src/Value/Value.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public static function parseValue(ParserState $parserState, array $aListDelimite
110110
}
111111

112112
/**
113-
* @param bool $bIgnoreCase
113+
* @param bool $ignoreCase
114114
*
115115
* @return CSSFunction|string
116116
*
@@ -119,10 +119,10 @@ public static function parseValue(ParserState $parserState, array $aListDelimite
119119
*
120120
* @internal since V8.8.0
121121
*/
122-
public static function parseIdentifierOrFunction(ParserState $parserState, $bIgnoreCase = false)
122+
public static function parseIdentifierOrFunction(ParserState $parserState, $ignoreCase = false)
123123
{
124124
$oAnchor = $parserState->anchor();
125-
$result = $parserState->parseIdentifier($bIgnoreCase);
125+
$result = $parserState->parseIdentifier($ignoreCase);
126126

127127
if ($parserState->comes('(')) {
128128
$oAnchor->backtrack();
@@ -135,7 +135,7 @@ public static function parseIdentifierOrFunction(ParserState $parserState, $bIgn
135135
) {
136136
$result = CalcFunction::parse($parserState);
137137
} else {
138-
$result = CSSFunction::parse($parserState, $bIgnoreCase);
138+
$result = CSSFunction::parse($parserState, $ignoreCase);
139139
}
140140
}
141141

0 commit comments

Comments
 (0)