You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/Sabberworm/CSS/CSSList/CSSList.php
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,10 @@ public function getLineNo() {
31
31
return$this->iLineNo;
32
32
}
33
33
34
+
publicfunctionprepend($oItem) {
35
+
array_unshift($this->aContents, $oItem);
36
+
}
37
+
34
38
publicfunctionappend($oItem) {
35
39
$this->aContents[] = $oItem;
36
40
}
@@ -48,6 +52,19 @@ public function remove($oItemToRemove) {
48
52
returnfalse;
49
53
}
50
54
55
+
/**
56
+
* Replaces an item from the CSS list.
57
+
* @param RuleSet|Import|Charset|CSSList $oItemToRemove May be a RuleSet (most likely a DeclarationBlock), a Import, a Charset or another CSSList (most likely a MediaQuery)
0 commit comments