Skip to content

Commit

Permalink
Merge pull request #15 from alexprey/master
Browse files Browse the repository at this point in the history
Fix @font-face parsing
  • Loading branch information
natxet committed Jul 7, 2015
2 parents f076e41 + 765e873 commit 4026975
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/CssMin.php
Original file line number Diff line number Diff line change
Expand Up @@ -493,10 +493,10 @@ public function __toString()
$r[] = $this->indent . $indent . "{";
$level++;
}
elseif ($class == "CssAtFontFaceDeclarationToken"
elseif ($class === "CssAtFontFaceDeclarationToken"
|| $class === "CssAtKeyframesRulesetDeclarationToken"
|| $class === "CssAtPageDeclarationToken"
|| $class == "CssAtVariablesDeclarationToken"
|| $class === "CssAtVariablesDeclarationToken"
|| $class === "CssRulesetDeclarationToken"
)
{
Expand Down Expand Up @@ -1863,10 +1863,10 @@ public function __toString()
$r[] = $indent . implode(", ", $token->Selectors) . " {";
$level++;
}
elseif ($class == "CssAtFontFaceDeclarationToken"
elseif ($class === "CssAtFontFaceDeclarationToken"
|| $class === "CssAtKeyframesRulesetDeclarationToken"
|| $class === "CssAtPageDeclarationToken"
|| $class == "CssAtVariablesDeclarationToken"
|| $class === "CssAtVariablesDeclarationToken"
|| $class === "CssRulesetDeclarationToken"
)
{
Expand Down

0 comments on commit 4026975

Please sign in to comment.