Closed
Description
The goal is to get rid of redundant code and to reduce functions that have return parameters (which are both hard to understand as well as hard analyze with PHPStan).
- move
getAllDeclarationBlocks
fromDocument
to the parent classCSSBlockList
- refactor
getAllDeclarationBlocks
- replace usages of
CSSBlockList::allDeclarationBlocks
with calls to::getAllDeclarationBlocks
and dropallDeclarationBlocks
- move
getAllRuleSets
fromDocument
to the parent classCSSBlockList
- refactor
getAllRuleSets
- replace usages of
CSSBlockList::allRuleSets
with calls to::getAllRuleSets
and dropallRuleSets
- move
getAllValues
fromDocument
to the parent classCSSBlockList
- refactor
getAllValues
- replace usages of
CSSBlockList::allValues
with calls to::getAllValues
and dropallValues
- rename
CSSBlockList::allSelectors
to::getAllSelectors
and change its interface to return the result
Metadata
Metadata
Assignees
Labels
No labels