Skip to content

Commit 558831c

Browse files
committed
Changes suggested in code review
1 parent a0adf0d commit 558831c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/CSSList/CSSBlockList.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,8 @@ protected function allValues(
100100
$this->allValues($component, $result, $searchString, $searchInFunctionArguments);
101101
}
102102
}
103-
} else {
104-
if ($element instanceof Value) {
105-
$result[] = $element;
106-
}
103+
} elseif ($element instanceof Value) {
104+
$result[] = $element;
107105
}
108106
}
109107

@@ -146,7 +144,7 @@ protected function allSelectors(array &$result, ?string $specificitySearch = nul
146144
$comparatorMatched = $selectorSpecificity === $targetSpecificity;
147145
break;
148146
}
149-
if ($comparatorMatched && $selector instanceof Selector) {
147+
if ($comparatorMatched) {
150148
$result[] = $selector;
151149
}
152150
}

0 commit comments

Comments
 (0)