Skip to content

Commit afdefc5

Browse files
committed
Changes suggested in code review
1 parent 7c7b127 commit afdefc5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/CSSList/CSSBlockList.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ protected function allSelectors(array &$result, $specificitySearch = null): void
105105
$result[] = $selector;
106106
} else {
107107
$comparator = '===';
108-
$specificitySearchResults = \explode(' ', $specificitySearch);
109-
$targetSpecificity = $specificitySearchResults[0];
110-
if (\count($specificitySearchResults) > 1) {
111-
$comparator = $specificitySearchResults[0];
112-
$targetSpecificity = $specificitySearchResults[1];
108+
$expressionParts = \explode(' ', $specificitySearch);
109+
$targetSpecificity = $expressionParts[0];
110+
if (\count($expressionParts) > 1) {
111+
$comparator = $expressionParts[0];
112+
$targetSpecificity = $expressionParts[1];
113113
}
114114
$targetSpecificity = (int) $targetSpecificity;
115115
$selectorSpecificity = $selector->getSpecificity();

0 commit comments

Comments
 (0)