Skip to content

Commit

Permalink
[CLEANUP] Improve a misleading variable name (#1292)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverklee authored Aug 28, 2024
1 parent fc5c654 commit 4be2875
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CssInliner.php
Original file line number Diff line number Diff line change
Expand Up @@ -752,9 +752,9 @@ private function getCssSelectorPrecedence(string $selector): int
if (\trim($selector) === '') {
break;
}
$number = 0;
$selector = \preg_replace('/' . $matcher . '\\w+/', '', $selector, -1, $number);
$precedence += ($value * $number);
$count = 0;
$selector = \preg_replace('/' . $matcher . '\\w+/', '', $selector, -1, $count);
$precedence += ($value * $count);
}
$this->caches[self::CACHE_KEY_SELECTOR][$selectorKey] = $precedence;

Expand Down

0 comments on commit 4be2875

Please sign in to comment.