We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SpecificityCalculator
1 parent a074ff5 commit bf6bd0cCopy full SHA for bf6bd0c
src/Property/Selector/SpecificityCalculator.php
@@ -65,10 +65,10 @@ public static function calculate(string $selector): int
65
if (!isset(self::$cache[$selector])) {
66
$a = 0;
67
/// @todo should exclude \# as well as "#"
68
- $aMatches = null;
+ $matches = null;
69
$b = \substr_count($selector, '#');
70
- $c = \preg_match_all(self::NON_ID_ATTRIBUTES_AND_PSEUDO_CLASSES_RX, $selector, $aMatches);
71
- $d = \preg_match_all(self::ELEMENTS_AND_PSEUDO_ELEMENTS_RX, $selector, $aMatches);
+ $c = \preg_match_all(self::NON_ID_ATTRIBUTES_AND_PSEUDO_CLASSES_RX, $selector, $matches);
+ $d = \preg_match_all(self::ELEMENTS_AND_PSEUDO_ELEMENTS_RX, $selector, $matches);
72
self::$cache[$selector] = ($a * 1000) + ($b * 100) + ($c * 10) + $d;
73
}
74
0 commit comments