Skip to content

Commit bf6bd0c

Browse files
authored
[CLEANUP] Avoid Hungarian notation in SpecificityCalculator (#1102)
Part of #756
1 parent a074ff5 commit bf6bd0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Property/Selector/SpecificityCalculator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ public static function calculate(string $selector): int
6565
if (!isset(self::$cache[$selector])) {
6666
$a = 0;
6767
/// @todo should exclude \# as well as "#"
68-
$aMatches = null;
68+
$matches = null;
6969
$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);
70+
$c = \preg_match_all(self::NON_ID_ATTRIBUTES_AND_PSEUDO_CLASSES_RX, $selector, $matches);
71+
$d = \preg_match_all(self::ELEMENTS_AND_PSEUDO_ELEMENTS_RX, $selector, $matches);
7272
self::$cache[$selector] = ($a * 1000) + ($b * 100) + ($c * 10) + $d;
7373
}
7474

0 commit comments

Comments
 (0)