File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -41,20 +41,6 @@ public function getAllDeclarationBlocks(): array
41
41
return $ result ;
42
42
}
43
43
44
- /**
45
- * @param list<DeclarationBlock> $result
46
- */
47
- protected function allDeclarationBlocks (array &$ result ): void
48
- {
49
- foreach ($ this ->contents as $ item ) {
50
- if ($ item instanceof DeclarationBlock) {
51
- $ result [] = $ item ;
52
- } elseif ($ item instanceof CSSBlockList) {
53
- $ item ->allDeclarationBlocks ($ result );
54
- }
55
- }
56
- }
57
-
58
44
/**
59
45
* Returns all `RuleSet` objects recursively found in the tree, no matter how deeply nested the rule sets are.
60
46
*
@@ -111,9 +97,7 @@ protected function allValues(
111
97
*/
112
98
protected function allSelectors (array &$ result , ?string $ specificitySearch = null ): void
113
99
{
114
- $ declarationBlocks = [];
115
- $ this ->allDeclarationBlocks ($ declarationBlocks );
116
- foreach ($ declarationBlocks as $ declarationBlock ) {
100
+ foreach ($ this ->getAllDeclarationBlocks () as $ declarationBlock ) {
117
101
foreach ($ declarationBlock ->getSelectors () as $ selector ) {
118
102
if ($ specificitySearch === null ) {
119
103
$ result [] = $ selector ;
You can’t perform that action at this time.
0 commit comments