From 4be287575957dd577cd19911b3b9c4cac47a46a2 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Thu, 29 Aug 2024 00:26:33 +0200 Subject: [PATCH] [CLEANUP] Improve a misleading variable name (#1292) --- src/CssInliner.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CssInliner.php b/src/CssInliner.php index e319abca..963384d6 100644 --- a/src/CssInliner.php +++ b/src/CssInliner.php @@ -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;