Skip to content

Commit 02d859a

Browse files
authored
[CLEANUP] Avoid Hungarian notation for bLenientParsing (#861)
Keep the name of the public property in `Settings` unchanged, though, as it currently probably is part of the API. Part of #756.
1 parent f019438 commit 02d859a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/CSSList/CSSList.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ public static function parseList(ParserState $parserState, CSSList $list): void
6868
if (\is_string($parserState)) {
6969
$parserState = new ParserState($parserState, Settings::create());
7070
}
71-
$bLenientParsing = $parserState->getSettings()->bLenientParsing;
71+
$usesLenientParsing = $parserState->getSettings()->bLenientParsing;
7272
$comments = [];
7373
while (!$parserState->isEnd()) {
7474
$comments = \array_merge($comments, $parserState->consumeWhiteSpace());
7575
$listItem = null;
76-
if ($bLenientParsing) {
76+
if ($usesLenientParsing) {
7777
try {
7878
$listItem = self::parseListItem($parserState, $list);
7979
} catch (UnexpectedTokenException $e) {
@@ -93,7 +93,7 @@ public static function parseList(ParserState $parserState, CSSList $list): void
9393
$comments = $parserState->consumeWhiteSpace();
9494
}
9595
$list->addComments($comments);
96-
if (!$bIsRoot && !$bLenientParsing) {
96+
if (!$bIsRoot && !$usesLenientParsing) {
9797
throw new SourceException('Unexpected end of document', $parserState->currentLine());
9898
}
9999
}

src/Settings.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,13 @@ public function withDefaultCharset($sDefaultCharset): self
8080
/**
8181
* Configures whether the parser should silently ignore invalid rules.
8282
*
83-
* @param bool $bLenientParsing
83+
* @param bool $usesLenientParsing
8484
*
8585
* @return $this fluent interface
8686
*/
87-
public function withLenientParsing($bLenientParsing = true): self
87+
public function withLenientParsing($usesLenientParsing = true): self
8888
{
89-
$this->bLenientParsing = $bLenientParsing;
89+
$this->bLenientParsing = $usesLenientParsing;
9090
return $this;
9191
}
9292

0 commit comments

Comments
 (0)